 |
Belle II Software
release-05-02-19
|
14 #include <framework/core/Module.h>
15 #include <framework/database/PayloadFile.h>
27 struct SectorMapConfig;
33 class SectorMapBootstrapModule :
public Module {
48 void event()
override ;
SectorMapBootstrapModule()
Constructor.
Specialization of DBObjPtr in case of PayloadFiles.
~SectorMapBootstrapModule()
Destructor.
std::vector< std::tuple< int, std::string > > m_threeHitFilterAdjustFunctions
vector of tuple<int, string> specifying how 3-hit filters are altered.
std::string m_sectorMapsInputFile
the name of the input root file the sectormaps are read from
bool m_writeSectorMap
if true the sectormap will be written to an output file
void initialize() override
Initialize the Module.
void event() override
This method is the core of the module.
std::string m_sectorMapsOutputFile
the name of the ouput root file the sectormaps are written to
bool m_readSecMapFromDB
if true the sector map will be read from the DB. NOTE: this will override m_readSectorMap (read from ...
Abstract base class for different kinds of events.
std::string m_setupToRead
if specified (non "") ONLY the setup with this name will be read. Else all setups in the root file wi...
void persistSectorMap(void)
writes a sectormap to a root file
const std::string c_setupKeyNameBranchName
the name of the branch the setupt are stored in the tree
void retrieveSectorMap(void)
retrieves SectorMap from file or from the DB
simple struct containing all the configuration data needed for the SecMapTrainer.
void bootstrapSectorMap(void)
puts several empty sectormaps into the framework
std::vector< std::tuple< int, std::string > > m_twoHitFilterAdjustFunctions
vector of tuple<int, string> specifying how 2-hit filters are altered.
void beginRun() override
Called when entering a new run.
DBObjPtr< PayloadFile > * m_ptrDBObjPtr
pointer to the DBObjPtr for the payloadfile from which the sectormap is read
const std::string c_setupKeyNameTTreeName
the name of the tree the setups are stored in in the root file
void endRun() override
This method is called if the current run ends.
bool m_readSectorMap
if true a sectormap will be read from a file. NOTE: this will be overridden by m_readSecMapFromDB!