CMS 3D CMS Logo

EcalTPGAnalyzer.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Class: EcalTPGAnalyzer
4 //
5 //
6 // Original Author: Pascal Paganini
7 //
8 
15 #include <vector>
16 #include <string>
17 #include <TFile.h>
18 #include <TTree.h>
19 
21 
22 
23 // Auxiliary class
24 class towerEner {
25  public:
26  float eRec_ ;
27  int tpgEmul_[5] ;
28  int tpgADC_;
31  : eRec_(0), tpgADC_(0),
32  iphi_(-999), ieta_(-999), nbXtal_(0)
33  {
34  for (int i=0 ; i<5 ; i ++) tpgEmul_[i] = 0 ;
35  }
36 };
37 
38 
40 public:
41  explicit EcalTPGAnalyzer(const edm::ParameterSet&);
42  ~EcalTPGAnalyzer() override;
43  void analyze(edm::Event const &, edm::EventSetup const &) override;
44  void beginRun(edm::Run const &, edm::EventSetup const &) override ;
45 
46 private:
48  {
49  // event variables
50  unsigned int runNb ;
51  unsigned int evtNb ;
52  unsigned int bxNb ;
53  unsigned int orbitNb ;
54  unsigned int nbOfActiveTriggers ;
55  int activeTriggers[128] ;
56 
57  // tower variables
58  unsigned int nbOfTowers ; //max 4032 EB+EE
59  int ieta[4032] ;
60  int iphi[4032] ;
61  int nbOfXtals[4032] ;
62  int rawTPData[4032] ;
63  int rawTPEmul1[4032] ;
64  int rawTPEmul2[4032] ;
65  int rawTPEmul3[4032] ;
66  int rawTPEmul4[4032] ;
67  int rawTPEmul5[4032] ;
68  float eRec[4032] ;
69  } ;
70 
71 private:
72  TFile * file_;
73  TTree * tree_ ;
75 
81 
82  bool allowTP_ ;
83  bool useEE_ ;
84  bool print_ ;
85 
89 
90 
91 };
92 
std::string gtRecordCollectionTag_
int tpgEmul_[5]
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
const CaloSubdetectorGeometry * theEndcapGeometry_
edm::ESHandle< EcalTrigTowerConstituentsMap > eTTmap_
EcalTPGVariables treeVariables_
edm::InputTag digiCollectionEB_
edm::InputTag tpEmulatorCollection_
edm::InputTag tpCollection_
const CaloSubdetectorGeometry * theBarrelGeometry_
edm::InputTag digiCollectionEE_
Definition: Run.h:43