CMS 3D CMS Logo

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