 |
Belle II Software
release-05-02-19
|
12 #include <framework/core/Module.h>
13 #include <tracking/spacePointCreation/SpacePoint.h>
15 #include <tracking/trackFindingVXD/sectorMapTools/NoKickRTSel.h>
17 #include <boost/optional.hpp>
35 class RT2SPTCConverterModule :
public Module {
49 void event()
override;
67 using ConversionState = std::bitset<2>;
70 std::pair<std::vector<const SpacePoint*>, ConversionState>
unsigned int m_singleClusterUseCtr
Counts how many tracks contained a single cluster.
bool m_ignorePXDHits
PXD hits will be ignored when creating the SP track candidate.
RT2SPTCConverterModule()
Constructor.
unsigned int m_minSPCtr
Counts how many tracks didn't contain enough SpacePoints after conversion.
std::bitset< 2 > ConversionState
Used to store conversionFlags and pass them between methods.
std::string m_SVDClusterName
SVDCluster collection name.
std::pair< std::vector< const SpacePoint * >, ConversionState > getSpacePointsFromRecoHitInformationViaTrueHits(std::vector< RecoHitInformation * > hitInfos)
Convert Clusters to SpacePoints using the Relation: Cluster->TrueHit->SpacePoint.
bool m_noKickOutput
true=produce TFile with effects of NoKickCuts on tracks
std::string m_RecoTracksName
Name of collection of RecoTrack StoreArray.
bool m_useTrueHits
If true the method getSpacePointsFromSVDClustersViaTrueHits is utilized.
std::string m_SVDSingleClusterSPName
Single Cluster SVD SpacePoints collection name.
bool m_skipProblematicCluster
If true problematic clusters are ignored.
conversionFlags
enum for differentiating reasons why a conversion failed
std::string m_noKickCutsFile
name of TFile of the cuts
std::pair< std::vector< const SpacePoint * >, ConversionState > getSpacePointsFromRecoHitInformations(std::vector< RecoHitInformation * > hitInfos)
Convert Clusters to SpacePoints using the Relation: Cluster->SpacePoint.
int m_npass
counter of the selected tracks
bool m_useSingleClusterSP
If true use single cluster SpacePoint collection as fallback.
~RT2SPTCConverterModule()
Destructor.
Abstract base class for different kinds of events.
void terminate() override
Terminate: print some summary information on the processed events.
void endRun() override
End Run function.
NoKickRTSel * m_trackSel
data members used fot the NoKickCuts method
boost::optional< std::string > m_pxdSpacePointsStoreArrayName
PXD SpacePoints collection names.
void initialize() override
Initialize module (e.g. check if all required StoreArrays are present or registering new StoreArrays)
unsigned int m_undefinedErrorCtr
Counts how many tracks failed to be converted.
int m_minSP
parameter for specifying a minimal number of SpacePoints a SpacePointTrackCand has to have in order t...
This class implement some methods useful for the application of cuts evaluated in NoKickCutsEval modu...
bool m_convertFittedOnly
if true only RecoTracks with successful fit will be converted
bool m_mcParticlesPresent
If MCParticles are available.
void event() override
Event: convert RecoTracks to SpacePointTrackCands.
bool m_markRecoTracks
If True RecoTracks where conversion problems occurred are marked dirty.
boost::optional< std::string > m_svdSpacePointsStoreArrayName
Non SingleCluster SVD SpacePoints collection names.
int m_ncut
counter of the cuttet tracks
std::string m_SPTCName
Name of collection under which SpacePointTrackCands will be stored in the StoreArray.
unsigned int m_noFailCtr
Counts how many tracks could be converted without any problems.
void initializeCounters()
reset counters to 0 to avoid indeterministic behaviour
unsigned int m_missingTrueHitCtr
Counts how many times a SpacePoint had no relation to a SVDTrueHit.