CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTInfo.h
Go to the documentation of this file.
1 #ifndef HLTINFO_H
2 #define HLTINFO_H
3 
4 #include "TH1.h"
5 #include "TH2.h"
6 #include "TFile.h"
7 #include "TNamed.h"
8 #include <memory>
9 #include <vector>
10 #include <map>
11 #include "TROOT.h"
12 #include "TChain.h"
13 
28 
30 
34 
35 //ccla
38 
39 /* #include "CalibFormats/CaloTPG/interface/CaloTPGTranscoder.h" */
40 /* #include "CalibFormats/CaloTPG/interface/CaloTPGRecord.h" */
41 /* #include "CondFormats/L1TObjects/interface/L1CaloEtScale.h" */
42 /* #include "CondFormats/DataRecord/interface/L1EmEtScaleRcd.h" */
43 /* #include "CondFormats/L1TObjects/interface/L1RCTParameters.h" */
44 /* #include "CondFormats/DataRecord/interface/L1RCTParametersRcd.h" */
45 /* #include "L1Trigger/RegionalCaloTrigger/interface/L1RCT.h" */
46 /* #include "L1Trigger/RegionalCaloTrigger/interface/L1RCTLookupTables.h" */
47 
50 
51 // #include "DataFormats/L1Trigger/interface/L1ParticleMap.h"
57 //#include "DataFormats/L1GlobalTrigger/interface/L1GtLogicParser.h"
58 
60 
61 namespace edm {
62  class ConsumesCollector;
63  class ParameterSet;
64 }
65 
66 typedef std::vector<std::string> MyStrings;
67 
74 class HLTInfo {
75 public:
76 
77  template <typename T>
80  T& module);
81 
82  template <typename T>
83  HLTInfo(edm::ParameterSet const& pset,
85  T& module);
86 
87  void setup(const edm::ParameterSet& pSet, TTree* tree);
88  void beginRun(const edm::Run& , const edm::EventSetup& );
89 
91  void analyze(const edm::Handle<edm::TriggerResults> & hltresults,
101  //const edm::Handle<l1extra::L1ParticleMapCollection> & l1mapcoll,
103  const edm::Handle<L1GctHFBitCountsCollection> & gctBitCounts,
104  const edm::Handle<L1GctHFRingEtSumsCollection> & gctRingSums,
105  edm::EventSetup const& eventSetup,
106  edm::Event const& iEvent,
107  TTree* tree);
108 
109 private:
110 
111  HLTInfo();
112 
113  // Tree variables
114  float *hltppt, *hltpeta;
123  float met, metphi, ettot;
124  float mht, mhtphi, ethad;
126  //int L1EvtCnt,HltEvtCnt,nhltpart,nl1extiem,nl1extnem,nl1extmu,nl1extjetc,nl1extjetf,nl1extjt,nl1exttau;
133 
134  TString * algoBitToName;
135  TString * techBitToName;
136  std::vector<std::string> dummyBranches_;
137 
138  std::unique_ptr<HLTPrescaleProvider> hltPrescaleProvider_;
140 
141  bool _OR_BXes;
142  int UnpackBxInEvent; // save number of BXs unpacked in event
143 
144  // input variables
145  bool _Debug;
146 };
147 
148 template <typename T>
151  T& module) :
152  HLTInfo(pset, iC, module) {
153 }
154 
155 template <typename T>
158  T& module) :
159  HLTInfo() {
160  hltPrescaleProvider_.reset(new HLTPrescaleProvider(pset, iC, module));
161 }
162 
163 #endif
bool _Debug
Definition: HLTInfo.h:145
int L1EvtCnt
Definition: HLTInfo.h:125
float * l1extjte
Definition: HLTInfo.h:121
std::vector< std::string > dummyBranches_
Definition: HLTInfo.h:136
int l1hfTowerCountNegativeEtaRing2
Definition: HLTInfo.h:132
int * l1extmuchg
Definition: HLTInfo.h:118
int nhltpart
Definition: HLTInfo.h:125
HLTInfo()
Definition: HLTInfo.cc:24
int nl1extmu
Definition: HLTInfo.h:125
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition: HLTInfo.cc:53
int * l1Prescl
Definition: HLTInfo.h:128
float * l1extiemeta
Definition: HLTInfo.h:115
int * l1techPrescl
Definition: HLTInfo.h:128
float * l1extmupt
Definition: HLTInfo.h:117
void analyze(const edm::Handle< edm::TriggerResults > &hltresults, const edm::Handle< l1extra::L1EmParticleCollection > &l1extemi, const edm::Handle< l1extra::L1EmParticleCollection > &l1extemn, const edm::Handle< l1extra::L1MuonParticleCollection > &l1extmu, const edm::Handle< l1extra::L1JetParticleCollection > &l1extjetc, const edm::Handle< l1extra::L1JetParticleCollection > &l1extjetf, const edm::Handle< l1extra::L1JetParticleCollection > &l1extjet, const edm::Handle< l1extra::L1JetParticleCollection > &l1exttaujet, const edm::Handle< l1extra::L1EtMissParticleCollection > &l1extmet, const edm::Handle< l1extra::L1EtMissParticleCollection > &l1extmht, const edm::Handle< L1GlobalTriggerReadoutRecord > &l1GTRR, const edm::Handle< L1GctHFBitCountsCollection > &gctBitCounts, const edm::Handle< L1GctHFRingEtSumsCollection > &gctRingSums, edm::EventSetup const &eventSetup, edm::Event const &iEvent, TTree *tree)
Definition: HLTInfo.cc:189
float * l1extjtphi
Definition: HLTInfo.h:121
int l1hfRing1EtSumNegativeEta
Definition: HLTInfo.h:129
float metphi
Definition: HLTInfo.h:123
float * l1exttauet
Definition: HLTInfo.h:122
float * hltpeta
Definition: HLTInfo.h:114
float * l1extnemphi
Definition: HLTInfo.h:116
int nl1extiem
Definition: HLTInfo.h:125
float * l1extieme
Definition: HLTInfo.h:115
int * l1extmufor
Definition: HLTInfo.h:127
float ethad
Definition: HLTInfo.h:124
int l1hfRing2EtSumNegativeEta
Definition: HLTInfo.h:129
float * l1extjtfet
Definition: HLTInfo.h:120
float * l1extjtcphi
Definition: HLTInfo.h:119
float * l1exttaue
Definition: HLTInfo.h:122
int l1hfTowerCountPositiveEtaRing2
Definition: HLTInfo.h:132
std::string processName_
Definition: HLTInfo.h:139
int l1hfTowerCountPositiveEtaRing1
Definition: HLTInfo.h:131
float * l1extmueta
Definition: HLTInfo.h:117
int iEvent
Definition: GenABIO.cc:230
int * l1techflag5Bx
Definition: HLTInfo.h:127
int UnpackBxInEvent
Definition: HLTInfo.h:142
TString * algoBitToName
Definition: HLTInfo.h:134
int * l1extmuqul
Definition: HLTInfo.h:127
float mht
Definition: HLTInfo.h:124
float * l1extjtceta
Definition: HLTInfo.h:119
int l1hfTowerCountNegativeEtaRing1
Definition: HLTInfo.h:131
float * l1extjtet
Definition: HLTInfo.h:121
int nl1extjt
Definition: HLTInfo.h:125
float * l1exttaueta
Definition: HLTInfo.h:122
int HltEvtCnt
Definition: HLTInfo.h:125
float met
Definition: HLTInfo.h:123
std::vector< std::string > MyStrings
EgammaCoreTools.
Definition: HLTAlCa.h:39
void beginRun(const edm::Run &, const edm::EventSetup &)
Definition: HLTInfo.cc:32
float * l1extnemet
Definition: HLTInfo.h:116
int nl1exttau
Definition: HLTInfo.h:125
float * l1extjtce
Definition: HLTInfo.h:119
int l1hfRing2EtSumPositiveEta
Definition: HLTInfo.h:130
int * l1flag
Definition: HLTInfo.h:127
float * l1extjteta
Definition: HLTInfo.h:121
TString * techBitToName
Definition: HLTInfo.h:135
int * l1extmumip
Definition: HLTInfo.h:127
int nl1extjet
Definition: HLTInfo.h:125
float * l1extneme
Definition: HLTInfo.h:116
float * l1extnemeta
Definition: HLTInfo.h:116
bool _OR_BXes
Definition: HLTInfo.h:141
int * trigPrescl
Definition: HLTInfo.h:128
int nl1extjetf
Definition: HLTInfo.h:125
float * l1extmue
Definition: HLTInfo.h:117
int * l1techflag
Definition: HLTInfo.h:127
float * l1extmuphi
Definition: HLTInfo.h:117
int nl1extnem
Definition: HLTInfo.h:125
int * l1extmurpc
Definition: HLTInfo.h:127
float * l1extjtfphi
Definition: HLTInfo.h:120
float ettot
Definition: HLTInfo.h:123
float * l1extiemet
Definition: HLTInfo.h:115
float * l1extjtfe
Definition: HLTInfo.h:120
float * l1extjtfeta
Definition: HLTInfo.h:120
float mhtphi
Definition: HLTInfo.h:124
int * trigflag
Definition: HLTInfo.h:127
int * l1flag5Bx
Definition: HLTInfo.h:127
float * l1extjtcet
Definition: HLTInfo.h:119
int l1hfRing1EtSumPositiveEta
Definition: HLTInfo.h:130
float * hltppt
Definition: HLTInfo.h:114
int * l1extmuiso
Definition: HLTInfo.h:127
long double T
Definition: vlib.h:208
int nl1extjetc
Definition: HLTInfo.h:125
float * l1extiemphi
Definition: HLTInfo.h:115
Definition: Run.h:43
float * l1exttauphi
Definition: HLTInfo.h:122
std::unique_ptr< HLTPrescaleProvider > hltPrescaleProvider_
Definition: HLTInfo.h:138