test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTJets.h
Go to the documentation of this file.
1 #ifndef HLTJETS_H
2 #define HLTJETS_H
3 
4 #include "TH1.h"
5 #include "TH2.h"
6 #include "TFile.h"
7 #include "TNamed.h"
8 #include <vector>
9 #include <map>
10 #include "TROOT.h"
11 #include "TChain.h"
12 
15 
19 
22 
25 
29 
34 
38 
41 
43 
45 
46 typedef std::vector<std::string> MyStrings;
47 
55 class GetPtGreater {
56 public:
57  template <typename T> bool operator () (const T& i, const T& j) {
58  return (i.getPt() > j.getPt());
59  }
60 };
61 
63 public:
64  template <typename T> bool operator () (const T& i, const T& j) {
65  return (i.pt() > j.pt());
66  }
67 };
68 
69 class HLTJets {
70 public:
71  HLTJets();
72 
73  void setup(const edm::ParameterSet& pSet, TTree* tree, edm::ConsumesCollector&& iC);
74 
76  void analyze(edm::Event const& iEvent,
78  const edm::Handle<reco::CaloJetCollection> & ohcorjets,
79  const edm::Handle<reco::CaloJetCollection> & ohcorL1L2L3jets,
80  const edm::Handle<double> & rho,
81  const edm::Handle<reco::CaloJetCollection> & recojets,
82  const edm::Handle<reco::CaloJetCollection> & recocorjets,
87  const edm::Handle<reco::CaloJetCollection> & myHLTL2Tau,
88  const edm::Handle<reco::HLTTauCollection> & myHLTTau,
89  const edm::Handle<reco::PFTauCollection> & myHLTPFTau,
90  const edm::Handle<reco::PFTauCollection> & myHLTPFTauTightCone,
91  const edm::Handle<reco::PFJetCollection> & myHLTPFJets,
92  const edm::Handle<reco::PFTauCollection> & myRecoPFTau,
93  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrByTanCOnePercent,
94  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrByTanCHalfPercent,
95  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrByTanCQuarterPercent,
96  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrByTanCTenthPercent,
97  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrByIsolation,
98  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrAgainstElec,
99  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrAgainstMuon,
102  const edm::Handle<CaloTowerCollection> & caloTowersCleanerUpperR45,
103  const edm::Handle<CaloTowerCollection> & caloTowersCleanerLowerR45,
104  const edm::Handle<CaloTowerCollection> & caloTowersCleanerNoR45,
105  const CaloTowerTopology * cttopo,
106  const edm::Handle<reco::PFMETCollection> & pfmets,
107  double thresholdForSavingTowers,
108  double minPtCH,
109  double minPtGamma,
110  TTree * tree);
111 
112 private:
113 
114  // Tree variables
118  double jrho;
119 
122 
123  float *jgenpt, *jgenphi, *jgeneta, *jgene;
124  float *towet, *toweta, *towphi, *towen, *towem, *towhd, *towoe;
129 
131 
135 
136  // Taus
140  float *tauEta, *tauPt, *tauPhi;
141  //PFTau
142  int nohPFTau;
146  //PFTau with tight cone
151  //PFJets
152  float pfHT;
153  float pfMHT;
154  int nohPFJet;
156  //Reco PFTau
161  //Reco PF jets
164  int nrpj;
165 
166 
167  // isolation/signal cands for recoPFTau and HLTPFtau
172 
177 
182 
187 
189 
190 
191  // input variables
194 
196 
197  static float etaBarrel() { return 1.4; }
198 
199  //create maps linking histogram pointers to HCAL Channel hits and digis
201 
202 };
203 
204 #endif
float * jhcalpt
Definition: HLTJets.h:115
float * l2tauPhi
Definition: HLTJets.h:137
float * tauPhi
Definition: HLTJets.h:140
int i
Definition: DBlmapReader.cc:9
float * ohpfTauJetPt
Definition: HLTJets.h:144
int noRecoPFTausSignal
Definition: HLTJets.h:168
float _CalJetMin
Definition: HLTJets.h:193
float * recopfTauDiscrAgainstElec
Definition: HLTJets.h:160
float * jrcorcalemf
Definition: HLTJets.h:121
float * jrcorcaleta
Definition: HLTJets.h:121
float * pfJetPhi
Definition: HLTJets.h:155
TString calopfx
Definition: HLTJets.h:200
int * hltpftauIsoTrToPFTauMatch
Definition: HLTJets.h:184
float * HLTPFTauIsoTrPt
Definition: HLTJets.h:186
float * towem
Definition: HLTJets.h:124
float * l2tauEta
Definition: HLTJets.h:137
float * jrcorcaln90hits
Definition: HLTJets.h:121
bool _Debug
Definition: HLTJets.h:192
float * jhcorL1L2L3cale
Definition: HLTJets.h:117
float * jrcaln90
Definition: HLTJets.h:120
float * ohpfTauEta
Definition: HLTJets.h:144
float * ohpfTauTightConeLeadTrackPt
Definition: HLTJets.h:149
TString rjetpfx
Definition: HLTJets.h:200
float * HLTPFTauSignalTrDz
Definition: HLTJets.h:180
float * ohpfTauTightConeTrkIso
Definition: HLTJets.h:150
float * ohpfTauTightConePt
Definition: HLTJets.h:149
int * jpfrecochargedMultiplicity
Definition: HLTJets.h:163
float * ohpfTauLeadTrackPt
Definition: HLTJets.h:144
float htcalet
Definition: HLTJets.h:127
bool _Monte
Definition: HLTJets.h:192
float * recopfTauDiscrByTancQuarterPercent
Definition: HLTJets.h:160
float * pfJetchargedHadronFraction
Definition: HLTJets.h:155
int * recopfTauGammaIso
Definition: HLTJets.h:159
float * recopfTauEta
Definition: HLTJets.h:158
float * jpfrecochargedHadronFraction
Definition: HLTJets.h:162
float * ohpfTauPhi
Definition: HLTJets.h:144
float mgensum
Definition: HLTJets.h:128
float mgenphi
Definition: HLTJets.h:128
int noHLTPFTausIso
Definition: HLTJets.h:183
float * recopfTauDiscrByIso
Definition: HLTJets.h:160
float pfmetphi
Definition: HLTJets.h:130
float * recopfTauLeadTrackPt
Definition: HLTJets.h:158
float * jhcalemf
Definition: HLTJets.h:115
float * recopfTauDiscrByTancHalfPercent
Definition: HLTJets.h:160
int noHLTPFTausSignal
Definition: HLTJets.h:178
int * towR45upper
Definition: HLTJets.h:125
void analyze(edm::Event const &iEvent, const edm::Handle< reco::CaloJetCollection > &ohjets, const edm::Handle< reco::CaloJetCollection > &ohcorjets, const edm::Handle< reco::CaloJetCollection > &ohcorL1L2L3jets, const edm::Handle< double > &rho, const edm::Handle< reco::CaloJetCollection > &recojets, const edm::Handle< reco::CaloJetCollection > &recocorjets, const edm::Handle< reco::GenJetCollection > &gjets, const edm::Handle< reco::CaloMETCollection > &rmets, const edm::Handle< reco::GenMETCollection > &gmets, const edm::Handle< reco::METCollection > &ht, const edm::Handle< reco::CaloJetCollection > &myHLTL2Tau, const edm::Handle< reco::HLTTauCollection > &myHLTTau, const edm::Handle< reco::PFTauCollection > &myHLTPFTau, const edm::Handle< reco::PFTauCollection > &myHLTPFTauTightCone, const edm::Handle< reco::PFJetCollection > &myHLTPFJets, const edm::Handle< reco::PFTauCollection > &myRecoPFTau, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByTanCOnePercent, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByTanCHalfPercent, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByTanCQuarterPercent, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByTanCTenthPercent, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByIsolation, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrAgainstElec, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrAgainstMuon, const edm::Handle< reco::PFJetCollection > &recoPFJets, const edm::Handle< CaloTowerCollection > &caloTowers, const edm::Handle< CaloTowerCollection > &caloTowersCleanerUpperR45, const edm::Handle< CaloTowerCollection > &caloTowersCleanerLowerR45, const edm::Handle< CaloTowerCollection > &caloTowersCleanerNoR45, const CaloTowerTopology *cttopo, const edm::Handle< reco::PFMETCollection > &pfmets, double thresholdForSavingTowers, double minPtCH, double minPtGamma, TTree *tree)
Definition: HLTJets.cc:400
float mgenmet
Definition: HLTJets.h:128
float * jpfrecoe
Definition: HLTJets.h:162
float htcalphi
Definition: HLTJets.h:127
float * recoPFTauSignalTrPt
Definition: HLTJets.h:171
int nhjetcal
Definition: HLTJets.h:133
float * jhcorcalpt
Definition: HLTJets.h:116
float * jhcorcaleta
Definition: HLTJets.h:116
int nrjetcal
Definition: HLTJets.h:134
float * jhcorL1L2L3caleta
Definition: HLTJets.h:117
float * jhcale
Definition: HLTJets.h:115
int * hltpftauSignalTrToPFTauMatch
Definition: HLTJets.h:179
float * jrcaln90hits
Definition: HLTJets.h:120
float * ohpfTauTightConeLeadPionPt
Definition: HLTJets.h:149
float * jrcale
Definition: HLTJets.h:120
TString gmetpfx
Definition: HLTJets.h:200
float * ohpfTauTightConeJetPt
Definition: HLTJets.h:149
float * jpfrecoeta
Definition: HLTJets.h:162
float * pfJetE
Definition: HLTJets.h:155
float * toweta
Definition: HLTJets.h:124
float * l2tauPt
Definition: HLTJets.h:137
float * jrcaleta
Definition: HLTJets.h:120
float * HLTPFTauIsoTrDz
Definition: HLTJets.h:185
float * recoPFTauIsoTrPt
Definition: HLTJets.h:176
float * tauPt
Definition: HLTJets.h:140
float * recopfTauPhi
Definition: HLTJets.h:158
int iEvent
Definition: GenABIO.cc:230
TString rmetpfx
Definition: HLTJets.h:200
float * ohpfTauTightConeEta
Definition: HLTJets.h:149
float * recopfTauJetPt
Definition: HLTJets.h:158
float * ohpfTauGammaIso
Definition: HLTJets.h:145
float pfsumet
Definition: HLTJets.h:130
float * pfJetPt
Definition: HLTJets.h:155
float * jhcaln90hits
Definition: HLTJets.h:115
float * towet
Definition: HLTJets.h:124
float * jrcorcaln90
Definition: HLTJets.h:121
float * ohpfTauTrkIso
Definition: HLTJets.h:145
float * jhcaln90
Definition: HLTJets.h:115
float * jpfreconeutralHadronFraction
Definition: HLTJets.h:162
float * recopfTauLeadPionPt
Definition: HLTJets.h:158
float * recopfTauPt
Definition: HLTJets.h:158
reco::helper::JetIDHelper * jetID
Definition: HLTJets.h:188
float * towphi
Definition: HLTJets.h:124
float * jhcorcalemf
Definition: HLTJets.h:116
float * recoPFTauIsoTrDz
Definition: HLTJets.h:175
float mcalphi
Definition: HLTJets.h:126
int j
Definition: DBlmapReader.cc:9
static float etaBarrel()
Definition: HLTJets.h:197
float * jgenphi
Definition: HLTJets.h:123
int * towR45lower
Definition: HLTJets.h:125
int * signalTrToPFTauMatch
Definition: HLTJets.h:169
float * ohpfTauTightConeGammaIso
Definition: HLTJets.h:150
float * recopfTauDiscrAgainstMuon
Definition: HLTJets.h:160
void setup(const edm::ParameterSet &pSet, TTree *tree, edm::ConsumesCollector &&iC)
Definition: HLTJets.cc:28
TString gjetpfx
Definition: HLTJets.h:200
std::vector< std::string > MyStrings
EgammaCoreTools.
Definition: HLTAlCa.h:39
float * recopfTauDiscrByTancOnePercent
Definition: HLTJets.h:160
float * tauEta
Definition: HLTJets.h:140
HLTJets()
Definition: HLTJets.cc:17
float * towoe
Definition: HLTJets.h:124
double jrho
Definition: HLTJets.h:118
float * pfJetneutralMultiplicity
Definition: HLTJets.h:155
float mcalsum
Definition: HLTJets.h:126
float * pfJetneutralHadronEnergyFraction
Definition: HLTJets.h:155
float pfmet
Definition: HLTJets.h:130
float * ohpfTauLeadPionPt
Definition: HLTJets.h:144
int njetgen
Definition: HLTJets.h:132
float * jhcorcale
Definition: HLTJets.h:116
float * l25tauPt
Definition: HLTJets.h:137
float * HLTPFTauSignalTrPt
Definition: HLTJets.h:181
float * jhcaleta
Definition: HLTJets.h:115
float * jgeneta
Definition: HLTJets.h:123
bool operator()(const T &i, const T &j)
Definition: HLTJets.h:57
bool operator()(const T &i, const T &j)
Definition: HLTJets.h:64
float * jpfreconeutralEMFraction
Definition: HLTJets.h:162
float * jhcorL1L2L3caln90hits
Definition: HLTJets.h:117
float * l2tauemiso
Definition: HLTJets.h:137
float * jrcorcalphi
Definition: HLTJets.h:121
float * jrcalpt
Definition: HLTJets.h:120
int * towR45none
Definition: HLTJets.h:125
float * pfJetEta
Definition: HLTJets.h:155
int ntowcal
Definition: HLTJets.h:132
int * jpfreconeutralMultiplicity
Definition: HLTJets.h:163
int * recopfTauTrkIso
Definition: HLTJets.h:159
int * ohpfTauTightConeProngs
Definition: HLTJets.h:148
int nohPFTauTightCone
Definition: HLTJets.h:147
float * recoPFTauSignalTrDz
Definition: HLTJets.h:170
float * jrcalphi
Definition: HLTJets.h:120
int nrpj
Definition: HLTJets.h:164
int noRecoPFTausIso
Definition: HLTJets.h:173
float * jhcorL1L2L3calemf
Definition: HLTJets.h:117
float * jhcorL1L2L3caln90
Definition: HLTJets.h:117
float _GenJetMin
Definition: HLTJets.h:193
float * jpfrecophi
Definition: HLTJets.h:162
int * l3tautckiso
Definition: HLTJets.h:138
int nohPFJet
Definition: HLTJets.h:154
float * jpfrecochargedEMFraction
Definition: HLTJets.h:162
float * towen
Definition: HLTJets.h:124
float * jhcorcalphi
Definition: HLTJets.h:116
float * jhcorcaln90
Definition: HLTJets.h:116
float mcalmet
Definition: HLTJets.h:126
float * pfJetneutralEMFraction
Definition: HLTJets.h:155
float * jpfrecopt
Definition: HLTJets.h:162
float * jhcalphi
Definition: HLTJets.h:115
int nRecoPFTau
Definition: HLTJets.h:157
float * ohpfTauTightConePhi
Definition: HLTJets.h:149
int * ohpfTauProngs
Definition: HLTJets.h:143
float * recopfTauDiscrByTancTenthPercent
Definition: HLTJets.h:160
float * jhcorL1L2L3calphi
Definition: HLTJets.h:117
int * isoTrToPFTauMatch
Definition: HLTJets.h:174
int nohtau
Definition: HLTJets.h:139
float * pfJetchargedMultiplicity
Definition: HLTJets.h:155
float pfMHT
Definition: HLTJets.h:153
int nohPFTau
Definition: HLTJets.h:142
float * pfJetchargedEMFraction
Definition: HLTJets.h:155
float * jrcorcale
Definition: HLTJets.h:121
long double T
float * jrcorcalpt
Definition: HLTJets.h:121
float * jgene
Definition: HLTJets.h:123
float * towhd
Definition: HLTJets.h:124
float * jhcorcaln90hits
Definition: HLTJets.h:116
float * jhcorL1L2L3calpt
Definition: HLTJets.h:117
int evtCounter
Definition: HLTJets.h:195
int nhcorjetcal
Definition: HLTJets.h:133
int nohl2tau
Definition: HLTJets.h:139
int nrcorjetcal
Definition: HLTJets.h:134
float * jrcalemf
Definition: HLTJets.h:120
float * ohpfTauLeadTrackVtxZ
Definition: HLTJets.h:144
float * jgenpt
Definition: HLTJets.h:123
float htcalsum
Definition: HLTJets.h:127
float pfHT
Definition: HLTJets.h:152
float * ohpfTauPt
Definition: HLTJets.h:144
int nhcorL1L2L3jetcal
Definition: HLTJets.h:133