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 };
Definition: TMTQ.h:8
unsigned int _presampleshape
EcalMatacqAnalyzer(const edm::ParameterSet &iConfig)
std::vector< int > colors
void beginJob() override
unsigned int _nsamplesshape
std::string eventHeaderProducer_
TMTQ * MTQ[nColor][nSide]
TTree * meanTree[nColor]
unsigned int _timebefmax
void analyze(const edm::Event &e, const edm::EventSetup &c) override
std::string eventHeaderCollection_
#define N_samples
~EcalMatacqAnalyzer() override
unsigned int _parabnaftmax
unsigned int _timeaftmax
void endJob() override
std::string digiCollection_
unsigned int _nsamplesaftmax
unsigned int _parabnbefmax