CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
StudyHLT.h
Go to the documentation of this file.
1 
2 // system include files
3 #include <memory>
4 #include <string>
5 
6 // Root objects
7 #include "TROOT.h"
8 #include "TSystem.h"
9 #include "TFile.h"
10 #include "TProfile.h"
11 #include "TDirectory.h"
12 #include "TH1.h"
13 #include "TH2.h"
14 
15 // user include files
18 
26 
37 
38 class StudyHLT : public edm::EDAnalyzer {
39 
40 public:
41  explicit StudyHLT(const edm::ParameterSet&);
42  ~StudyHLT();
43 
44 private:
45  virtual void beginJob() ;
46  virtual void analyze(const edm::Event&, const edm::EventSetup&);
47  virtual void endJob() ;
48 
49  virtual void beginRun(edm::Run const&, edm::EventSetup const&);
50  virtual void endRun(edm::Run const&, edm::EventSetup const&);
51  virtual void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&);
52  virtual void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&);
53  void fillTrack(int, double, double, double, double);
54  void fillIsolation(int, double, double, double);
55  void fillEnergy(int, int, double, double, double, double, double);
57 
58  // ----------member data ---------------------------
59  static const int nPBin=10, nEtaBin=4, nPVBin=4;
62  int verbosity;
64  std::vector<std::string> trigNames, HLTNames;
68 
73 
79 
82  TH2I *h_nHLTvsRN;
83  std::vector<TH1I*> h_HLTAccepts;
84  TH1D *h_p[nPVBin+8], *h_pt[nPVBin+8], *h_eta[nPVBin+8], *h_phi[nPVBin+8];
85  TH1I *h_ntrk[2];
86  TH1D *h_maxNearP[2], *h_ene1[2], *h_ene2[2], *h_ediff[2];
87  TH1D *h_energy[nPVBin+4][nPBin][nEtaBin][6];
89  double pBin[nPBin+1];
90 };
void fillEnergy(int, int, double, double, double, double, double)
Definition: StudyHLT.cc:488
edm::EDGetTokenT< EcalRecHitCollection > tok_EE_
Definition: StudyHLT.h:77
TH1I * h_HLTCorr
Definition: StudyHLT.h:80
edm::InputTag triggerEvent_
Definition: StudyHLT.h:69
TH1I * h_numberPV
Definition: StudyHLT.h:80
TH1I * h_nHLT
Definition: StudyHLT.h:80
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
Definition: StudyHLT.cc:450
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
Definition: StudyHLT.cc:472
edm::Service< TFileService > fs
Definition: StudyHLT.h:61
TH1I * h_ntrk[2]
Definition: StudyHLT.h:85
virtual void beginJob()
Definition: StudyHLT.cc:342
double maxTrackEta
Definition: StudyHLT.h:66
std::vector< TH1I * > h_HLTAccepts
Definition: StudyHLT.h:83
TH1D * h_phi[nPVBin+8]
Definition: StudyHLT.h:84
std::vector< std::string > trigNames
Definition: StudyHLT.h:64
TH1D * h_pt[nPVBin+8]
Definition: StudyHLT.h:84
static const int nPVBin
Definition: StudyHLT.h:59
double tMaxH_
Definition: StudyHLT.h:66
TH1I * h_HLTAccept
Definition: StudyHLT.h:80
double minTrackP
Definition: StudyHLT.h:66
int pvBin[nPVBin+1]
Definition: StudyHLT.h:88
virtual void endJob()
Definition: StudyHLT.cc:447
edm::EDGetTokenT< reco::TrackCollection > tok_genTrack_
Definition: StudyHLT.h:74
TH1I * h_goodRun
Definition: StudyHLT.h:81
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: StudyHLT.cc:104
std::string theTrackQuality
Definition: StudyHLT.h:65
spr::trackSelectionParameters selectionParameters
Definition: StudyHLT.h:63
TH1D * h_ene2[2]
Definition: StudyHLT.h:86
void fillIsolation(int, double, double, double)
Definition: StudyHLT.cc:481
bool firstEvent
Definition: StudyHLT.h:67
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
Definition: StudyHLT.h:78
edm::InputTag theTriggerResultsLabel
Definition: StudyHLT.h:69
bool isItAOD
Definition: StudyHLT.h:67
double pBin[nPBin+1]
Definition: StudyHLT.h:89
edm::EDGetTokenT< reco::VertexCollection > tok_recVtx_
Definition: StudyHLT.h:75
void fillTrack(int, double, double, double, double)
Definition: StudyHLT.cc:474
static const int nEtaBin
Definition: StudyHLT.h:59
~StudyHLT()
Definition: StudyHLT.cc:102
std::string truncate_str(const std::string &)
Definition: StudyHLT.cc:507
int nRun
Definition: StudyHLT.h:88
TH1D * h_ene1[2]
Definition: StudyHLT.h:86
virtual void endRun(edm::Run const &, edm::EventSetup const &)
Definition: StudyHLT.cc:464
HLTConfigProvider hltConfig_
Definition: StudyHLT.h:60
TH1D * h_ediff[2]
Definition: StudyHLT.h:86
TH1D * h_maxNearP[2]
Definition: StudyHLT.h:86
TH2I * h_nHLTvsRN
Definition: StudyHLT.h:82
edm::EDGetTokenT< EcalRecHitCollection > tok_EB_
Definition: StudyHLT.h:76
TH1D * h_eta[nPVBin+8]
Definition: StudyHLT.h:84
bool changed
Definition: StudyHLT.h:67
TH1I * h_goodPV
Definition: StudyHLT.h:81
edm::EDGetTokenT< LumiDetails > tok_lumi
Definition: StudyHLT.h:70
int verbosity
Definition: StudyHLT.h:62
edm::EDGetTokenT< edm::TriggerResults > tok_trigRes
Definition: StudyHLT.h:72
std::vector< std::string > HLTNames
Definition: StudyHLT.h:64
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
Definition: StudyHLT.cc:470
int etaBin[nEtaBin+1]
Definition: StudyHLT.h:88
StudyHLT(const edm::ParameterSet &)
Definition: StudyHLT.cc:34
static const int nPBin
Definition: StudyHLT.h:59
double tMinE_
Definition: StudyHLT.h:66
TH1D * h_p[nPVBin+8]
Definition: StudyHLT.h:84
TH1D * h_energy[nPVBin+4][nPBin][nEtaBin][6]
Definition: StudyHLT.h:87
Definition: Run.h:43
double tMinH_
Definition: StudyHLT.h:66
double tMaxE_
Definition: StudyHLT.h:66
edm::EDGetTokenT< trigger::TriggerEvent > tok_trigEvt
Definition: StudyHLT.h:71