Belle II Software  release-05-01-25
eclGammaGammaECollectorModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2018 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Christopher Hearty *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 //Calibration
14 #include <calibration/CalibrationCollectorModule.h>
15 
16 //Framework
17 #include <framework/database/DBObjPtr.h>
18 #include <framework/datastore/StoreArray.h>
19 
20 namespace Belle2 {
25  class ECLCrystalCalib;
26  class TRGSummary;
27  class EventMetaData;
28  class Track;
29  class ECLCluster;
30  class ECLCalDigit;
31  class ECLDigit;
32 
34  class eclGammaGammaECollectorModule : public CalibrationCollectorModule {
35 
36  public:
37 
40 
42  void prepare() override;
43 
45  void collect() override;
46 
47  private:
49  double m_thetaLabMinDeg{0.};
50  double m_thetaLabMaxDeg{180.};
51  double m_minPairMass;
52  double m_mindPhi;
53  double m_maxTime;
54  bool m_measureTrueEnergy;
55  bool m_requireL1;
67  double thetaLabMin{ -1.0};
68  double thetaLabMax{ -1.0};
69  bool storeCalib = true;
70  std::vector<float> EperCrys;
72  double minTrkpt = 0.3;
73  double maxZ0 = 4.;
74  double maxD0 = 2.;
75  double minpValue = 0.001;
76  int minCDChits = 5;
81  std::vector<float> ExpGammaGammaE;
85  std::vector<float> ElectronicsCalib;
89  std::vector<float> GammaGammaECalib;
91  };
93 }
Belle2::eclGammaGammaECollectorModule::maxD0
double maxD0
(cm) maximum abs(D0) of a good track
Definition: eclGammaGammaECollectorModule.h:82
Belle2::eclGammaGammaECollectorModule::GammaGammaECalib
std::vector< float > GammaGammaECalib
vector obtained from DB object
Definition: eclGammaGammaECollectorModule.h:97
Belle2::eclGammaGammaECollectorModule::m_eclClusterArray
StoreArray< ECLCluster > m_eclClusterArray
Required input array of ECLClusters.
Definition: eclGammaGammaECollectorModule.h:67
Belle2::eclGammaGammaECollectorModule::ExpGammaGammaE
std::vector< float > ExpGammaGammaE
vector obtained from DB object
Definition: eclGammaGammaECollectorModule.h:89
Belle2::eclGammaGammaECollectorModule::thetaLabMin
double thetaLabMin
Some other useful quantities.
Definition: eclGammaGammaECollectorModule.h:75
Belle2::eclGammaGammaECollectorModule::m_evtMetaData
StoreObjPtr< EventMetaData > m_evtMetaData
dataStore EventMetaData
Definition: eclGammaGammaECollectorModule.h:70
Belle2::eclGammaGammaECollectorModule::minCDChits
int minCDChits
minimum CDC hits for a good track
Definition: eclGammaGammaECollectorModule.h:84
Belle2::eclGammaGammaECollectorModule::minpValue
double minpValue
minimum p value of a good track
Definition: eclGammaGammaECollectorModule.h:83
Belle2::eclGammaGammaECollectorModule::m_eclCalDigitArray
StoreArray< ECLCalDigit > m_eclCalDigitArray
Required input array of ECLCalDigits.
Definition: eclGammaGammaECollectorModule.h:68
Belle2::eclGammaGammaECollectorModule::m_thetaLabMinDeg
double m_thetaLabMinDeg
Parameters to control the job.
Definition: eclGammaGammaECollectorModule.h:57
Belle2::eclGammaGammaECollectorModule::thetaLabMax
double thetaLabMax
m_thetaLabMaxDeg converted to radians (coneversion in Module::init)
Definition: eclGammaGammaECollectorModule.h:76
Belle2::eclGammaGammaECollectorModule::m_TRGResults
StoreObjPtr< TRGSummary > m_TRGResults
dataStore TRGSummary
Definition: eclGammaGammaECollectorModule.h:71
Belle2::eclGammaGammaECollectorModule::m_measureTrueEnergy
bool m_measureTrueEnergy
use eclCalDigit to determine MC deposited energy (false)
Definition: eclGammaGammaECollectorModule.h:62
Belle2::DBObjPtr
Class for accessing objects in the database.
Definition: DBObjPtr.h:31
Belle2::eclGammaGammaECollectorModule::m_minPairMass
double m_minPairMass
minimum invariant mass of the pair of photons (9 GeV/c^2)
Definition: eclGammaGammaECollectorModule.h:59
Belle2::eclGammaGammaECollectorModule::minTrkpt
double minTrkpt
(GeV/c) minimum pt of a good track
Definition: eclGammaGammaECollectorModule.h:80
Belle2::eclGammaGammaECollectorModule::m_ElectronicsCalib
DBObjPtr< ECLCrystalCalib > m_ElectronicsCalib
Electronics calibration from database.
Definition: eclGammaGammaECollectorModule.h:92
Belle2::eclGammaGammaECollectorModule::m_maxTime
double m_maxTime
maximum photon (time - <t>)/dt99 (1)
Definition: eclGammaGammaECollectorModule.h:61
Belle2::eclGammaGammaECollectorModule::m_thetaLabMaxDeg
double m_thetaLabMaxDeg
maximum photon theta in lab (180 degrees)
Definition: eclGammaGammaECollectorModule.h:58
Belle2::eclGammaGammaECollectorModule::eclGammaGammaECollectorModule
eclGammaGammaECollectorModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: eclGammaGammaECollectorModule.cc:54
Belle2::eclGammaGammaECollectorModule::m_mindPhi
double m_mindPhi
minimum delta phi between clusters (179 deg)
Definition: eclGammaGammaECollectorModule.h:60
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::eclGammaGammaECollectorModule::storeCalib
bool storeCalib
force the input calibration constants to be saved first event
Definition: eclGammaGammaECollectorModule.h:77
Belle2::eclGammaGammaECollectorModule::m_ECLExpGammaGammaE
DBObjPtr< ECLCrystalCalib > m_ECLExpGammaGammaE
Expected energies from database.
Definition: eclGammaGammaECollectorModule.h:88
Belle2::eclGammaGammaECollectorModule::m_requireL1
bool m_requireL1
require events to satisfy a level 1 trigger (true)
Definition: eclGammaGammaECollectorModule.h:63
Belle2::eclGammaGammaECollectorModule::m_trackArray
StoreArray< Track > m_trackArray
Required arrays.
Definition: eclGammaGammaECollectorModule.h:66
Belle2::eclGammaGammaECollectorModule::maxZ0
double maxZ0
(cm) maximum abs(Z0) of a good track
Definition: eclGammaGammaECollectorModule.h:81
Belle2::eclGammaGammaECollectorModule::m_GammaGammaECalib
DBObjPtr< ECLCrystalCalib > m_GammaGammaECalib
Existing single crystal calibration from DB; will be updated by CAF.
Definition: eclGammaGammaECollectorModule.h:96
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::eclGammaGammaECollectorModule::ElectronicsCalib
std::vector< float > ElectronicsCalib
vector obtained from DB object
Definition: eclGammaGammaECollectorModule.h:93
Belle2::eclGammaGammaECollectorModule::collect
void collect() override
Select events and crystals and accumulate histograms.
Definition: eclGammaGammaECollectorModule.cc:161
Belle2::eclGammaGammaECollectorModule::EperCrys
std::vector< float > EperCrys
ECL digit energy for each crystal.
Definition: eclGammaGammaECollectorModule.h:78
Belle2::eclGammaGammaECollectorModule::m_eclDigitArray
StoreArray< ECLDigit > m_eclDigitArray
Required input array of ECLDigits.
Definition: eclGammaGammaECollectorModule.h:69
Belle2::eclGammaGammaECollectorModule::prepare
void prepare() override
Define histograms and read payloads from DB.
Definition: eclGammaGammaECollectorModule.cc:74