Belle II Software development
PXDClusterChargeCollectorModule.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <calibration/CalibrationCollectorModule.h>
12
13#include <framework/datastore/StoreArray.h>
14#include <framework/database/DBObjPtr.h>
15
16#include <pxd/dataobjects/PXDCluster.h>
17#include <mdst/dataobjects/MCParticle.h>
18#include <mdst/dataobjects/Track.h>
19#include <tracking/dataobjects/RecoTrack.h>
20
21#include <pxd/dbobjects/PXDClusterChargeMapPar.h>
22#include <pxd/dbobjects/PXDGainMapPar.h>
23
24#include <string>
25
26namespace Belle2 {
43
44 public:
45
51 void prepare() override final;
53 void collect() override final;
55 void startRun() override final;
56
57 private:
68
72 std::string m_storeTracksName;
77
89 std::string m_chargeName;
91 std::string m_gainName;
100
104 int m_run;
106 int m_exp;
111
116 };
118}
Calibration collector module base class.
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
Collector module for PXD gain calibration.
int m_matchTrack
Flag to use track matched clusters (=1) and apply theta angle projection to cluster charge (=2)
std::string m_storeRecoTracksName
Name of the collection to use for RecoTracks.
std::string m_storeTracksName
Name of the collection to use for Tracks.
int m_nBinsV
Number of corrections per sensor along v side.
PXDClusterChargeMapPar m_chargeMap
ChargeMap to be stored in dbtree.
std::string m_gainName
Payload name for Gain to be read from DB.
std::string m_storeMCParticlesName
Name of the collection to use for MCParticles.
PXDGainMapPar m_gainMap
GainMap to be stored in dbtree.
int m_nBinsU
Number of corrections per sensor along u side.
std::string m_chargeName
Payload name for Cluster Charge to be read from DB.
StoreObjPtr< EventMetaData > m_evtMetaData
Required input EventMetaData.
DBObjPtr< PXDGainMapPar > m_DBGainMapPar
Pointer to GainMap calibration in DB.
StoreArray< Track > m_tracks
Required input Tracks.
int m_exp
Experiment number to be stored in dbtree.
bool m_relationCheck
Flag to check relations between PXDClusters and PXDClustersFromTracks.
std::string m_storeClustersName
Name of the collection to use for PXDClusters.
StoreArray< PXDCluster > m_pxdClusters
Required input PXDClusters
StoreArray< RecoTrack > m_recoTracks
Required input RecoTracks.
StoreArray< MCParticle > m_mcParticles
Optional input MCParticles
DBObjPtr< PXDClusterChargeMapPar > m_DBChargeMapPar
Pointer to ChargeMap calibration in DB.
PXDClusterChargeCollectorModule()
Constructor: Sets the description, the properties and the parameters of the module.
bool m_fillChargeHistogram
Flag to fill cluster charge histograms.
The payload class for PXD cluster charge calibrations.
The payload class for PXD gain corrections.
Definition: PXDGainMapPar.h:43
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.