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 
16  public:
17 
18  explicit EcalMatacqAnalyzer(const edm::ParameterSet& iConfig);
19  ~EcalMatacqAnalyzer() override;
20 
21 
22  void analyze( const edm::Event & e, const edm::EventSetup& c) override;
23  void beginJob() override;
24  void endJob() override;
25 
26  enum VarCol { iBlue, iRed, nColor };
27  enum VarSide { iSide0, iSide1, nSide };
28 
29  private:
30 
31  int iEvent;
32 
33 //
34 // Framework parameters
35 //
36 
37  double _presample;
38  unsigned int _nsamplesaftmax;
39  unsigned int _noiseCut;
40  unsigned int _parabnbefmax;
41  unsigned int _parabnaftmax;
42  unsigned int _thres;
43  unsigned int _lowlev;
44  unsigned int _highlev;
45  unsigned int _nevlasers;
46  unsigned int _timebefmax;
47  unsigned int _timeaftmax;
48  double _cutwindow;
49  unsigned int _nsamplesshape;
50  unsigned int _presampleshape;
51  unsigned int _slide;
52  int _fedid;
53  int _debug;
54 
60 
63 
64 
65  // Identify run type
66 
67  unsigned int nSides;
68  int lightside;
69  int runType;
70  int runNum;
71  int dccID;
72  int fedID;
73 
74  // Count Laser Events
77 
78  //Declaration of leaves types
79 
80  int event ;
81  int color ;
82  double matacq[N_samples];
83  int maxsamp;
84  int nsamples;
85  double tt;
86 
87  TFile *sampFile;
88  TTree *tree;
89 
91  TTree *meanTree[nColor];
92 
93  std::vector<int> colors;
94 
95  TFile *outFile;
96  int status;
98  TTree* mtqShape;
99 
100 
101 };
102 
103 
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