CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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);
20 
21 
22  virtual void analyze( const edm::Event & e, const edm::EventSetup& c);
23  virtual void beginJob();
24  virtual void endJob();
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
virtual void analyze(const edm::Event &e, const edm::EventSetup &c)
EcalMatacqAnalyzer(const edm::ParameterSet &iConfig)
std::vector< int > colors
unsigned int _nsamplesshape
std::string eventHeaderProducer_
TMTQ * MTQ[nColor][nSide]
TTree * meanTree[nColor]
unsigned int _timebefmax
std::string eventHeaderCollection_
virtual void beginJob()
#define N_samples
unsigned int _parabnaftmax
unsigned int _timeaftmax
std::string digiCollection_
unsigned int _nsamplesaftmax
unsigned int _parabnbefmax