Belle II Software  release-05-02-19
PXDPerformanceCollectorModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2020 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Qingyuan Liu *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <calibration/CalibrationCollectorModule.h>
14 
15 #include <pxd/utilities/PXD2TrackEvent.h>
16 #include <framework/datastore/StoreArray.h>
17 #include <framework/database/DBObjPtr.h>
18 #include <pxd/dataobjects/PXDCluster.h>
19 #include <mdst/dataobjects/MCParticle.h>
20 #include <mdst/dataobjects/Track.h>
21 #include <tracking/dataobjects/RecoTrack.h>
22 
23 //#include <pxd/dbobjects/PXDClusterChargeMapPar.h>
24 #include <pxd/dbobjects/PXDGainMapPar.h>
25 
26 #include <string>
27 
28 namespace Belle2 {
48  class PXDPerformanceCollectorModule : public CalibrationCollectorModule {
49 
50  public:
51 
56  void prepare() override final;
57  void collect() override final;
58  void startRun() override final;
59 
60  void collectFromTrack(const PXD2TrackEvent::baseType& track);
61  void collectDeltaIP(const PXD2TrackEvent& event);
62 
63  private:
68 
70  std::string m_store2TrackEventsName;
71 
73  float m_minPt4Eff;
75  float m_maxAbsVx;
77  float m_maxAbsVy;
79  float m_maxAbsVz;
80 
82  float m_minPt4Res;
84  int m_minSVDHits;
86  int m_minCDCHits;
88  float m_maxAbsLambda;
92  float m_maxAbsZ0;
94  float m_maxAbsD0;
95 
97  float m_minPt;
101  int m_minClusterSize;
103  int m_maxClusterSize;
104 
106  int m_nBinsU;
108  int m_nBinsV;
110  std::string m_gainName;
115 
117  bool m_fillEventTree;
119  bool m_selectedEff;
121  bool m_selectedRes;
122 
126  float m_deltaD0oSqrt2;
128  float m_deltaZ0oSqrt2;
130  int m_signal;
132  float m_estimated;
134  int m_run;
136  int m_exp;
139 
140  };
142 }
Belle2::PXDPerformanceCollectorModule::prepare
void prepare() override final
Replacement for initialize(). Register calibration dataobjects here as well.
Definition: PXDPerformanceCollectorModule.cc:76
Belle2::PXDPerformanceCollectorModule::m_maxClusterSize
int m_maxClusterSize
Maximum cluster size cut.
Definition: PXDPerformanceCollectorModule.h:111
Belle2::PXDPerformanceCollectorModule::m_fillEventTree
bool m_fillEventTree
Flag to fill event tree for validation.
Definition: PXDPerformanceCollectorModule.h:125
Belle2::PXDPerformanceCollectorModule::m_selectedRes
bool m_selectedRes
Flag of selection for resolution validation.
Definition: PXDPerformanceCollectorModule.h:129
Belle2::PXDPerformanceCollectorModule::m_minPt
float m_minPt
Minimum pt cut.
Definition: PXDPerformanceCollectorModule.h:105
Belle2::PXDPerformanceCollectorModule::m_estimated
float m_estimated
Estimated cluster charge in ADU.
Definition: PXDPerformanceCollectorModule.h:140
Belle2::PXDPerformanceCollectorModule::m_maxAbsVz
float m_maxAbsVz
Maximum absolute value for z coordinate of vertex.
Definition: PXDPerformanceCollectorModule.h:87
Belle2::PXDPerformanceCollectorModule::m_store2TrackEventsName
std::string m_store2TrackEventsName
Name of the collection to use for PXD2TrackEvents.
Definition: PXDPerformanceCollectorModule.h:78
Belle2::PXDPerformanceCollectorModule::m_minClusterSize
int m_minClusterSize
Minimum cluster size cut.
Definition: PXDPerformanceCollectorModule.h:109
Belle2::PXDPerformanceCollectorModule::m_signal
int m_signal
Cluster charge in ADU.
Definition: PXDPerformanceCollectorModule.h:138
Belle2::PXDPerformanceCollectorModule::m_deltaD0oSqrt2
float m_deltaD0oSqrt2
(d0_p + d0_m)/sqrt(2)
Definition: PXDPerformanceCollectorModule.h:134
Belle2::PXDPerformanceCollectorModule::m_minSVDHits
int m_minSVDHits
Minimum number of SVD hits for resolution.
Definition: PXDPerformanceCollectorModule.h:92
Belle2::PXDPerformanceCollectorModule::m_pxd2TrackEvent
PXD2TrackEvent m_pxd2TrackEvent
Event holder.
Definition: PXDPerformanceCollectorModule.h:132
Belle2::PXDGainMapPar
The payload class for PXD gain corrections.
Definition: PXDGainMapPar.h:53
Belle2::PXDPerformanceCollectorModule::m_pxd2TrackEvents
StoreArray< PXD2TrackEvent > m_pxd2TrackEvents
Required input PXD2TrackEvent
Definition: PXDPerformanceCollectorModule.h:73
Belle2::PXDPerformanceCollectorModule::m_minPt4Res
float m_minPt4Res
Minimum pt cut for resolution monitoring.
Definition: PXDPerformanceCollectorModule.h:90
Belle2::PXDPerformanceCollectorModule::m_deltaZ0oSqrt2
float m_deltaZ0oSqrt2
(z0_p - z0_m)/sqrt(2)
Definition: PXDPerformanceCollectorModule.h:136
Belle2::PXDPerformanceCollectorModule::m_gainMap
PXDGainMapPar m_gainMap
GainMap to be stored in dbtree.
Definition: PXDPerformanceCollectorModule.h:146
Belle2::PXDPerformanceCollectorModule::m_fillChargeTree
bool m_fillChargeTree
Flag to fill cluster charge and its estimated MPV in TTree.
Definition: PXDPerformanceCollectorModule.h:122
Belle2::PXDPerformanceCollectorModule::m_maxAbsVy
float m_maxAbsVy
Maximum absolute value for y coordinate of vertex.
Definition: PXDPerformanceCollectorModule.h:85
Belle2::PXDPerformanceCollectorModule::m_maxAbsLambda
float m_maxAbsLambda
Maximum absolute dip angle (lambda)
Definition: PXDPerformanceCollectorModule.h:96
Belle2::PXDPerformanceCollectorModule::PXDPerformanceCollectorModule
PXDPerformanceCollectorModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: PXDPerformanceCollectorModule.cc:40
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::StoreObjPtr
Type-safe access to single objects in the data store.
Definition: ParticleList.h:33
Belle2::PXDPerformanceCollectorModule::m_selectedEff
bool m_selectedEff
Flag of selection for efficiency validation.
Definition: PXDPerformanceCollectorModule.h:127
Belle2::PXDPerformanceCollectorModule::m_minCDCHits
int m_minCDCHits
Minimum number of CDC hits for resolution.
Definition: PXDPerformanceCollectorModule.h:94
Belle2::PXDPerformanceCollectorModule::m_exp
int m_exp
Experiment number to be stored in dbtree.
Definition: PXDPerformanceCollectorModule.h:144
Belle2::PXDPerformanceCollectorModule::m_fillChargeRatioHistogram
bool m_fillChargeRatioHistogram
Flag to fill cluster charge ratio (relative to expected MPV) histograms.
Definition: PXDPerformanceCollectorModule.h:120
Belle2::PXDPerformanceCollectorModule::m_run
int m_run
Run number to be stored in dbtree.
Definition: PXDPerformanceCollectorModule.h:142
Belle2::CalibrationCollectorModule::event
void event() final
Check current experiment and run and update if needed, fill into RunRange and collect()
Definition: CalibrationCollectorModule.cc:45
Belle2::PXDPerformanceCollectorModule::m_minPt4Eff
float m_minPt4Eff
Minimum pt cut for efficiency monitoring.
Definition: PXDPerformanceCollectorModule.h:81
Belle2::PXDPerformanceCollectorModule::m_maxAbsZ0
float m_maxAbsZ0
Maximum abs(z0)
Definition: PXDPerformanceCollectorModule.h:100
Belle2::EventMetaData
Store event, run, and experiment numbers.
Definition: EventMetaData.h:43
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::PXDPerformanceCollectorModule::m_maxAbsVx
float m_maxAbsVx
Maximum absolute value for x coordinate of vertex.
Definition: PXDPerformanceCollectorModule.h:83
Belle2::PXDPerformanceCollectorModule::m_minPBetaSinTheta3o2
float m_minPBetaSinTheta3o2
Minimum p*Beta*sin(theta_0)^{3/2}.
Definition: PXDPerformanceCollectorModule.h:98
Belle2::PXDPerformanceCollectorModule::m_gainName
std::string m_gainName
Payload name for Gain to be read from DB.
Definition: PXDPerformanceCollectorModule.h:118
Belle2::PXDPerformanceCollectorModule::m_nBinsU
int m_nBinsU
Number of corrections per sensor along u side.
Definition: PXDPerformanceCollectorModule.h:114
Belle2::PXDPerformanceCollectorModule::startRun
void startRun() override final
Replacement for beginRun(). Do anything you would normally do in beginRun here.
Definition: PXDPerformanceCollectorModule.cc:215
Belle2::PXDPerformanceCollectorModule::collect
void collect() override final
Replacement for event(). Fill you calibration data objects here.
Definition: PXDPerformanceCollectorModule.cc:228
Belle2::PXDPerformanceCollectorModule::m_minClusterCharge
int m_minClusterCharge
Minimum cluster charge cut
Definition: PXDPerformanceCollectorModule.h:107
Belle2::PXDPerformanceCollectorModule::m_evtMetaData
StoreObjPtr< EventMetaData > m_evtMetaData
Required input EventMetaData.
Definition: PXDPerformanceCollectorModule.h:75
Belle2::PXD2TrackEvent
Class PXD2TrackEvent: Event data container for performance and calibration studies.
Definition: PXD2TrackEvent.h:41
Belle2::PXDPerformanceCollectorModule::m_nBinsV
int m_nBinsV
Number of corrections per sensor along v side.
Definition: PXDPerformanceCollectorModule.h:116
Belle2::PXDPerformanceCollectorModule::m_maxAbsD0
float m_maxAbsD0
Maximum abs(d0)
Definition: PXDPerformanceCollectorModule.h:102