CMS 3D CMS Logo

EcalPerEvtMatacqAnalyzer.h
Go to the documentation of this file.
1 // $Id: EcalPerEvtMatacqAnalyzer.h
2 
3 #include <memory>
5 
6 
7 class TTree;
8 class TFile;
9 
10 #define N_samples 2560
11 #define N_channels 1
12 
13 
14 
16 
17  public:
18 
19  explicit EcalPerEvtMatacqAnalyzer(const edm::ParameterSet& iConfig);
21 
22 
23  virtual void analyze( const edm::Event & e, const edm::EventSetup& c);
24  virtual void beginJob();
25  virtual void endJob();
26 
27 
28  private:
29 
35 
37 
38  int iEvent;
39 
40  // Identify run type
41 
42  int runType;
43  int runNum;
44 
45  //Declaration of leaves types
46 
47  int event ;
49  double matacq[N_samples];
50  unsigned int maxsamp;
51  unsigned int nsamples;
52 
53  TFile *sampFile;
54  TTree *tree;
55 
58  TFile *outFile;
59  int status;
60  double peak, sigma, fit, ampl, trise, ttrig;
61  TTree* mtqShape;
62 
63  private:
64 
65 //
66 // Framework parameters
67 //
68 // unsigned int _nsamples;
69  double _presample;
70  unsigned int _nsamplesaftmax;
71  unsigned int _nsamplesbefmax;
72  unsigned int _noiseCut;
73  unsigned int _parabnbefmax;
74  unsigned int _parabnaftmax;
75  unsigned int _thres;
76  unsigned int _lowlev;
77  unsigned int _highlev;
78  unsigned int _nevlasers;
79 
80 };
81 
82 
EcalPerEvtMatacqAnalyzer(const edm::ParameterSet &iConfig)
#define N_samples
virtual void analyze(const edm::Event &e, const edm::EventSetup &c)