CMS 3D CMS Logo

HLTInfo.h
Go to the documentation of this file.
1 #ifndef HLTINFO_H
2 #define HLTINFO_H
3 
4 #include <memory>
5 #include <vector>
6 #include <map>
7 
8 // ROOT
9 #include <TChain.h>
10 #include <TFile.h>
11 #include <TH1.h>
12 #include <TH2.h>
13 #include <TNamed.h>
14 #include <TROOT.h>
15 
16 // CMSSW
33 
34 #include "JetUtil.h"
35 
36 namespace edm {
37  class ConsumesCollector;
38  class ParameterSet;
39 } // namespace edm
40 
41 typedef std::vector<std::string> MyStrings;
42 
53 class HLTInfo {
54 public:
55  //HLTInfo();
56 
57  template <typename T>
59 
60  template <typename T>
62 
63  void setup(const edm::ParameterSet& pSet, TTree* tree);
64  void beginRun(const edm::Run&, const edm::EventSetup&);
65 
70  edm::Event const& iEvent,
71  TTree* tree);
72 
73 private:
74  HLTInfo();
75 
77 
78  // Tree variables
79  float *hltppt, *hltpeta;
81 
83  double* trigPrescl;
85 
86  TString* algoBitToName;
87  TString* techBitToName;
88  std::vector<std::string> dummyBranches_;
89 
90  //HLTConfigProvider hltConfig_;
91  //L1GtUtils m_l1GtUtils;
92  std::unique_ptr<HLTPrescaleProvider> hltPrescaleProvider_;
94 
95  bool _OR_BXes;
96  int UnpackBxInEvent; // save number of BXs unpacked in event
97 
98  // input variables
99 
100  // L1 uGT menu
101  unsigned long long cache_id_;
102 
103  /*
104  edm::ESHandle<L1TUtmTriggerMenu> menu;
105  //std::map<std::string, L1TUtmAlgorithm> const & algorithmMap_;
106  const std::map<std::string, L1TUtmAlgorithm>* algorithmMap_;
107  */
108  bool _Debug;
109 };
110 
111 template <typename T>
113 
114 template <typename T>
117  hltPrescaleProvider_ = std::make_unique<HLTPrescaleProvider>(pset, iC, module);
118 }
119 
120 #endif
bool _Debug
Definition: HLTInfo.h:108
int L1EvtCnt
Definition: HLTInfo.h:80
double * trigPrescl
Definition: HLTInfo.h:83
void analyze(const edm::Handle< edm::TriggerResults > &hltresults, const edm::Handle< GlobalAlgBlkBxCollection > &l1results, edm::EventSetup const &eventSetup, edm::Event const &iEvent, TTree *tree)
Definition: HLTInfo.cc:84
std::vector< std::string > dummyBranches_
Definition: HLTInfo.h:88
int nhltpart
Definition: HLTInfo.h:80
HLTInfo()
Definition: HLTInfo.cc:22
edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > l1tUtmTriggerMenuToken_
Definition: HLTInfo.h:76
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition: HLTInfo.cc:47
int * l1techPrescl
Definition: HLTInfo.h:84
unsigned long long cache_id_
Definition: HLTInfo.h:101
float * hltpeta
Definition: HLTInfo.h:79
std::vector< std::string > MyStrings
Definition: HLTInfo.h:41
std::string processName_
Definition: HLTInfo.h:93
int iEvent
Definition: GenABIO.cc:224
int UnpackBxInEvent
Definition: HLTInfo.h:96
TString * algoBitToName
Definition: HLTInfo.h:86
int HltEvtCnt
Definition: HLTInfo.h:80
void beginRun(const edm::Run &, const edm::EventSetup &)
Definition: HLTInfo.cc:29
int * l1flag
Definition: HLTInfo.h:82
TString * techBitToName
Definition: HLTInfo.h:87
bool _OR_BXes
Definition: HLTInfo.h:95
int * l1Prescl
Definition: HLTInfo.h:84
int * l1techflag
Definition: HLTInfo.h:82
HLT enums.
int * trigflag
Definition: HLTInfo.h:82
int * l1flag5Bx
Definition: HLTInfo.h:82
Definition: tree.py:1
float * hltppt
Definition: HLTInfo.h:79
long double T
Definition: Run.h:45
std::unique_ptr< HLTPrescaleProvider > hltPrescaleProvider_
Definition: HLTInfo.h:92