 |
Belle II Software
release-05-02-19
|
14 #include <framework/core/Module.h>
15 #include <framework/datastore/StoreArray.h>
17 #include <tracking/spacePointCreation/SpacePointTrackCand.h>
18 #include <tracking/trackFindingVXD/analyzingTools/RootParameterTracker.h>
37 class TrackFinderVXDAnalizerModule :
public Module {
58 void event()
override;
70 template<
class PurityType>
73 PurityType bestResult = PurityType();
75 for (
const PurityType& iD : purities) {
77 if (iD > bestResult) { bestResult = iD; }
bool m_PARAMdoEventSummary
if true, for each event a summary will be given (WARNING produces a lot of output!
RootParameterTracker m_rootParameterTracker
takes care of collecting data and storing it to root branches
unsigned int m_countedTCsTooShort
counts number of tracks, which did not have enough hits at all.
unsigned int m_countedCleanRecoveries
counts number of tracks, where no foreign hits were attached ('clean'), does NOT mean that all recons...
StoreArray< SpacePointTrackCand > m_lostTCs
StoreArray for lost track candidates.
unsigned int m_countedReferenceClones
counts number reference TCs which were marked as clones.
std::string m_PARAMreferenceTCname
the name of the storeArray container provided by the reference TF (has to be set manually there and h...
unsigned int m_totalRealHits
total number of hits (clusters/2) attached to mcTCs (therefore total number of real hits).
void endRun() override
endRun function
unsigned int m_countedGhosts
counts number of tracks, where a dominating TC was found, but the purity did not reach the threshold.
unsigned int m_nCaPXDHits
counts total number of pxdHits added by caTF.
std::vector< std::vector< std::vector< std::string > > > m_PARAMtrackedParametersInt
set here all parameters to be tracked which use an algorithm storing one int per tc.
void event() override
event function
unsigned int m_mcTrackCounter
counts number of tracks reconstructed by the mcTrackFinder.
unsigned int m_lostGFTCs
counts number of TCs found by MCTF but lost by VXDTF, they are stored for external tests in storaArra...
unsigned int m_countedLostTest
counts number of Lost test tcs.
unsigned int m_nCaSVDHits
counts total number of svdHits added by caTF.
StoreArray< SpacePointTrackCand > m_referenceTCs
StoreArray for the reference TCs provided by a reference TF (like trackFinderMCTruth).
unsigned int m_countedPerfectRecoveries
counts number of tracks, where no foreign hits were attached ('clean') AND all hits of the mcTC were ...
unsigned int m_PARAMminNDFThreshold
defines how many measurements (numbers of degrees of freedom) the TC must have to be accepted as reco...
void initialize() override
inizialize function
double m_PARAMpurityThreshold
choose value to filter TCs found by VXDTF.
~TrackFinderVXDAnalizerModule()
destructor
void terminate() override
terminate function
unsigned int m_countReconstructedTCs
counts number of reconstructed TCs.
unsigned int m_mcTrackVectorCounter
another counter of mcTCs, consideres size of datastores containing mcTCs.
bool m_PARAMwriteToRoot
if true, analysis data is stored to root file with file name chosen by 'rootFileName'
unsigned int m_countedContaminatedRecoveries
counts number of tracks, where foreign hits werew attached but its purity was above the threshold.
std::string m_PARAMprintData
depending on what value you set it, it will print data like momentum residuals or any other interesti...
unsigned int m_nMcPXDHits
counts total number of pxdHits added by mcTF.
bool m_PARAMignoreDeadTCs
if true, test-tc whose activation-state is set to false are skipped for analysis.
Abstract base class for different kinds of events.
std::vector< std::vector< std::vector< std::string > > > m_PARAMtrackedParametersDouble
set here all parameters to be tracked which use an algorithm storing one double per tc.
std::vector< std::vector< std::vector< std::string > > > m_PARAMtrackedParametersVecDouble
set here all parameters to be tracked which use an algorithm storing one vector< double> per tc.
std::string m_PARAMtestTCname
the name of the storeArray container provided by the TF to be evaluated (has to be set manually there...
bool m_PARAMuseMCDataForValues
if true, for testTC the values of attached refTC will be stored instead of own values.
Production notes for RootParameterTracker:
unsigned int m_wrongChargeSignCounter
counts number of times, where assigned caTC guessed wrong sign of charge.
unsigned int m_countedDoubleEntries
if a TC was found more than once with good (contaminated or clean ones) caTCs, it will be counted to ...
unsigned int m_caTrackCounter
counts number of tracks reconstructed by the CATF.
PurityType returnDominantParticleID(const std::vector< PurityType > &purities)
of a vector of given particleIDs with their purities it returns the one which had the highest purity
unsigned int m_eventCounter
knows current event number.
std::string m_PARAMlostTCname
the name of the trackCandidateCollection of lost track candidates determined by the TFAnalizer
StoreArray< SpacePointTrackCand > m_acceptedTCs
StoreArray for accepted/successfully reconstructed track candidates.
unsigned int m_countedLostRef
counts number of Lost reference tcs.
StoreArray< SpacePointTrackCand > m_testTCs
StoreArray for the TCs provided by a TF to be tested (like VXDTF).
std::string m_PARAMacceptedTCname
the name of the trackCandidateCollection of successfully reconstructed track candidates determined by...
std::vector< std::string > m_PARAMrootFileName
only two entries accepted, first one is the root filename, second one is 'RECREATE' or 'UPDATE' which...
unsigned int m_nMcSVDHits
counts total number of svdHits added by mcTF.
void beginRun() override
beginRun function
std::vector< double > m_PARAMorigin
only allowed size: 3.
TrackFinderVXDAnalizerModule()
constructor
unsigned int m_countAcceptedGFTCs
counts number of accepted TCs which are stored in separate container for external tests (e....