CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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&);
43  virtual void analyze(edm::Event const &, edm::EventSetup const &);
44  virtual void beginRun(edm::Run const &, edm::EventSetup const &) ;
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 i
Definition: DBlmapReader.cc:9
int tpgEmul_[5]
const CaloSubdetectorGeometry * theEndcapGeometry_
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
edm::ESHandle< EcalTrigTowerConstituentsMap > eTTmap_
EcalTPGVariables treeVariables_
edm::InputTag digiCollectionEB_
edm::InputTag tpEmulatorCollection_
edm::InputTag tpCollection_
virtual void analyze(edm::Event const &, edm::EventSetup const &)
const CaloSubdetectorGeometry * theBarrelGeometry_
EcalTPGAnalyzer(const edm::ParameterSet &)
edm::InputTag digiCollectionEE_
Definition: Run.h:43