Belle II Software development
|
This class contains all relevant tools for training a VXDTFFilters. More...
#include <SecMapTrainer.h>
Public Member Functions | |
SecMapTrainer (const std::string &setupName, const std::string &appendix="", const std::string &outputdir="./") | |
constructor. | |
void | initialize () |
initialize the trainer (to be called in Module::initialize(). | |
void | terminate () |
initialize the trainer (to be called in Module::terminate(). | |
void | initializeEvent (int expNo, int runNo, int evtNo) |
Initialize event. | |
const SectorMapConfig & | getConfig () |
returns configuration. | |
const std::string | getSetupName () |
returns the name of the setup used for this trainer | |
bool | storeTC (const SpacePointTrackCand &tc, unsigned iD) |
checks if given TC is acceptable for this trainer and store it if it is accepted. | |
unsigned | processTracks () |
for given normalized local variables and VxdID a FullSecID is determined. | |
Protected Member Functions | |
bool | acceptHit (const SpacePoint &hit) |
checks if given Hit is acceptable for this trainer. | |
unsigned | process2HitCombinations (const SecMapTrainerTC &aTC) |
processes all two-hit-combinations of given TC and stores their results. | |
unsigned | process3HitCombinations (const SecMapTrainerTC &aTC) |
processes all three-hit-combinations of given TC and stores their results. | |
void | convertSP2TC (const std::vector< std::pair< FullSecID, const SpacePoint * > > &goodSPs, unsigned tcID, double pTValue, int pdgCode) |
converts the SpacePoints into a SecMapTrainerTC and stores it to m_TCs | |
Protected Attributes | |
const std::string | m_nameSetup |
name of the setting to be used for this training | |
FiltersContainer< SpacePoint > & | m_filtersContainer = Belle2::FiltersContainer<SpacePoint>::getInstance() |
a reference to the singleton FiltersContainer used for this training. | |
SectorMapConfig | m_config |
Contains all relevant configurations needed for training a sectorMap. | |
FilterFactoryType | m_factory |
A factory taking care of having the correct filters prepared for secMapTraining. | |
FilterMill< SecMapTrainerHit > | m_filterMill |
Stores the prepared filters and applies them on given hit-combinations. | |
RawSecMapRootInterface | m_rootInterface |
Interface for nice and neat storing in root-ttree. | |
std::vector< SecMapTrainerTC > | m_tcs |
contains tcs of event, reset after each event. | |
unsigned | m_expNo |
contains current experiment number. | |
unsigned | m_runNo |
contains current run number. | |
unsigned | m_evtNo |
contains current event number. | |
This class contains all relevant tools for training a VXDTFFilters.
Definition at line 43 of file SecMapTrainer.h.
|
inlineexplicit |
constructor.
Definition at line 235 of file SecMapTrainer.h.
|
inlineprotected |
checks if given Hit is acceptable for this trainer.
Returns true if accepted and false otherwise.
Definition at line 87 of file SecMapTrainer.h.
|
inlineprotected |
converts the SpacePoints into a SecMapTrainerTC and stores it to m_TCs
Definition at line 208 of file SecMapTrainer.h.
|
inline |
|
inline |
|
inline |
initialize the trainer (to be called in Module::initialize().
Definition at line 259 of file SecMapTrainer.h.
|
inline |
Initialize event.
Definition at line 314 of file SecMapTrainer.h.
|
inlineprotected |
processes all two-hit-combinations of given TC and stores their results.
returns number of stored values.
Definition at line 106 of file SecMapTrainer.h.
|
inlineprotected |
processes all three-hit-combinations of given TC and stores their results.
returns number of stored values.
Definition at line 155 of file SecMapTrainer.h.
|
inline |
for given normalized local variables and VxdID a FullSecID is determined.
returns unsigned int max if correct ID could not be found. takes all TCs stored and processed them for root storing. Takes care of cleaning event-dependent TCs.
Definition at line 426 of file SecMapTrainer.h.
|
inline |
checks if given TC is acceptable for this trainer and store it if it is accepted.
The return value is true, it was accepted and stored, false if not.
Definition at line 333 of file SecMapTrainer.h.
|
inline |
initialize the trainer (to be called in Module::terminate().
Definition at line 310 of file SecMapTrainer.h.
|
protected |
Contains all relevant configurations needed for training a sectorMap.
Copy of the config in the SectorMap needed as it is modified (the one in VXDTFFilters is const).
Definition at line 54 of file SecMapTrainer.h.
|
protected |
contains current event number.
Definition at line 80 of file SecMapTrainer.h.
|
protected |
contains current experiment number.
Definition at line 72 of file SecMapTrainer.h.
|
protected |
A factory taking care of having the correct filters prepared for secMapTraining.
Definition at line 57 of file SecMapTrainer.h.
|
protected |
Stores the prepared filters and applies them on given hit-combinations.
Definition at line 60 of file SecMapTrainer.h.
|
protected |
a reference to the singleton FiltersContainer used for this training.
Needed as some information are only accessible from the filters (in the container).
Definition at line 50 of file SecMapTrainer.h.
|
protected |
name of the setting to be used for this training
Definition at line 46 of file SecMapTrainer.h.
|
protected |
Interface for nice and neat storing in root-ttree.
Definition at line 64 of file SecMapTrainer.h.
|
protected |
contains current run number.
Definition at line 76 of file SecMapTrainer.h.
|
protected |
contains tcs of event, reset after each event.
Definition at line 68 of file SecMapTrainer.h.