CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AlCaIsoTracksProducer.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //#define DebugLog
3 
4 // system include files
5 #include <memory>
6 #include <string>
7 #include <cmath>
8 #include <iostream>
9 #include <sstream>
10 #include <fstream>
11 #include <vector>
12 #include <boost/regex.hpp>
13 
14 // user include files
25 
52 
54 
59 
73 
74 
75 //
76 // class declaration
77 //
78 
80 public:
83 
84  virtual void produce(edm::Event &, const edm::EventSetup&);
85 
86 private:
87 
88  virtual void beginJob() ;
89  virtual void endJob() ;
90  virtual void beginRun(edm::Run const&, edm::EventSetup const&);
91  virtual void endRun(edm::Run const&, edm::EventSetup const&);
93  void setPtEtaPhi(std::vector< edm::Ref<l1extra::L1JetParticleCollection> >& objref, double &ptL1, double &etaL1, double &phiL1);
94 
95  // ----------member data ---------------------------
97  std::vector<std::string> trigNames, HLTNames;
98  std::vector<int> trigKount, trigPass;
104  int nRun, nAll, nGood;
111  double ptL1, etaL1, phiL1;
112 
122 };
123 
124 
126  nRun(0), nAll(0), nGood(0), ptL1(0), etaL1(0), phiL1(0) {
127  //Get the run parameters
128  const double isolationRadius(28.9);
129  trigNames = iConfig.getParameter<std::vector<std::string> >("Triggers");
130  theTrackQuality = iConfig.getParameter<std::string>("TrackQuality");
131  processName = iConfig.getParameter<std::string>("ProcessName");
132  l1Filter = iConfig.getParameter<std::string>("L1Filter");
133  l2Filter = iConfig.getParameter<std::string>("L2Filter");
134  l3Filter = iConfig.getParameter<std::string>("L3Filter");
135  selectionParameters.minPt = iConfig.getParameter<double>("MinTrackPt");
137  selectionParameters.maxDxyPV = iConfig.getParameter<double>("MaxDxyPV");
138  selectionParameters.maxDzPV = iConfig.getParameter<double>("MaxDzPV");
139  selectionParameters.maxChi2 = iConfig.getParameter<double>("MaxChi2");
140  selectionParameters.maxDpOverP = iConfig.getParameter<double>("MaxDpOverP");
141  selectionParameters.minOuterHit = iConfig.getParameter<int>("MinOuterHit");
142  selectionParameters.minLayerCrossed = iConfig.getParameter<int>("MinLayerCrossed");
143  selectionParameters.maxInMiss = iConfig.getParameter<int>("MaxInMiss");
144  selectionParameters.maxOutMiss = iConfig.getParameter<int>("MaxOutMiss");
145  a_coneR = iConfig.getParameter<double>("ConeRadius");
146  a_charIsoR = a_coneR + isolationRadius;
147  a_mipR = iConfig.getParameter<double>("ConeRadiusMIP");
148  pTrackMin_ = iConfig.getParameter<double>("MinimumTrackP");
149  eEcalMax_ = iConfig.getParameter<double>("MaximumEcalEnergy");
150  eIsolation_ = iConfig.getParameter<double>("IsolationEnergy");
151  labelGenTrack_ = iConfig.getParameter<edm::InputTag>("TrackLabel");
152  labelRecVtx_ = iConfig.getParameter<edm::InputTag>("VertexLabel");
153  labelBS_ = iConfig.getParameter<edm::InputTag>("BeamSpotLabel");
154  labelEB_ = iConfig.getParameter<edm::InputTag>("EBRecHitLabel");
155  labelEE_ = iConfig.getParameter<edm::InputTag>("EERecHitLabel");
156  labelHBHE_ = iConfig.getParameter<edm::InputTag>("HBHERecHitLabel");
157  labelHltGT_ = iConfig.getParameter<edm::InputTag>("L1GTSeedLabel");
158  labelTriggerEvent_ = iConfig.getParameter<edm::InputTag>("TriggerEventLabel");
159  labelTriggerResults_ = iConfig.getParameter<edm::InputTag>("TriggerResultLabel");
160  labelIsoTk_ = iConfig.getParameter<std::string>("IsoTrackLabel");
161 
162  // define tokens for access
163  tok_hltGT_ = consumes<trigger::TriggerFilterObjectWithRefs>(labelHltGT_);
164  tok_trigEvt_ = consumes<trigger::TriggerEvent>(labelTriggerEvent_);
165  tok_trigRes_ = consumes<edm::TriggerResults>(labelTriggerResults_);
166  tok_genTrack_ = consumes<reco::TrackCollection>(labelGenTrack_);
167  tok_recVtx_ = consumes<reco::VertexCollection>(labelRecVtx_);
168  tok_bs_ = consumes<reco::BeamSpot>(labelBS_);
169  tok_EB_ = consumes<EcalRecHitCollection>(labelEB_);
170  tok_EE_ = consumes<EcalRecHitCollection>(labelEE_);
171  tok_hbhe_ = consumes<HBHERecHitCollection>(labelHBHE_);
172 
173  edm::LogInfo("HcalIsoTrack") <<"Parameters read from config file \n"
174  <<"\t minPt " << selectionParameters.minPt
175  <<"\t theTrackQuality " << theTrackQuality
176  <<"\t minQuality " << selectionParameters.minQuality
177  <<"\t maxDxyPV " << selectionParameters.maxDxyPV
178  <<"\t maxDzPV " << selectionParameters.maxDzPV
179  <<"\t maxChi2 " << selectionParameters.maxChi2
180  <<"\t maxDpOverP " << selectionParameters.maxDpOverP
181  <<"\t minOuterHit " << selectionParameters.minOuterHit
182  <<"\t minLayerCrossed " << selectionParameters.minLayerCrossed
183  <<"\t maxInMiss " << selectionParameters.maxInMiss
184  <<"\t maxOutMiss " << selectionParameters.maxOutMiss
185  <<"\t a_coneR " << a_coneR
186  <<"\t a_charIsoR " << a_charIsoR
187  <<"\t a_mipR " << a_mipR
188  <<"\t pTrackMin " << pTrackMin_
189  <<"\t eEcalMax " << eEcalMax_
190  <<"\t eIsolation " << eIsolation_;
191  edm::LogInfo("HcalIsoTrack") << "Process " << processName << " L1Filter:"
192  << l1Filter << " L2Filter:" << l2Filter
193  << " L3Filter:" << l3Filter;
194  for (unsigned int k=0; k<trigNames.size(); ++k)
195  edm::LogInfo("HcalIsoTrack") << "Trigger[" << k << "] " << trigNames[k];
196 
197  std::vector<int> dummy(trigNames.size(),0);
198  trigKount = trigPass = dummy;
199 
200  //create also IsolatedPixelTrackCandidateCollection which contains isolation info and reference to primary track
201  produces<reco::HcalIsolatedTrackCandidateCollection>(labelIsoTk_);
202  produces<reco::VertexCollection>(labelRecVtx_.label());
203  produces<EcalRecHitCollection>(labelEB_.instance());
204  produces<EcalRecHitCollection>(labelEE_.instance());
205  produces<HBHERecHitCollection>(labelHBHE_.label());
206 
207  edm::LogInfo("HcalIsoTrack") << " Expected to produce the collections:\n"
208  << "reco::HcalIsolatedTrackCandidateCollection "
209  << " with label HcalIsolatedTrackCollection\n"
210  << "reco::VertexCollection with label " << labelRecVtx_.label() << "\n"
211  << "EcalRecHitCollection with label EcalRecHitsEB\n"
212  << "EcalRecHitCollection with label EcalRecHitsEE\n"
213  << "HBHERecHitCollection with label " << labelHBHE_.label();
214 }
215 
216 
218 
219 
221 
222  nAll++;
223 #ifdef DebugLog
224  edm::LogInfo("HcalIsoTrack") << "Run " << iEvent.id().run() << " Event "
225  << iEvent.id().event() << " Luminosity "
226  << iEvent.luminosityBlock() << " Bunch "
227  << iEvent.bunchCrossing();
228 #endif
229  //Step1: Get all the relevant containers
230  trigger::TriggerEvent triggerEvent;
231  edm::Handle<trigger::TriggerEvent> triggerEventHandle;
232  iEvent.getByToken(tok_trigEvt_, triggerEventHandle);
233  if (!triggerEventHandle.isValid()) {
234  edm::LogWarning("HcalIsoTrack") << "Cannot access the collection " << labelTriggerEvent_;
235  return;
236  }
238  iEvent.getByToken(tok_trigRes_, triggerResults);
239  if (!triggerResults.isValid()) {
240  edm::LogWarning("HcalIsoTrack") << "Cannot access the collection " << labelTriggerResults_;
241  return;
242  }
243 
245  iEvent.getByToken(tok_genTrack_, trkCollection);
246  if (!trkCollection.isValid()) {
247  edm::LogWarning("HcalIsoTrack") << "Cannot access the collection " << labelGenTrack_;
248  return;
249  }
250  reco::TrackCollection::const_iterator trkItr;
252  iEvent.getByToken(tok_recVtx_, recVtxs);
253  if (!trkCollection.isValid()) {
254  edm::LogWarning("HcalIsoTrack") << "Cannot access the collection " << labelGenTrack_;
255  return;
256  }
257 
258  edm::Handle<reco::BeamSpot> beamSpotH;
259  iEvent.getByToken(tok_bs_, beamSpotH);
260  math::XYZPoint leadPV(0,0,0);
261  if (recVtxs->size()>0 && !((*recVtxs)[0].isFake())) {
262  leadPV = math::XYZPoint((*recVtxs)[0].x(),(*recVtxs)[0].y(),
263  (*recVtxs)[0].z());
264  } else if (beamSpotH.isValid()) {
265  leadPV = beamSpotH->position();
266  }
267 #ifdef DebugLog
268  edm::LogInfo("HcalIsoTrack") << "Primary Vertex " << leadPV;
269 #endif
270 
271  edm::Handle<EcalRecHitCollection> barrelRecHitsHandle;
272  iEvent.getByToken(tok_EB_, barrelRecHitsHandle);
273  if (!barrelRecHitsHandle.isValid()) {
274  edm::LogWarning("HcalIsoTrack") << "Cannot access the collection " << labelEB_;
275  return;
276  }
277  edm::Handle<EcalRecHitCollection> endcapRecHitsHandle;
278  iEvent.getByToken(tok_EE_, endcapRecHitsHandle);
279  if (!endcapRecHitsHandle.isValid()) {
280  edm::LogWarning("HcalIsoTrack") << "Cannot access the collection " << labelEE_;
281  return;
282  }
284  iEvent.getByToken(tok_hbhe_, hbhe);
285  if (!hbhe.isValid()) {
286  edm::LogWarning("HcalIsoTrack") << "Cannot access the collection " << labelHBHE_;
287  return;
288  }
289 
290  //Get L1 trigger object
291  ptL1 = etaL1 = phiL1 = 0;
293  iEvent.getByToken(tok_hltGT_, l1trigobj);
294 
295  std::vector< edm::Ref<l1extra::L1JetParticleCollection> > l1tauobjref;
296  l1trigobj->getObjects(trigger::TriggerL1TauJet, l1tauobjref);
297  setPtEtaPhi(l1tauobjref,ptL1,etaL1,phiL1);
298 
299  std::vector< edm::Ref<l1extra::L1JetParticleCollection> > l1jetobjref;
300  l1trigobj->getObjects(trigger::TriggerL1CenJet, l1jetobjref);
301  setPtEtaPhi(l1jetobjref,ptL1,etaL1,phiL1);
302 
303  std::vector< edm::Ref<l1extra::L1JetParticleCollection> > l1forjetobjref;
304  l1trigobj->getObjects(trigger::TriggerL1ForJet, l1forjetobjref);
305  setPtEtaPhi(l1forjetobjref,ptL1,etaL1,phiL1);
306 
307  //For valid HLT record
308  if (!triggerEventHandle.isValid()) {
309  edm::LogWarning("HcalIsoTrack") << "Error! Can't get the product "
311  } else {
312  trigger::TriggerEvent triggerEvent = *(triggerEventHandle.product());
313  if (triggerResults.isValid()) {
314  const edm::TriggerNames & triggerNames = iEvent.triggerNames(*triggerResults);
315  const std::vector<std::string> & triggerNames_ = triggerNames.triggerNames();
316  reco::HcalIsolatedTrackCandidateCollection* isotk = select(triggerResults,triggerNames_,trkCollection,leadPV, barrelRecHitsHandle, endcapRecHitsHandle, hbhe);
317 #ifdef DebugLog
318  edm::LogInfo("HcalIsoTrack") << "AlCaIsoTracksProducer::select returns "
319  << isotk->size() << " isolated tracks";
320 #endif
321  std::auto_ptr<reco::HcalIsolatedTrackCandidateCollection> outputHcalIsoTrackColl(isotk);
322  std::auto_ptr<reco::VertexCollection> outputVColl(new reco::VertexCollection);
323  std::auto_ptr<EBRecHitCollection> outputEBColl(new EBRecHitCollection);
324  std::auto_ptr<EERecHitCollection> outputEEColl(new EERecHitCollection);
325  std::auto_ptr<HBHERecHitCollection> outputHBHEColl(new HBHERecHitCollection);
326 
327  if (isotk->size() > 0) {
328  for (reco::VertexCollection::const_iterator vtx=recVtxs->begin(); vtx!=recVtxs->end(); ++vtx)
329  outputVColl->push_back(*vtx);
330 
331  for (edm::SortedCollection<EcalRecHit>::const_iterator ehit=barrelRecHitsHandle->begin(); ehit!=barrelRecHitsHandle->end(); ++ehit)
332  outputEBColl->push_back(*ehit);
333 
334  for (edm::SortedCollection<EcalRecHit>::const_iterator ehit=endcapRecHitsHandle->begin(); ehit!=endcapRecHitsHandle->end(); ++ehit)
335  outputEEColl->push_back(*ehit);
336 
337  for (std::vector<HBHERecHit>::const_iterator hhit=hbhe->begin(); hhit!=hbhe->end(); ++hhit)
338  outputHBHEColl->push_back(*hhit);
339  }
340 
341  iEvent.put(outputHcalIsoTrackColl, labelIsoTk_);
342  iEvent.put(outputVColl, labelRecVtx_.label());
343  iEvent.put(outputEBColl, labelEB_.instance());
344  iEvent.put(outputEEColl, labelEE_.instance());
345  iEvent.put(outputHBHEColl, labelHBHE_.label());
346  }
347  }
348 }
349 
351 
353  edm::LogInfo("HcalIsoTrack") << "Finds " << nGood << " good tracks in "
354  << nAll << " events from " << nRun << " runs";
355  for (unsigned int k=0; k<trigNames.size(); ++k)
356  edm::LogInfo("HcalIsoTrack") << "Trigger[" << k << "]: " << trigNames[k]
357  << " Events " << trigKount[k] << " Passed "
358  << trigPass[k];
359 }
360 
361 void AlCaIsoTracksProducer::beginRun(edm::Run const& iRun, edm::EventSetup const& iSetup) {
362  bool changed(false);
363  edm::LogInfo("HcalIsoTrack") << "Run[" << nRun << "] " << iRun.run()
364  << " hltconfig.init " << hltConfig_.init(iRun,iSetup,processName,changed);
365 
367  iSetup.get<IdealMagneticFieldRecord>().get(bFieldH);
368  bField = bFieldH.product();
370  iSetup.get<CaloGeometryRecord>().get(pG);
371  geo = pG.product();
372 }
373 
375  nRun++;
376  edm::LogInfo("HcalIsoTrack") << "endRun[" << nRun << "] " << iRun.run();
377 }
378 
381  const std::vector<std::string> & triggerNames_,
382  edm::Handle<reco::TrackCollection>& trkCollection,
383  math::XYZPoint& leadPV,edm::Handle<EcalRecHitCollection>& barrelRecHitsHandle,
384  edm::Handle<EcalRecHitCollection>& endcapRecHitsHandle,
386 
388  bool ok(false);
389 
390  // Find a good HLT trigger
391  for (unsigned int iHLT=0; iHLT<triggerResults->size(); iHLT++) {
392  int hlt = triggerResults->accept(iHLT);
393  for (unsigned int i=0; i<trigNames.size(); ++i) {
394  if (triggerNames_[iHLT].find(trigNames[i].c_str())!=std::string::npos) {
395  trigKount[i]++;
396  if (hlt > 0) {
397  ok = true;
398  trigPass[i]++;
399  }
400  edm::LogInfo("HcalIsoTrack") << "The trigger we are looking for "
401  << triggerNames_[iHLT] << " Flag "
402  << hlt << ":" << ok;
403  }
404  }
405  }
406 
407  //Propagate tracks to calorimeter surface)
408  std::vector<spr::propagatedTrackDirection> trkCaloDirections;
409  spr::propagateCALO(trkCollection, geo, bField, theTrackQuality,
410  trkCaloDirections, false);
411 
412  std::vector<spr::propagatedTrackDirection>::const_iterator trkDetItr;
413  unsigned int nTracks(0), nselTracks(0);
414  for (trkDetItr = trkCaloDirections.begin(),nTracks=0;
415  trkDetItr != trkCaloDirections.end(); trkDetItr++,nTracks++) {
416  const reco::Track* pTrack = &(*(trkDetItr->trkItr));
417  math::XYZTLorentzVector v4(pTrack->px(), pTrack->py(),
418  pTrack->pz(), pTrack->p());
419 #ifdef DebugLog
420  edm::LogInfo("HcalIsoTrack") << "This track : " << nTracks
421  << " (pt|eta|phi|p) :" << pTrack->pt()
422  << "|" << pTrack->eta() << "|"
423  << pTrack->phi() << "|" << pTrack->p();
424 #endif
425  //Selection of good track
426  bool qltyFlag = spr::goodTrack(pTrack,leadPV,selectionParameters,false);
427 #ifdef DebugLog
428  edm::LogInfo("HcalIsoTrack") << "qltyFlag|okECAL|okHCAL : " << qltyFlag
429  << "|" << trkDetItr->okECAL << "|"
430  << trkDetItr->okHCAL;
431 #endif
432  if (qltyFlag && trkDetItr->okECAL && trkDetItr->okHCAL) {
433  double t_p = pTrack->p();
434  nselTracks++;
435  int nRH_eMipDR(0), nNearTRKs(0);
436  double eMipDR = spr::eCone_ecal(geo, barrelRecHitsHandle,
437  endcapRecHitsHandle,
438  trkDetItr->pointHCAL,
439  trkDetItr->pointECAL, a_mipR,
440  trkDetItr->directionECAL,
441  nRH_eMipDR);
442  double hmaxNearP = spr::chargeIsolationCone(nTracks,
443  trkCaloDirections,
444  a_charIsoR,
445  nNearTRKs, false);
446 #ifdef DebugLog
447  edm::LogInfo("HcalIsoTrack") << "This track : " << nTracks
448  << " (pt|eta|phi|p) :" << pTrack->pt()
449  << "|" << pTrack->eta() << "|"
450  << pTrack->phi() << "|" << t_p
451  << " e_MIP " << eMipDR
452  << " Chg Isolation " << hmaxNearP;
453 #endif
454  if (t_p>pTrackMin_ && eMipDR<eEcalMax_ && hmaxNearP<eIsolation_) {
455  reco::HcalIsolatedTrackCandidate newCandidate(v4);
456  newCandidate.SetMaxP(hmaxNearP);
457  newCandidate.SetEnergyEcal(eMipDR);
458  newCandidate.setL1(ptL1,etaL1,phiL1);
459  newCandidate.SetEtaPhiEcal((trkDetItr->pointECAL).eta(),
460  (trkDetItr->pointECAL).phi());
461  HcalDetId detId = HcalDetId(trkDetItr->detIdHCAL);
462  newCandidate.SetEtaPhiHcal((trkDetItr->pointHCAL).eta(),
463  (trkDetItr->pointHCAL).phi(),
464  detId.ieta(), detId.iphi());
465  int indx(0);
466  reco::TrackCollection::const_iterator trkItr1;
467  for (trkItr1=trkCollection->begin(); trkItr1 != trkCollection->end(); ++trkItr1,++indx) {
468  const reco::Track* pTrack1 = &(*trkItr1);
469  if (pTrack1 == pTrack) {
470  reco::TrackRef tRef = reco::TrackRef(trkCollection,indx);
471  newCandidate.setTrack(tRef);
472  break;
473  }
474  }
475  trackCollection->push_back(newCandidate);
476  }
477  }
478  }
479  return trackCollection;
480 }
481 
482 void AlCaIsoTracksProducer::setPtEtaPhi(std::vector< edm::Ref<l1extra::L1JetParticleCollection> >& objref, double &ptL1, double &etaL1, double &phiL1) {
483 
484  for (unsigned int p=0; p<objref.size(); p++) {
485  if (objref[p]->pt()>ptL1) {
486  ptL1 = objref[p]->pt();
487  phiL1 = objref[p]->phi();
488  etaL1 = objref[p]->eta();
489  }
490  }
491 }
492 
494 
RunNumber_t run() const
Definition: EventID.h:39
double p() const
momentum vector magnitude
Definition: TrackBase.h:578
virtual void endRun(edm::Run const &, edm::EventSetup const &)
T getParameter(std::string const &) const
EventNumber_t event() const
Definition: EventID.h:41
int i
Definition: DBlmapReader.cc:9
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
Definition: Event.cc:213
std::vector< spr::propagatedTrackID > propagateCALO(edm::Handle< reco::TrackCollection > &trkCollection, const CaloGeometry *geo, const MagneticField *bField, std::string &theTrackQuality, bool debug=false)
AlCaIsoTracksProducer(const edm::ParameterSet &)
RunNumber_t run() const
Definition: RunBase.h:42
The single EDProduct to be saved for each event (AOD case)
Definition: TriggerEvent.h:25
virtual void produce(edm::Event &, const edm::EventSetup &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:457
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
edm::EDGetTokenT< EcalRecHitCollection > tok_EE_
const CaloGeometry * geo
std::vector< T >::const_iterator const_iterator
int bunchCrossing() const
Definition: EventBase.h:66
edm::EDGetTokenT< reco::TrackCollection > tok_genTrack_
spr::trackSelectionParameters selectionParameters
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:63
double phi() const
azimuthal angle of momentum vector
Definition: TrackBase.h:608
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
double chargeIsolationCone(unsigned int trkIndex, std::vector< spr::propagatedTrackDirection > &trkDirs, double dR, int &nNearTRKs, bool debug=false)
std::vector< std::string > HLTNames
double px() const
x coordinate of momentum vector
Definition: TrackBase.h:590
edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > tok_hltGT_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
Strings const & triggerNames() const
Definition: TriggerNames.cc:24
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
edm::EDGetTokenT< EcalRecHitCollection > tok_EB_
std::vector< std::string > trigNames
edm::EDGetTokenT< reco::BeamSpot > tok_bs_
int iEvent
Definition: GenABIO.cc:230
edm::EDGetTokenT< reco::VertexCollection > tok_recVtx_
double eta() const
pseudorapidity of momentum vector
Definition: TrackBase.h:614
std::vector< HcalIsolatedTrackCandidate > HcalIsolatedTrackCandidateCollection
collectin of HcalIsolatedTrackCandidate objects
bool goodTrack(const reco::Track *pTrack, math::XYZPoint leadPV, trackSelectionParameters parameters, bool debug=false)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:115
void SetEtaPhiEcal(double eta, double phi)
eta, phi at ECAL surface
double pt() const
track transverse momentum
Definition: TrackBase.h:584
void setPtEtaPhi(std::vector< edm::Ref< l1extra::L1JetParticleCollection > > &objref, double &ptL1, double &etaL1, double &phiL1)
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
int ieta() const
get the cell ieta
Definition: HcalDetId.h:51
void SetEtaPhiHcal(double eta, double phi, int ieta, int iphi)
eta, phi at HCAL surface
double eCone_ecal(const CaloGeometry *geo, edm::Handle< T > &barrelhits, edm::Handle< T > &endcaphits, const GlobalPoint &hpoint1, const GlobalPoint &point1, double dR, const GlobalVector &trackMom, int &nRecHits, double ebThr=-100, double eeThr=-100, double tMin=-500, double tMax=500, bool debug=false)
const MagneticField * bField
static std::string const triggerResults
Definition: EdmProvDump.cc:40
std::vector< int > trigPass
bool isValid() const
Definition: HandleBase.h:75
edm::EDGetTokenT< trigger::TriggerEvent > tok_trigEvt_
double pz() const
z coordinate of momentum vector
Definition: TrackBase.h:602
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
int iphi() const
get the cell iphi
Definition: HcalDetId.h:53
HLTConfigProvider hltConfig_
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:123
T const * product() const
Definition: Handle.h:81
void setL1(double pt, double eta, double phi)
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
const T & get() const
Definition: EventSetup.h:55
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:19
T const * product() const
Definition: ESHandle.h:86
std::string const & label() const
Definition: InputTag.h:43
reco::HcalIsolatedTrackCandidateCollection * select(edm::Handle< edm::TriggerResults > &triggerResults, const std::vector< std::string > &triggerNames_, edm::Handle< reco::TrackCollection > &trkCollection, math::XYZPoint &leadPV, edm::Handle< EcalRecHitCollection > &barrelRecHitsHandle, edm::Handle< EcalRecHitCollection > &endcapRecHitsHandle, edm::Handle< HBHERecHitCollection > &hbhe)
edm::EventID id() const
Definition: EventBase.h:60
std::vector< int > trigKount
reco::TrackBase::TrackQuality minQuality
void setTrack(const reco::TrackRef &tr)
edm::EDGetTokenT< edm::TriggerResults > tok_trigRes_
std::string const & instance() const
Definition: InputTag.h:44
double py() const
y coordinate of momentum vector
Definition: TrackBase.h:596
Definition: Run.h:41