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);
20  ~EcalPerEvtMatacqAnalyzer() override;
21 
22 
23  void analyze( const edm::Event & e, const edm::EventSetup& c) override;
24  void beginJob() override;
25  void endJob() override;
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 
void analyze(const edm::Event &e, const edm::EventSetup &c) override
EcalPerEvtMatacqAnalyzer(const edm::ParameterSet &iConfig)
#define N_samples