CMS 3D CMS Logo

EcalABAnalyzer.h
Go to the documentation of this file.
1 #ifndef EcalABAnalyzer_h_
2 #define EcalABAnalyzer_h_
3 
4 // $Id: EcalABAnalyzer.h
5 
6 #include <memory>
7 #include <vector>
8 #include <map>
9 
11 
12 class TShapeAnalysis;
13 class TAPDPulse;
14 class TMom;
15 
16 // Define geometrical constants
17 // NOT the same for "EB" and "EE"
18 //
19 // "EB" "EE"
20 //
21 // 0 0
22 // 1 2 1 2
23 // 3 4
24 // 5 6
25 // 7 8
26 //
27 //
28 
29 // "EB" geometry
30 #define NCRYSEB 1700 // Number of crystals per EB supermodule
31 
32 // "EE" geometry
33 #define NCRYSEE 830 // Number of crystals per EE supermodule
34 
36 public:
37  explicit EcalABAnalyzer(const edm::ParameterSet &iConfig);
38  ~EcalABAnalyzer() override;
39 
40  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
41  void beginJob() override;
42  void endJob() override;
43 
44  enum VarCol { iBlue, iRed, nColor };
45 
46 private:
47  int iEvent;
48 
49  // Framework parameters
50 
51  unsigned int _nsamples;
52  unsigned int _presample;
53  unsigned int _firstsample;
54  unsigned int _lastsample;
55  unsigned int _timingcutlow;
56  unsigned int _timingcuthigh;
57  unsigned int _timingquallow;
58  unsigned int _timingqualhigh;
62  double _presamplecut;
63  unsigned int _niter;
64  double _alpha;
65  double _beta;
66  unsigned int _nevtmax;
67  double _noise;
68  double _chi2cut;
70  int _fedid;
71  double _qualpercent;
72  int _debug;
73 
77 
83 
84  // Output file names
85 
88 
90  unsigned int nevtAB[NCRYSEB];
91 
92  // Define geometrical constants
93  // Default values correspond to "EB" geometry (1700 crystals)
94 
95  unsigned int nCrys;
97 
98  bool _fitab;
99  // Identify run type
100 
101  int runType;
102  int runNum;
103  int fedID;
104  int dccID;
105  int side;
107  int iZ;
108 
109  // Temporary root files and trees
110 
111  std::vector<int> colors;
112  std::map<int, int> channelMapEE;
113  std::vector<int> dccMEM;
114  std::vector<int> modules;
115 
116  // Declaration of leaves types for temporary trees
117 
118  int phi, eta;
119  int event;
120  int color;
121  double adc[10];
122  int adcG[10];
124 
127 
128  // Quality Checks variables and flags
129 
133 
136 
137  bool isGainOK;
139 };
140 
141 #endif
EcalABAnalyzer::iChannelID
int iChannelID[1700]
Definition: EcalABAnalyzer.h:126
EcalABAnalyzer::_ecalPart
std::string _ecalPart
Definition: EcalABAnalyzer.h:69
EcalABAnalyzer::dccMEM
std::vector< int > dccMEM
Definition: EcalABAnalyzer.h:113
EcalABAnalyzer::modules
std::vector< int > modules
Definition: EcalABAnalyzer.h:114
EcalABAnalyzer::nCrys
unsigned int nCrys
Definition: EcalABAnalyzer.h:95
EcalABAnalyzer::runType
int runType
Definition: EcalABAnalyzer.h:101
EcalABAnalyzer::digiProducer_
std::string digiProducer_
Definition: EcalABAnalyzer.h:80
EcalABAnalyzer::_ratiomaxcutlow
double _ratiomaxcutlow
Definition: EcalABAnalyzer.h:61
EcalABAnalyzer::phi
int phi
Definition: EcalABAnalyzer.h:118
EcalABAnalyzer::_noise
double _noise
Definition: EcalABAnalyzer.h:67
EcalABAnalyzer::iPhi
int iPhi[1700]
Definition: EcalABAnalyzer.h:125
EcalABAnalyzer::iEvent
int iEvent
Definition: EcalABAnalyzer.h:47
EcalABAnalyzer::isGainOK
bool isGainOK
Definition: EcalABAnalyzer.h:137
EcalABAnalyzer::_presamplecut
double _presamplecut
Definition: EcalABAnalyzer.h:62
EcalABAnalyzer::digiCollection_
std::string digiCollection_
Definition: EcalABAnalyzer.h:79
NCRYSEB
#define NCRYSEB
Definition: EcalABAnalyzer.h:30
EcalABAnalyzer::shapana
TShapeAnalysis * shapana
Definition: EcalABAnalyzer.h:89
EcalABAnalyzer::_timingqualhigh
unsigned int _timingqualhigh
Definition: EcalABAnalyzer.h:58
EDAnalyzer.h
EcalABAnalyzer::nevtAB
unsigned int nevtAB[1700]
Definition: EcalABAnalyzer.h:90
EcalABAnalyzer::_fitab
bool _fitab
Definition: EcalABAnalyzer.h:98
EcalABAnalyzer::Delta01
TMom * Delta01
Definition: EcalABAnalyzer.h:75
EcalABAnalyzer::iBlue
Definition: EcalABAnalyzer.h:44
EcalABAnalyzer::VarCol
VarCol
Definition: EcalABAnalyzer.h:44
EcalABAnalyzer::idccID
int idccID[1700]
Definition: EcalABAnalyzer.h:126
EcalABAnalyzer::_chi2cut
double _chi2cut
Definition: EcalABAnalyzer.h:68
edm::EDAnalyzer
Definition: EDAnalyzer.h:29
TAPDPulse
Definition: TAPDPulse.h:7
EcalABAnalyzer::~EcalABAnalyzer
~EcalABAnalyzer() override
Definition: EcalABAnalyzer.cc:155
EcalABAnalyzer::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: EcalABAnalyzer.cc:231
EcalABAnalyzer::EcalABAnalyzer
EcalABAnalyzer(const edm::ParameterSet &iConfig)
Definition: EcalABAnalyzer.cc:52
EcalABAnalyzer::nEvtBadTiming
int nEvtBadTiming[1700]
Definition: EcalABAnalyzer.h:131
EcalABAnalyzer::adc
double adc[10]
Definition: EcalABAnalyzer.h:121
EcalABAnalyzer::_lastsample
unsigned int _lastsample
Definition: EcalABAnalyzer.h:54
EcalABAnalyzer::nColor
Definition: EcalABAnalyzer.h:44
EcalABAnalyzer::alphainitfile
std::string alphainitfile
Definition: EcalABAnalyzer.h:87
EcalABAnalyzer::_alpha
double _alpha
Definition: EcalABAnalyzer.h:64
EcalABAnalyzer::channelMapEE
std::map< int, int > channelMapEE
Definition: EcalABAnalyzer.h:112
EcalABAnalyzer::runNum
int runNum
Definition: EcalABAnalyzer.h:102
EcalABAnalyzer::nEvtTot
int nEvtTot[1700]
Definition: EcalABAnalyzer.h:132
EcalABAnalyzer::iZ
int iZ
Definition: EcalABAnalyzer.h:107
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalABAnalyzer::side
int side
Definition: EcalABAnalyzer.h:105
EcalABAnalyzer::_niter
unsigned int _niter
Definition: EcalABAnalyzer.h:63
EcalABAnalyzer::resdir_
std::string resdir_
Definition: EcalABAnalyzer.h:78
edm::ParameterSet
Definition: ParameterSet.h:36
TMom
Definition: TMom.h:7
EcalABAnalyzer::color
int color
Definition: EcalABAnalyzer.h:120
EcalABAnalyzer::doesABTreeExist
bool doesABTreeExist
Definition: EcalABAnalyzer.h:96
EcalABAnalyzer::lightside
int lightside
Definition: EcalABAnalyzer.h:106
EcalABAnalyzer::dccID
int dccID
Definition: EcalABAnalyzer.h:104
EcalABAnalyzer::beginJob
void beginJob() override
Definition: EcalABAnalyzer.cc:163
EcalABAnalyzer::_beta
double _beta
Definition: EcalABAnalyzer.h:65
EcalABAnalyzer::_debug
int _debug
Definition: EcalABAnalyzer.h:72
EcalABAnalyzer::_fedid
int _fedid
Definition: EcalABAnalyzer.h:70
EcalABAnalyzer::eventHeaderCollection_
std::string eventHeaderCollection_
Definition: EcalABAnalyzer.h:81
EcalABAnalyzer::eventHeaderProducer_
std::string eventHeaderProducer_
Definition: EcalABAnalyzer.h:82
EcalABAnalyzer::adcG
int adcG[10]
Definition: EcalABAnalyzer.h:122
edm::EventSetup
Definition: EventSetup.h:57
EcalABAnalyzer::Delta12
TMom * Delta12
Definition: EcalABAnalyzer.h:76
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
EcalABAnalyzer::iRed
Definition: EcalABAnalyzer.h:44
EcalABAnalyzer::_timingcuthigh
unsigned int _timingcuthigh
Definition: EcalABAnalyzer.h:56
EcalABAnalyzer::_nsamples
unsigned int _nsamples
Definition: EcalABAnalyzer.h:51
TShapeAnalysis
Definition: TShapeAnalysis.h:10
EcalABAnalyzer::event
int event
Definition: EcalABAnalyzer.h:119
EcalABAnalyzer::channelIteratorEE
int channelIteratorEE
Definition: EcalABAnalyzer.h:123
EcalABAnalyzer::_firstsample
unsigned int _firstsample
Definition: EcalABAnalyzer.h:53
EcalABAnalyzer::colors
std::vector< int > colors
Definition: EcalABAnalyzer.h:111
EcalABAnalyzer::iTowerID
int iTowerID[1700]
Definition: EcalABAnalyzer.h:126
EcalABAnalyzer
Definition: EcalABAnalyzer.h:35
EcalABAnalyzer::_ratiomincutlow
double _ratiomincutlow
Definition: EcalABAnalyzer.h:59
EcalABAnalyzer::_timingcutlow
unsigned int _timingcutlow
Definition: EcalABAnalyzer.h:55
EcalABAnalyzer::iside
int iside[1700]
Definition: EcalABAnalyzer.h:126
EcalABAnalyzer::_presample
unsigned int _presample
Definition: EcalABAnalyzer.h:52
EcalABAnalyzer::wasTimingOK
bool wasTimingOK[1700]
Definition: EcalABAnalyzer.h:135
EcalABAnalyzer::wasGainOK
bool wasGainOK[1700]
Definition: EcalABAnalyzer.h:134
EcalABAnalyzer::_qualpercent
double _qualpercent
Definition: EcalABAnalyzer.h:71
EcalABAnalyzer::iEta
int iEta[1700]
Definition: EcalABAnalyzer.h:125
EcalABAnalyzer::fedID
int fedID
Definition: EcalABAnalyzer.h:103
EcalABAnalyzer::_ratiomincuthigh
double _ratiomincuthigh
Definition: EcalABAnalyzer.h:60
EcalABAnalyzer::eta
int eta
Definition: EcalABAnalyzer.h:118
EcalABAnalyzer::endJob
void endJob() override
Definition: EcalABAnalyzer.cc:522
EcalABAnalyzer::isTimingOK
bool isTimingOK
Definition: EcalABAnalyzer.h:138
EcalABAnalyzer::_timingquallow
unsigned int _timingquallow
Definition: EcalABAnalyzer.h:57
EcalABAnalyzer::alphafile
std::string alphafile
Definition: EcalABAnalyzer.h:86
edm::Event
Definition: Event.h:73
EcalABAnalyzer::APDPulse
TAPDPulse * APDPulse
Definition: EcalABAnalyzer.h:74
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
EcalABAnalyzer::_nevtmax
unsigned int _nevtmax
Definition: EcalABAnalyzer.h:66
EcalABAnalyzer::nEvtBadGain
int nEvtBadGain[1700]
Definition: EcalABAnalyzer.h:130