CMS 3D CMS Logo

HLTInfo.h
Go to the documentation of this file.
1 #ifndef HLTINFO_H
2 #define HLTINFO_H
3 
4 #include <vector>
5 #include <map>
6 
7 // ROOT
8 #include <TChain.h>
9 #include <TFile.h>
10 #include <TH1.h>
11 #include <TH2.h>
12 #include <TNamed.h>
13 #include <TROOT.h>
14 
15 // 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 
52 class HLTInfo {
53 public:
54  //HLTInfo();
55 
56  template <typename T>
58 
59  template <typename T>
60  HLTInfo(edm::ParameterSet const& pset, edm::ConsumesCollector& iC, T& module);
61 
62  void setup(const edm::ParameterSet& pSet, TTree* tree);
63  void beginRun(const edm::Run&, const edm::EventSetup&);
64 
68  edm::EventSetup const& eventSetup,
69  edm::Event const& iEvent,
70  TTree* tree);
71 
72 private:
73  HLTInfo();
74 
75  // Tree variables
76  float *hltppt, *hltpeta;
77  int L1EvtCnt, HltEvtCnt, nhltpart;
78 
79  int *trigflag, *l1flag, *l1flag5Bx, *l1techflag;
80  int *trigPrescl, *l1Prescl, *l1techPrescl;
81 
82  TString* algoBitToName;
83  TString* techBitToName;
84  std::vector<std::string> dummyBranches_;
85 
86  //HLTConfigProvider hltConfig_;
87  //L1GtUtils m_l1GtUtils;
88  std::unique_ptr<HLTPrescaleProvider> hltPrescaleProvider_;
90 
91  bool _OR_BXes;
92  int UnpackBxInEvent; // save number of BXs unpacked in event
93 
94  // input variables
95 
96  // L1 uGT menu
97  unsigned long long cache_id_;
98 
99  /*
100  edm::ESHandle<L1TUtmTriggerMenu> menu;
101  //std::map<std::string, L1TUtmAlgorithm> const & algorithmMap_;
102  const std::map<std::string, L1TUtmAlgorithm>* algorithmMap_;
103  */
104  bool _Debug;
105 };
106 
107 template <typename T>
109 
110 template <typename T>
112  hltPrescaleProvider_.reset(new HLTPrescaleProvider(pset, iC, module));
113 }
114 
115 #endif
bool _Debug
Definition: HLTInfo.h:104
std::vector< std::string > dummyBranches_
Definition: HLTInfo.h:84
int nhltpart
Definition: HLTInfo.h:77
HLTInfo()
Definition: HLTInfo.cc:22
unsigned long long cache_id_
Definition: HLTInfo.h:97
std::vector< std::string > MyStrings
Definition: HLTInfo.h:41
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
std::string processName_
Definition: HLTInfo.h:89
int iEvent
Definition: GenABIO.cc:224
int UnpackBxInEvent
Definition: HLTInfo.h:92
TString * algoBitToName
Definition: HLTInfo.h:82
TString * techBitToName
Definition: HLTInfo.h:83
bool _OR_BXes
Definition: HLTInfo.h:91
int * trigPrescl
Definition: HLTInfo.h:80
HLT enums.
int * trigflag
Definition: HLTInfo.h:79
Definition: tree.py:1
float * hltppt
Definition: HLTInfo.h:76
long double T
Definition: vlib.h:198
Definition: Run.h:45
std::unique_ptr< HLTPrescaleProvider > hltPrescaleProvider_
Definition: HLTInfo.h:88