Belle II Software  release-05-02-19
PXDClusterChargeCollectorModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Benjamin Schwenker *
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 <framework/datastore/StoreArray.h>
16 #include <framework/database/DBObjPtr.h>
17 
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 {
44  class PXDClusterChargeCollectorModule : public CalibrationCollectorModule {
45 
46  public:
47 
52  void prepare() override final;
53  void collect() override final;
54  void startRun() override final;
55 
56  private:
67 
69  std::string m_storeClustersName;
71  std::string m_storeTracksName;
73  std::string m_storeRecoTracksName;
75  std::string m_storeMCParticlesName;
76 
80  int m_minClusterSize;
82  int m_maxClusterSize;
84  int m_nBinsU;
86  int m_nBinsV;
88  std::string m_chargeName;
90  std::string m_gainName;
99 
101  int m_signal;
103  int m_run;
105  int m_exp;
110 
115  };
117 }
Belle2::PXDClusterChargeCollectorModule::m_run
int m_run
Run number to be stored in dbtree.
Definition: PXDClusterChargeCollectorModule.h:111
Belle2::PXDClusterChargeCollectorModule::startRun
void startRun() override final
Replacement for beginRun(). Do anything you would normally do in beginRun here.
Definition: PXDClusterChargeCollectorModule.cc:150
Belle2::PXDClusterChargeCollectorModule::m_nBinsU
int m_nBinsU
Number of corrections per sensor along u side.
Definition: PXDClusterChargeCollectorModule.h:92
Belle2::PXDClusterChargeCollectorModule::m_recoTracks
StoreArray< RecoTrack > m_recoTracks
Required input RecoTracks.
Definition: PXDClusterChargeCollectorModule.h:72
Belle2::PXDClusterChargeCollectorModule::m_mcParticles
StoreArray< MCParticle > m_mcParticles
Optional input MCParticles
Definition: PXDClusterChargeCollectorModule.h:68
Belle2::PXDClusterChargeCollectorModule::m_storeClustersName
std::string m_storeClustersName
Name of the collection to use for PXDClusters.
Definition: PXDClusterChargeCollectorModule.h:77
Belle2::PXDClusterChargeCollectorModule::m_gainName
std::string m_gainName
Payload name for Gain to be read from DB.
Definition: PXDClusterChargeCollectorModule.h:98
Belle2::PXDGainMapPar
The payload class for PXD gain corrections.
Definition: PXDGainMapPar.h:53
Belle2::PXDClusterChargeCollectorModule::m_pxdClusters
StoreArray< PXDCluster > m_pxdClusters
Required input PXDClusters
Definition: PXDClusterChargeCollectorModule.h:66
Belle2::PXDClusterChargeCollectorModule::m_storeRecoTracksName
std::string m_storeRecoTracksName
Name of the collection to use for RecoTracks.
Definition: PXDClusterChargeCollectorModule.h:81
Belle2::PXDClusterChargeCollectorModule::m_storeTracksName
std::string m_storeTracksName
Name of the collection to use for Tracks.
Definition: PXDClusterChargeCollectorModule.h:79
Belle2::PXDClusterChargeCollectorModule::m_DBChargeMapPar
DBObjPtr< PXDClusterChargeMapPar > m_DBChargeMapPar
Pointer to ChargeMap calibration in DB.
Definition: PXDClusterChargeCollectorModule.h:120
Belle2::DBObjPtr
Class for accessing objects in the database.
Definition: DBObjPtr.h:31
Belle2::PXDClusterChargeCollectorModule::m_fillChargeHistogram
bool m_fillChargeHistogram
Flag to fill cluster charge histograms.
Definition: PXDClusterChargeCollectorModule.h:104
Belle2::PXDClusterChargeCollectorModule::m_storeMCParticlesName
std::string m_storeMCParticlesName
Name of the collection to use for MCParticles.
Definition: PXDClusterChargeCollectorModule.h:83
Belle2::RecoTrack
This is the Reconstruction Event-Data Model Track.
Definition: RecoTrack.h:78
Belle2::PXDClusterChargeCollectorModule::m_matchTrack
int m_matchTrack
Flag to use track matched clusters (=1) and apply theta angle projection to cluster charge (=2)
Definition: PXDClusterChargeCollectorModule.h:106
Belle2::PXDClusterChargeCollectorModule::m_signal
int m_signal
Cluster charge in ADU.
Definition: PXDClusterChargeCollectorModule.h:109
Belle2::PXDClusterChargeCollectorModule::m_mcSamples
bool m_mcSamples
Flag to deal with MC samples.
Definition: PXDClusterChargeCollectorModule.h:100
Belle2::PXDClusterChargeCollectorModule::prepare
void prepare() override final
Replacement for initialize(). Register calibration dataobjects here as well.
Definition: PXDClusterChargeCollectorModule.cc:61
Belle2::PXDClusterChargeCollectorModule::m_minClusterCharge
int m_minClusterCharge
Minimum cluster charge cut
Definition: PXDClusterChargeCollectorModule.h:86
Belle2::PXDClusterChargeCollectorModule::m_exp
int m_exp
Experiment number to be stored in dbtree.
Definition: PXDClusterChargeCollectorModule.h:113
Belle2::PXDClusterChargeCollectorModule::m_relationCheck
bool m_relationCheck
Flag to check relations between PXDClusters and PXDClustersFromTracks.
Definition: PXDClusterChargeCollectorModule.h:102
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::PXDClusterChargeCollectorModule::collect
void collect() override final
Replacement for event(). Fill you calibration data objects here.
Definition: PXDClusterChargeCollectorModule.cc:169
Belle2::PXDCluster
The PXD Cluster class This class stores all information about reconstructed PXD clusters The position...
Definition: PXDCluster.h:41
Belle2::PXDClusterChargeCollectorModule::m_evtMetaData
StoreObjPtr< EventMetaData > m_evtMetaData
Required input EventMetaData.
Definition: PXDClusterChargeCollectorModule.h:74
Belle2::PXDClusterChargeCollectorModule::m_chargeName
std::string m_chargeName
Payload name for Cluster Charge to be read from DB.
Definition: PXDClusterChargeCollectorModule.h:96
Belle2::PXDClusterChargeMapPar
The payload class for PXD cluster charge calibrations.
Definition: PXDClusterChargeMapPar.h:40
Belle2::PXDClusterChargeCollectorModule::m_nBinsV
int m_nBinsV
Number of corrections per sensor along v side.
Definition: PXDClusterChargeCollectorModule.h:94
Belle2::PXDClusterChargeCollectorModule::PXDClusterChargeCollectorModule
PXDClusterChargeCollectorModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: PXDClusterChargeCollectorModule.cc:37
Belle2::EventMetaData
Store event, run, and experiment numbers.
Definition: EventMetaData.h:43
Belle2::PXDClusterChargeCollectorModule::m_tracks
StoreArray< Track > m_tracks
Required input Tracks.
Definition: PXDClusterChargeCollectorModule.h:70
Belle2::PXDClusterChargeCollectorModule::m_minClusterSize
int m_minClusterSize
Minimum cluster size cut.
Definition: PXDClusterChargeCollectorModule.h:88
Belle2::Track
Class that bundles various TrackFitResults.
Definition: Track.h:35
Belle2::MCParticle
A Class to store the Monte Carlo particle information.
Definition: MCParticle.h:43
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::PXDClusterChargeCollectorModule::m_chargeMap
PXDClusterChargeMapPar m_chargeMap
ChargeMap to be stored in dbtree.
Definition: PXDClusterChargeCollectorModule.h:115
Belle2::PXDClusterChargeCollectorModule::m_gainMap
PXDGainMapPar m_gainMap
GainMap to be stored in dbtree.
Definition: PXDClusterChargeCollectorModule.h:117
Belle2::PXDClusterChargeCollectorModule::m_DBGainMapPar
DBObjPtr< PXDGainMapPar > m_DBGainMapPar
Pointer to GainMap calibration in DB.
Definition: PXDClusterChargeCollectorModule.h:122
Belle2::PXDClusterChargeCollectorModule::m_maxClusterSize
int m_maxClusterSize
Maximum cluster size cut.
Definition: PXDClusterChargeCollectorModule.h:90