CMS 3D CMS Logo

EcalMatacqAnalyzer.h
Go to the documentation of this file.
1 // $Id: EcalMatacqAnalyzer.h
2 
3 #include <memory>
5 
6 class TFile;
7 class TTree;
8 class TMTQ;
9 
10 #define N_samples 2560
11 #define N_channels 1
12 #define NSIDES 2 // Number of sides
13 
15 public:
16  explicit EcalMatacqAnalyzer(const edm::ParameterSet &iConfig);
17  ~EcalMatacqAnalyzer() override;
18 
19  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
20  void beginJob() override;
21  void endJob() override;
22 
23  enum VarCol { iBlue, iRed, nColor };
24  enum VarSide { iSide0, iSide1, nSide };
25 
26 private:
27  int iEvent;
28 
29  //
30  // Framework parameters
31  //
32 
33  double _presample;
34  unsigned int _nsamplesaftmax;
35  unsigned int _noiseCut;
36  unsigned int _parabnbefmax;
37  unsigned int _parabnaftmax;
38  unsigned int _thres;
39  unsigned int _lowlev;
40  unsigned int _highlev;
41  unsigned int _nevlasers;
42  unsigned int _timebefmax;
43  unsigned int _timeaftmax;
44  double _cutwindow;
45  unsigned int _nsamplesshape;
46  unsigned int _presampleshape;
47  unsigned int _slide;
48  int _fedid;
49  int _debug;
50 
56 
59 
60  // Identify run type
61 
62  unsigned int nSides;
63  int lightside;
64  int runType;
65  int runNum;
66  int dccID;
67  int fedID;
68 
69  // Count Laser Events
72 
73  //Declaration of leaves types
74 
75  int event;
76  int color;
77  double matacq[N_samples];
78  int maxsamp;
79  int nsamples;
80  double tt;
81 
82  TFile *sampFile;
83  TTree *tree;
84 
86  TTree *meanTree[nColor];
87 
88  std::vector<int> colors;
89 
90  TFile *outFile;
91  int status;
93  TTree *mtqShape;
94 };
EcalMatacqAnalyzer::color
int color
Definition: EcalMatacqAnalyzer.h:76
EcalMatacqAnalyzer::runType
int runType
Definition: EcalMatacqAnalyzer.h:64
EcalMatacqAnalyzer::nSide
Definition: EcalMatacqAnalyzer.h:24
EcalMatacqAnalyzer::_parabnaftmax
unsigned int _parabnaftmax
Definition: EcalMatacqAnalyzer.h:37
EcalMatacqAnalyzer::iSide0
Definition: EcalMatacqAnalyzer.h:24
EcalMatacqAnalyzer::beginJob
void beginJob() override
Definition: EcalMatacqAnalyzer.cc:95
EcalMatacqAnalyzer::_nsamplesshape
unsigned int _nsamplesshape
Definition: EcalMatacqAnalyzer.h:45
EcalMatacqAnalyzer::VarSide
VarSide
Definition: EcalMatacqAnalyzer.h:24
EcalMatacqAnalyzer::eventHeaderProducer_
std::string eventHeaderProducer_
Definition: EcalMatacqAnalyzer.h:55
EcalMatacqAnalyzer::digiCollection_
std::string digiCollection_
Definition: EcalMatacqAnalyzer.h:52
EcalMatacqAnalyzer::event
int event
Definition: EcalMatacqAnalyzer.h:75
EcalMatacqAnalyzer::ped
double ped
Definition: EcalMatacqAnalyzer.h:92
EcalMatacqAnalyzer::iEvent
int iEvent
Definition: EcalMatacqAnalyzer.h:27
EcalMatacqAnalyzer::tt
double tt
Definition: EcalMatacqAnalyzer.h:80
EcalMatacqAnalyzer
Definition: EcalMatacqAnalyzer.h:14
EcalMatacqAnalyzer::nSides
unsigned int nSides
Definition: EcalMatacqAnalyzer.h:62
EcalMatacqAnalyzer::_cutwindow
double _cutwindow
Definition: EcalMatacqAnalyzer.h:44
EDAnalyzer.h
EcalMatacqAnalyzer::_timeaftmax
unsigned int _timeaftmax
Definition: EcalMatacqAnalyzer.h:43
EcalMatacqAnalyzer::outfile
std::string outfile
Definition: EcalMatacqAnalyzer.h:57
EcalMatacqAnalyzer::fwhm
double fwhm
Definition: EcalMatacqAnalyzer.h:92
EcalMatacqAnalyzer::nsamples
int nsamples
Definition: EcalMatacqAnalyzer.h:79
EcalMatacqAnalyzer::_lowlev
unsigned int _lowlev
Definition: EcalMatacqAnalyzer.h:39
EcalMatacqAnalyzer::sliding
double sliding
Definition: EcalMatacqAnalyzer.h:92
EcalMatacqAnalyzer::resdir_
std::string resdir_
Definition: EcalMatacqAnalyzer.h:51
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
EcalMatacqAnalyzer::outFile
TFile * outFile
Definition: EcalMatacqAnalyzer.h:90
TMTQ
Definition: TMTQ.h:8
EcalMatacqAnalyzer::_presampleshape
unsigned int _presampleshape
Definition: EcalMatacqAnalyzer.h:46
EcalMatacqAnalyzer::dccID
int dccID
Definition: EcalMatacqAnalyzer.h:66
EcalMatacqAnalyzer::sigma
double sigma
Definition: EcalMatacqAnalyzer.h:92
EcalMatacqAnalyzer::ampl
double ampl
Definition: EcalMatacqAnalyzer.h:92
EcalMatacqAnalyzer::iBlue
Definition: EcalMatacqAnalyzer.h:23
EcalMatacqAnalyzer::status
int status
Definition: EcalMatacqAnalyzer.h:91
EcalMatacqAnalyzer::_noiseCut
unsigned int _noiseCut
Definition: EcalMatacqAnalyzer.h:35
EcalMatacqAnalyzer::_parabnbefmax
unsigned int _parabnbefmax
Definition: EcalMatacqAnalyzer.h:36
EcalMatacqAnalyzer::_nsamplesaftmax
unsigned int _nsamplesaftmax
Definition: EcalMatacqAnalyzer.h:34
EcalMatacqAnalyzer::ttrig
double ttrig
Definition: EcalMatacqAnalyzer.h:92
EcalMatacqAnalyzer::maxsamp
int maxsamp
Definition: EcalMatacqAnalyzer.h:78
EcalMatacqAnalyzer::nColor
Definition: EcalMatacqAnalyzer.h:23
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalMatacqAnalyzer::tree
TTree * tree
Definition: EcalMatacqAnalyzer.h:83
EcalMatacqAnalyzer::_slide
unsigned int _slide
Definition: EcalMatacqAnalyzer.h:47
edm::ParameterSet
Definition: ParameterSet.h:47
EcalMatacqAnalyzer::fw80
double fw80
Definition: EcalMatacqAnalyzer.h:92
EcalMatacqAnalyzer::colors
std::vector< int > colors
Definition: EcalMatacqAnalyzer.h:88
EcalMatacqAnalyzer::laserEvents
int laserEvents
Definition: EcalMatacqAnalyzer.h:70
EcalMatacqAnalyzer::isThereMatacq
bool isThereMatacq
Definition: EcalMatacqAnalyzer.h:71
N_samples
#define N_samples
Definition: EcalMatacqAnalyzer.h:10
EcalMatacqAnalyzer::EcalMatacqAnalyzer
EcalMatacqAnalyzer(const edm::ParameterSet &iConfig)
Definition: EcalMatacqAnalyzer.cc:38
EcalMatacqAnalyzer::iSide1
Definition: EcalMatacqAnalyzer.h:24
EcalMatacqAnalyzer::trise
double trise
Definition: EcalMatacqAnalyzer.h:92
EcalMatacqAnalyzer::_debug
int _debug
Definition: EcalMatacqAnalyzer.h:49
EcalMatacqAnalyzer::MTQ
TMTQ * MTQ[nColor][nSide]
Definition: EcalMatacqAnalyzer.h:85
EcalMatacqAnalyzer::VarCol
VarCol
Definition: EcalMatacqAnalyzer.h:23
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
EcalMatacqAnalyzer::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: EcalMatacqAnalyzer.cc:139
EcalMatacqAnalyzer::_nevlasers
unsigned int _nevlasers
Definition: EcalMatacqAnalyzer.h:41
EcalMatacqAnalyzer::lightside
int lightside
Definition: EcalMatacqAnalyzer.h:63
EcalMatacqAnalyzer::_fedid
int _fedid
Definition: EcalMatacqAnalyzer.h:48
EcalMatacqAnalyzer::~EcalMatacqAnalyzer
~EcalMatacqAnalyzer() override
Definition: EcalMatacqAnalyzer.cc:87
EcalMatacqAnalyzer::sampfile
std::string sampfile
Definition: EcalMatacqAnalyzer.h:58
EcalMatacqAnalyzer::_highlev
unsigned int _highlev
Definition: EcalMatacqAnalyzer.h:40
EcalMatacqAnalyzer::fw20
double fw20
Definition: EcalMatacqAnalyzer.h:92
EcalMatacqAnalyzer::matacq
double matacq[2560]
Definition: EcalMatacqAnalyzer.h:77
EcalMatacqAnalyzer::mtqShape
TTree * mtqShape
Definition: EcalMatacqAnalyzer.h:93
EcalMatacqAnalyzer::runNum
int runNum
Definition: EcalMatacqAnalyzer.h:65
EcalMatacqAnalyzer::endJob
void endJob() override
Definition: EcalMatacqAnalyzer.cc:297
EcalMatacqAnalyzer::pedsig
double pedsig
Definition: EcalMatacqAnalyzer.h:92
EcalMatacqAnalyzer::_presample
double _presample
Definition: EcalMatacqAnalyzer.h:33
EcalMatacqAnalyzer::_thres
unsigned int _thres
Definition: EcalMatacqAnalyzer.h:38
EcalMatacqAnalyzer::fedID
int fedID
Definition: EcalMatacqAnalyzer.h:67
EcalMatacqAnalyzer::meanTree
TTree * meanTree[nColor]
Definition: EcalMatacqAnalyzer.h:86
edm::Event
Definition: Event.h:73
EcalMatacqAnalyzer::sampFile
TFile * sampFile
Definition: EcalMatacqAnalyzer.h:82
EcalMatacqAnalyzer::digiProducer_
std::string digiProducer_
Definition: EcalMatacqAnalyzer.h:53
EcalMatacqAnalyzer::eventHeaderCollection_
std::string eventHeaderCollection_
Definition: EcalMatacqAnalyzer.h:54
EcalMatacqAnalyzer::fit
double fit
Definition: EcalMatacqAnalyzer.h:92
EcalMatacqAnalyzer::iRed
Definition: EcalMatacqAnalyzer.h:23
EcalMatacqAnalyzer::_timebefmax
unsigned int _timebefmax
Definition: EcalMatacqAnalyzer.h:42
EcalMatacqAnalyzer::peak
double peak
Definition: EcalMatacqAnalyzer.h:92
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37