 |
Belle II Software
release-05-01-25
|
14 #include <klm/bklm/geometry/GeometryPar.h>
15 #include <klm/dataobjects/eklm/EKLMElementNumbers.h>
16 #include <klm/dataobjects/KLMDigit.h>
17 #include <klm/dataobjects/KLMElementNumbers.h>
18 #include <klm/dataobjects/KLMPlaneArrayIndex.h>
19 #include <klm/dbobjects/KLMChannelStatus.h>
22 #include <analysis/dataobjects/ParticleList.h>
23 #include <calibration/CalibrationCollectorModule.h>
24 #include <framework/database/DBObjPtr.h>
25 #include <framework/datastore/StoreArray.h>
26 #include <framework/datastore/StoreObjPtr.h>
27 #include <mdst/dataobjects/Track.h>
28 #include <tracking/dataobjects/ExtHit.h>
51 class KLMStripEfficiencyCollectorModule :
public CalibrationCollectorModule {
134 void addHit(std::map<uint16_t, struct HitData>& hitMap,
135 uint16_t planeGlobal,
struct HitData* hitData);
151 TH1F* allExtHitsInPlane);
StoreObjPtr< ParticleList > m_MuonList
Muons.
const ExtHit * hit
Extrapolation hit.
const KLMDigit * digit
Digit.
DBObjPtr< KLMChannelStatus > m_ChannelStatus
Channel status.
void collect() override
This method is called for each event.
TFile * m_MatchingFile
Matching data file.
int subdetector
Subdetector.
void finish() override
Finish data processing.
std::string m_MatchingFileName
Matching data file name.
int m_MinimalMatchingDigits
Minimal number of matching digits.
TTree * m_MatchingTree
Matching data tree.
virtual ~KLMStripEfficiencyCollectorModule()
Destructor.
int m_MatchedStrip
Matched strip.
double m_MinimalMomentumNoOuterLayers
Minimal momentum in case there are no hits in outer layers.
const bklm::GeometryPar * m_GeometryBKLM
BKLM geometry.
KLM digit (class representing a digitized hit in RPCs or scintillators).
Provides BKLM geometry parameters for simulation, reconstruction etc (from Gearbox or DataBase)
struct HitData m_MatchingHitData
Matching hit data.
double localPosition
Local coordinate.
Class for accessing objects in the database.
bool m_IgnoreBackwardPropagation
Whether to ignore ExtHits with backward propagation.
StoreArray< KLMDigit > m_Digits
KLM digits.
bool m_RemoveUnusedMuons
Whether to remove unused muons.
const KLMPlaneArrayIndex * m_PlaneArrayIndex
Plane array index.
Store one Ext hit as a ROOT object.
double m_AllowedDistance1D
Maximal distance in the units of strip number from ExtHit to matching KLMDigit.
Abstract base class for different kinds of events.
Type-safe access to single objects in the data store.
void closeRun() override
This method is called at the end of run.
void addHit(std::map< uint16_t, struct HitData > &hitMap, uint16_t planeGlobal, struct HitData *hitData)
Add hit to map.
int m_MinimalMatchingDigitsOuterLayers
Minimal number of matching digits in outer layers.
std::string m_MuonListName
Muon list name.
void startRun() override
This method is called at the beginning of the run.
void prepare() override
Initializer.
const KLMElementNumbers * m_ElementNumbers
Element numbers.
const EKLMElementNumbers * m_eklmElementNumbers
EKLM element numbers.
Class to store reconstructed particles.
void findMatchingDigit(struct HitData *hitData)
Find matching digit.
Accessor to arrays stored in the data store.
bool collectDataTrack(const Particle *muon, TH1F *matchedDigitsInPlane, TH1F *allExtHitsInPlane)
Collect the data for one muon.
StoreArray< ExtHit > m_extHits
ExtHits.
StoreArray< Track > m_tracks
Tracks.
KLMStripEfficiencyCollectorModule()
Constructor.