CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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>
61  HLTInfo(edm::ParameterSet const& pset, edm::ConsumesCollector& iC, T& module);
62 
63  void setup(const edm::ParameterSet& pSet, TTree* tree);
64  void beginRun(const edm::Run&, const edm::EventSetup&);
65 
67  void analyze(const edm::Handle<edm::TriggerResults>& hltresults,
69  edm::EventSetup const& eventSetup,
70  edm::Event const& iEvent,
71  TTree* tree);
72 
73 private:
74  HLTInfo();
75 
77 
78  // Tree variables
79  float *hltppt, *hltpeta;
81 
84 
85  TString* algoBitToName;
86  TString* techBitToName;
87  std::vector<std::string> dummyBranches_;
88 
89  //HLTConfigProvider hltConfig_;
90  //L1GtUtils m_l1GtUtils;
91  std::unique_ptr<HLTPrescaleProvider> hltPrescaleProvider_;
93 
94  bool _OR_BXes;
95  int UnpackBxInEvent; // save number of BXs unpacked in event
96 
97  // input variables
98 
99  // L1 uGT menu
100  unsigned long long cache_id_;
101 
102  /*
103  edm::ESHandle<L1TUtmTriggerMenu> menu;
104  //std::map<std::string, L1TUtmAlgorithm> const & algorithmMap_;
105  const std::map<std::string, L1TUtmAlgorithm>* algorithmMap_;
106  */
107  bool _Debug;
108 };
109 
110 template <typename T>
112 
113 template <typename T>
116  hltPrescaleProvider_ = std::make_unique<HLTPrescaleProvider>(pset, iC, module);
117 }
118 
119 #endif
bool _Debug
Definition: HLTInfo.h:107
int L1EvtCnt
Definition: HLTInfo.h:80
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:87
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 * l1Prescl
Definition: HLTInfo.h:83
int * l1techPrescl
Definition: HLTInfo.h:83
unsigned long long cache_id_
Definition: HLTInfo.h:100
float * hltpeta
Definition: HLTInfo.h:79
std::vector< std::string > MyStrings
Definition: HLTInfo.h:41
std::string processName_
Definition: HLTInfo.h:92
int iEvent
Definition: GenABIO.cc:224
int UnpackBxInEvent
Definition: HLTInfo.h:95
TString * algoBitToName
Definition: HLTInfo.h:85
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:86
bool _OR_BXes
Definition: HLTInfo.h:94
int * trigPrescl
Definition: HLTInfo.h:83
int * l1techflag
Definition: HLTInfo.h:82
int * trigflag
Definition: HLTInfo.h:82
int * l1flag5Bx
Definition: HLTInfo.h:82
float * hltppt
Definition: HLTInfo.h:79
long double T
Definition: Run.h:45
tuple module
Definition: callgraph.py:69
std::unique_ptr< HLTPrescaleProvider > hltPrescaleProvider_
Definition: HLTInfo.h:91