 |
Belle II Software
release-05-02-19
|
11 #include <analysis/modules/FlavorTaggerInfoBuilder/FlavorTaggerInfoBuilderModule.h>
13 #include <analysis/dataobjects/Particle.h>
14 #include <analysis/dataobjects/FlavorTaggerInfo.h>
15 #include <analysis/dataobjects/RestOfEvent.h>
16 #include <analysis/dataobjects/FlavorTaggerInfoMap.h>
18 #include <framework/datastore/StoreArray.h>
34 setDescription(
"Initializes the FlavorTaggerInfo DataObject that will be used during the Flavor Tagging. Filling is done in the FlavorTagger.py script");
35 setPropertyFlags(c_ParallelProcessingCertified);
43 roeArray.isRequired();
47 flavTagArray.registerInDataStore();
49 flavTagMap.registerInDataStore();
50 particles.registerRelationTo(flavTagArray);
63 for (
int i = 0; i < roeArray.
getEntries(); i++) {
71 flavTag -> addMethodMap(
"FBDT");
72 flavTag -> addMethodMap(
"FANN");
73 flavTag -> addMethodMap(
"DNN");
77 particle->addRelationTo(flavTag);
T * appendNew()
Construct a new T object at the end of the array.
bool registerRelationTo(const StoreArray< TO > &toArray, DataStore::EDurability durability=DataStore::c_Event, DataStore::EStoreFlags storeFlags=DataStore::c_WriteOut, const std::string &namedRelation="") const
Register a relation to the given StoreArray.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
virtual void initialize() override
initialize the module (setup the data store)
void addRelationTo(const RelationsInterface< BASE > *object, float weight=1.0, const std::string &namedRelation="") const
Add a relation from this object to another object (with caching).
T * getRelated(const std::string &name="", const std::string &namedRelation="") const
Get the object to or from which this object has a relation.
This is a general purpose class for collecting reconstructed MDST data objects that are not used in r...
TO * getRelatedTo(const std::string &name="", const std::string &namedRelation="") const
Get the object to which this object has a relation.
Abstract base class for different kinds of events.
Class to store reconstructed particles.
Accessor to arrays stored in the data store.
Creates for each Particle and RestOfEvent object in the DataStore a FlavorTaggerInfo dataobject and m...
int getEntries() const
Get the number of objects in the array.
This class stores the relevant information for the TagV vertex fit, extracted mainly from the Flavor ...
virtual void event() override
process event