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 };
EcalPerEvtMatacqAnalyzer::laser_color
int laser_color
Definition: EcalPerEvtMatacqAnalyzer.h:40
EcalPerEvtMatacqAnalyzer::EcalPerEvtMatacqAnalyzer
EcalPerEvtMatacqAnalyzer(const edm::ParameterSet &iConfig)
Definition: EcalPerEvtMatacqAnalyzer.cc:33
EcalPerEvtMatacqAnalyzer::nsamples
unsigned int nsamples
Definition: EcalPerEvtMatacqAnalyzer.h:43
EcalPerEvtMatacqAnalyzer::sampFile
TFile * sampFile
Definition: EcalPerEvtMatacqAnalyzer.h:45
EcalPerEvtMatacqAnalyzer::mtqShape
TTree * mtqShape
Definition: EcalPerEvtMatacqAnalyzer.h:53
EcalPerEvtMatacqAnalyzer::_parabnbefmax
unsigned int _parabnbefmax
Definition: EcalPerEvtMatacqAnalyzer.h:64
EcalPerEvtMatacqAnalyzer::runType
int runType
Definition: EcalPerEvtMatacqAnalyzer.h:34
EcalPerEvtMatacqAnalyzer::_nsamplesbefmax
unsigned int _nsamplesbefmax
Definition: EcalPerEvtMatacqAnalyzer.h:62
EcalPerEvtMatacqAnalyzer::peak
double peak
Definition: EcalPerEvtMatacqAnalyzer.h:52
EcalPerEvtMatacqAnalyzer::_lowlev
unsigned int _lowlev
Definition: EcalPerEvtMatacqAnalyzer.h:67
EcalPerEvtMatacqAnalyzer::_nsamplesaftmax
unsigned int _nsamplesaftmax
Definition: EcalPerEvtMatacqAnalyzer.h:61
EDAnalyzer.h
EcalPerEvtMatacqAnalyzer::runNum
int runNum
Definition: EcalPerEvtMatacqAnalyzer.h:35
EcalPerEvtMatacqAnalyzer::outFile
TFile * outFile
Definition: EcalPerEvtMatacqAnalyzer.h:50
EcalPerEvtMatacqAnalyzer::outfile
std::string outfile
Definition: EcalPerEvtMatacqAnalyzer.h:28
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
N_samples
#define N_samples
Definition: EcalPerEvtMatacqAnalyzer.h:9
EcalPerEvtMatacqAnalyzer::digiCollection_
std::string digiCollection_
Definition: EcalPerEvtMatacqAnalyzer.h:23
EcalPerEvtMatacqAnalyzer::digiProducer_
std::string digiProducer_
Definition: EcalPerEvtMatacqAnalyzer.h:24
EcalPerEvtMatacqAnalyzer::status
int status
Definition: EcalPerEvtMatacqAnalyzer.h:51
EcalPerEvtMatacqAnalyzer::~EcalPerEvtMatacqAnalyzer
~EcalPerEvtMatacqAnalyzer() override
Definition: EcalPerEvtMatacqAnalyzer.cc:62
EcalPerEvtMatacqAnalyzer::_presample
double _presample
Definition: EcalPerEvtMatacqAnalyzer.h:60
EcalPerEvtMatacqAnalyzer::endJob
void endJob() override
Definition: EcalPerEvtMatacqAnalyzer.cc:208
EcalPerEvtMatacqAnalyzer::eventHeaderProducer_
std::string eventHeaderProducer_
Definition: EcalPerEvtMatacqAnalyzer.h:26
EcalPerEvtMatacqAnalyzer::tree
TTree * tree
Definition: EcalPerEvtMatacqAnalyzer.h:46
EcalPerEvtMatacqAnalyzer::sigma
double sigma
Definition: EcalPerEvtMatacqAnalyzer.h:52
EcalPerEvtMatacqAnalyzer::event
int event
Definition: EcalPerEvtMatacqAnalyzer.h:39
edm::ParameterSet
Definition: ParameterSet.h:47
EcalPerEvtMatacqAnalyzer::resdir_
std::string resdir_
Definition: EcalPerEvtMatacqAnalyzer.h:22
EcalPerEvtMatacqAnalyzer::_noiseCut
unsigned int _noiseCut
Definition: EcalPerEvtMatacqAnalyzer.h:63
EcalPerEvtMatacqAnalyzer::_thres
unsigned int _thres
Definition: EcalPerEvtMatacqAnalyzer.h:66
EcalPerEvtMatacqAnalyzer::_nevlasers
unsigned int _nevlasers
Definition: EcalPerEvtMatacqAnalyzer.h:69
EcalPerEvtMatacqAnalyzer::_parabnaftmax
unsigned int _parabnaftmax
Definition: EcalPerEvtMatacqAnalyzer.h:65
EcalPerEvtMatacqAnalyzer::ampl
double ampl
Definition: EcalPerEvtMatacqAnalyzer.h:52
EcalPerEvtMatacqAnalyzer::eventHeaderCollection_
std::string eventHeaderCollection_
Definition: EcalPerEvtMatacqAnalyzer.h:25
edm::EventSetup
Definition: EventSetup.h:58
EcalPerEvtMatacqAnalyzer::iEvent
int iEvent
Definition: EcalPerEvtMatacqAnalyzer.h:30
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalPerEvtMatacqAnalyzer::beginJob
void beginJob() override
Definition: EcalPerEvtMatacqAnalyzer.cc:70
EcalPerEvtMatacqAnalyzer::_highlev
unsigned int _highlev
Definition: EcalPerEvtMatacqAnalyzer.h:68
EcalPerEvtMatacqAnalyzer::trise
double trise
Definition: EcalPerEvtMatacqAnalyzer.h:52
EcalPerEvtMatacqAnalyzer
Definition: EcalPerEvtMatacqAnalyzer.h:12
EcalPerEvtMatacqAnalyzer::matacq
double matacq[2560]
Definition: EcalPerEvtMatacqAnalyzer.h:41
EcalPerEvtMatacqAnalyzer::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: EcalPerEvtMatacqAnalyzer.cc:80
EcalPerEvtMatacqAnalyzer::IsTreeCreated
int IsTreeCreated
Definition: EcalPerEvtMatacqAnalyzer.h:49
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
edm::Event
Definition: Event.h:73
EcalPerEvtMatacqAnalyzer::ttrig
double ttrig
Definition: EcalPerEvtMatacqAnalyzer.h:52
EcalPerEvtMatacqAnalyzer::fit
double fit
Definition: EcalPerEvtMatacqAnalyzer.h:52
EcalPerEvtMatacqAnalyzer::IsFileCreated
int IsFileCreated
Definition: EcalPerEvtMatacqAnalyzer.h:48
EcalPerEvtMatacqAnalyzer::maxsamp
unsigned int maxsamp
Definition: EcalPerEvtMatacqAnalyzer.h:42
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37