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>
58  HLTInfo(edm::ParameterSet const& pset, edm::ConsumesCollector&& iC, T& module);
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 
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
Handle.h
HLTInfo::UnpackBxInEvent
int UnpackBxInEvent
Definition: HLTInfo.h:95
L1TUtmTriggerMenuRcd.h
TriggerResults.h
L1TUtmTriggerMenuRcd
Definition: L1TUtmTriggerMenuRcd.h:11
HLTBitAnalyser_cfi.hltresults
hltresults
Definition: HLTBitAnalyser_cfi.py:13
edm::Run
Definition: Run.h:45
MyStrings
std::vector< std::string > MyStrings
Definition: HLTInfo.h:41
edm
HLT enums.
Definition: AlignableModifier.h:19
GlobalExtBlk.h
tree
Definition: tree.py:1
HLTInfo::_OR_BXes
bool _OR_BXes
Definition: HLTInfo.h:94
L1TUtmAlgorithm.h
HLTInfo::hltppt
float * hltppt
Definition: HLTInfo.h:79
edm::ConsumesCollector::esConsumes
auto esConsumes()
Definition: ConsumesCollector.h:97
edm::Handle< edm::TriggerResults >
HLTInfo::l1tUtmTriggerMenuToken_
edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > l1tUtmTriggerMenuToken_
Definition: HLTInfo.h:76
HLTInfo::analyze
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
HLTInfo::dummyBranches_
std::vector< std::string > dummyBranches_
Definition: HLTInfo.h:87
CaloMETCollection.h
L1TUtmTriggerMenu
Definition: L1TUtmTriggerMenu.h:25
EventPrincipal.h
HcalDigiCollections.h
EcalDigiCollections.h
HLTInfo::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &)
Definition: HLTInfo.cc:29
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HLTInfo::l1techflag
int * l1techflag
Definition: HLTInfo.h:82
L1TUtmTriggerMenu.h
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
HLTInfo
Definition: HLTInfo.h:53
L1CaloCollections.h
iEvent
int iEvent
Definition: GenABIO.cc:224
GlobalAlgBlk.h
JetUtil.h
edm::EventSetup
Definition: EventSetup.h:58
HLTInfo::trigPrescl
int * trigPrescl
Definition: HLTInfo.h:83
HLTInfo::techBitToName
TString * techBitToName
Definition: HLTInfo.h:86
HLTInfo::l1flag5Bx
int * l1flag5Bx
Definition: HLTInfo.h:82
HLTInfo::setup
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition: HLTInfo.cc:47
edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd >
HLTInfo::cache_id_
unsigned long long cache_id_
Definition: HLTInfo.h:100
HLTBitAnalyser_cfi.l1results
l1results
Definition: HLTBitAnalyser_cfi.py:8
HLTInfo::hltpeta
float * hltpeta
Definition: HLTInfo.h:79
HLTInfo::L1EvtCnt
int L1EvtCnt
Definition: HLTInfo.h:80
HLTInfo::algoBitToName
TString * algoBitToName
Definition: HLTInfo.h:85
HLTInfo::hltPrescaleProvider_
std::unique_ptr< HLTPrescaleProvider > hltPrescaleProvider_
Definition: HLTInfo.h:91
HLTInfo::processName_
std::string processName_
Definition: HLTInfo.h:92
T
long double T
Definition: Basic3DVectorLD.h:48
HLTInfo::_Debug
bool _Debug
Definition: HLTInfo.h:107
Provenance.h
HLTInfo::nhltpart
int nhltpart
Definition: HLTInfo.h:80
HLTInfo::HLTInfo
HLTInfo()
Definition: HLTInfo.cc:22
HLTPrescaleProvider.h
HLTInfo::l1techPrescl
int * l1techPrescl
Definition: HLTInfo.h:83
HLTInfo::l1flag
int * l1flag
Definition: HLTInfo.h:82
HLTInfo::l1Prescl
int * l1Prescl
Definition: HLTInfo.h:83
Candidate.h
HLTInfo::HltEvtCnt
int HltEvtCnt
Definition: HLTInfo.h:80
ParameterSet.h
HLTInfo::trigflag
int * trigflag
Definition: HLTInfo.h:82
edm::Event
Definition: Event.h:73
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27