CMS 3D CMS Logo

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