CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
ValidIsoTrkCalib Class Reference
Inheritance diagram for ValidIsoTrkCalib:
edm::one::EDAnalyzer< edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 ValidIsoTrkCalib (const edm::ParameterSet &)
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::SharedResources >
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 

Private Attributes

bool allowMissingInputs_
 
double associationConeSize_
 
string AxB_
 
double calibrationConeSize_
 
float CentHitFactor
 
float delR
 
int dietatr
 
int diphitr
 
float e3x3After
 
float e3x3Before
 
float e5x5After
 
float e5x5Before
 
float eAfterDepth1
 
float eAfterDepth2
 
float eBeforeDepth1
 
float eBeforeDepth2
 
float eCentHitAfter
 
float eCentHitBefore
 
float eClustAfter
 
float eClustBefore
 
float eECAL
 
Float_t emEnergy
 
double energyECALmip
 
double energyMaxIso
 
double energyMinIso
 
float etaTrack
 
float eTrack
 
int eventNumber
 
edm::Service< TFileServicefs
 
TTree * fTree
 
int gen
 
std::vector< edm::InputTaggenecalLabel_
 
float genEta [500]
 
edm::InputTag genhbheLabel_
 
edm::InputTag genhoLabel_
 
float genPhi [500]
 
float genPt [500]
 
const CaloGeometrygeo
 
float HTime [100]
 
float iDr
 
int iEta
 
int iEtaTr
 
int iPhi
 
int iPhiTr
 
int iso
 
float isoEta [500]
 
float isoPhi [500]
 
float isoPt [500]
 
float iTime
 
double maxPNear
 
int MinNTECHitsEndcap
 
int MinNTrackHitsBarrel
 
int Nhits
 
int NisoTrk
 
TH1F * nTracks
 
int numHits
 
float numValidTrkHits
 
float numValidTrkStrips
 
float numVH
 
float numVS
 
string outputFileName_
 
TrackAssociatorParameters parameters_
 
float phiTrack
 
int pix
 
float pixEta [500]
 
float pixPhi [500]
 
float pixPt [500]
 
float ptNear
 
float PtNearBy
 
float ptrack
 
const HcalRespCorrsrespRecalib
 
int runNumber
 
float rvert
 
double taECALCone_
 
double taHCALCone_
 
bool takeGenTracks_
 
Float_t targetE
 
edm::EDGetTokenT< reco::TrackCollectiontok_genTrack_
 
edm::ESGetToken< CaloGeometry, CaloGeometryRecordtok_geom_
 
edm::EDGetTokenT< HBHERecHitCollectiontok_hbhe_
 
edm::EDGetTokenT< HORecHitCollectiontok_ho_
 
edm::ESGetToken< HcalRespCorrs, HcalRespCorrsRcdtok_recalibCorrs_
 
edm::EDGetTokenT< reco::TrackCollectiontok_track1_
 
edm::EDGetTokenT< reco::IsolatedPixelTrackCandidateCollectiontok_track_
 
TrackDetectorAssociator trackAssociator_
 
float trackE
 
float trackEta
 
float trackPhi
 
float trackPt
 
TTree * tTree
 
Float_t xTrkEcal
 
Float_t xTrkHcal
 
Float_t yTrkEcal
 
Float_t yTrkHcal
 
Float_t zTrkEcal
 
Float_t zTrkHcal
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 61 of file ValidIsoTrkCalib.cc.

Constructor & Destructor Documentation

◆ ValidIsoTrkCalib()

ValidIsoTrkCalib::ValidIsoTrkCalib ( const edm::ParameterSet iConfig)
explicit

Definition at line 187 of file ValidIsoTrkCalib.cc.

187  {
188  usesResource(TFileService::kSharedResource);
189 
190  //takeAllRecHits_=iConfig.getUntrackedParameter<bool>("takeAllRecHits");
191  takeGenTracks_ = iConfig.getUntrackedParameter<bool>("takeGenTracks");
192 
193  tok_genTrack_ = consumes<reco::TrackCollection>(iConfig.getParameter<edm::InputTag>("genTracksLabel"));
194  genhbheLabel_ = iConfig.getParameter<edm::InputTag>("genHBHE");
195  //genhoLabel_=iConfig.getParameter<edm::InputTag>("genHO");
196  //genecalLabel_=iConfig.getParameter<std::vector<edm::InputTag> >("genECAL");
197 
198  // m_hcalLabel = iConfig.getUntrackedParameter<std::string> ("hcalRecHitsLabel","hbhereco");
199 
200  tok_hbhe_ = consumes<HBHERecHitCollection>(iConfig.getParameter<edm::InputTag>("hbheInput"));
201  tok_ho_ = consumes<HORecHitCollection>(iConfig.getParameter<edm::InputTag>("hoInput"));
202  //eLabel_=iConfig.getParameter<edm::InputTag>("eInput");
203  tok_track_ =
204  consumes<reco::IsolatedPixelTrackCandidateCollection>(iConfig.getParameter<edm::InputTag>("HcalIsolTrackInput"));
205  tok_track1_ = consumes<reco::TrackCollection>(iConfig.getParameter<edm::InputTag>("trackInput"));
206 
207  tok_recalibCorrs_ = esConsumes(edm::ESInputTag("", "recalibrate"));
208  tok_geom_ = esConsumes();
209 
210  associationConeSize_ = iConfig.getParameter<double>("associationConeSize");
211  allowMissingInputs_ = iConfig.getUntrackedParameter<bool>("allowMissingInputs", true);
212  // outputFileName_=iConfig.getParameter<std::string>("outputFileName");
213  // calibFactorsFileName_=iConfig.getParameter<std::string>("calibFactorsFileName");
214 
215  AxB_ = iConfig.getParameter<std::string>("AxB");
216  calibrationConeSize_ = iConfig.getParameter<double>("calibrationConeSize");
217 
218  MinNTrackHitsBarrel = iConfig.getParameter<int>("MinNTrackHitsBarrel");
219  MinNTECHitsEndcap = iConfig.getParameter<int>("MinNTECHitsEndcap");
220  energyECALmip = iConfig.getParameter<double>("energyECALmip");
221  energyMinIso = iConfig.getParameter<double>("energyMinIso");
222  energyMaxIso = iConfig.getParameter<double>("energyMaxIso");
223  maxPNear = iConfig.getParameter<double>("maxPNear");
224 
225  edm::ParameterSet parameters = iConfig.getParameter<edm::ParameterSet>("TrackAssociatorParameters");
229 
230  // taECALCone_=iConfig.getUntrackedParameter<double>("TrackAssociatorECALCone",0.5);
231  //taHCALCone_=iConfig.getUntrackedParameter<double>("TrackAssociatorHCALCone",0.6);
232 }

References allowMissingInputs_, associationConeSize_, AxB_, calibrationConeSize_, edm::EDConsumerBase::consumesCollector(), energyECALmip, energyMaxIso, energyMinIso, edm::EDConsumerBase::esConsumes(), genhbheLabel_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), TFileService::kSharedResource, TrackAssociatorParameters::loadParameters(), maxPNear, MinNTECHitsEndcap, MinNTrackHitsBarrel, parameters_, AlCaHLTBitMon_QueryRunRegistry::string, takeGenTracks_, tok_genTrack_, tok_geom_, tok_hbhe_, tok_ho_, tok_recalibCorrs_, tok_track1_, tok_track_, trackAssociator_, and TrackDetectorAssociator::useDefaultPropagator().

Member Function Documentation

◆ analyze()

void ValidIsoTrkCalib::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 235 of file ValidIsoTrkCalib.cc.

235  {
236  try {
238 
239  edm::LogInfo("CalibConstants") << " Loaded: OK ";
240 
241  } catch (const cms::Exception& e) {
242  edm::LogWarning("CalibConstants") << " Not Found!! ";
243  }
244 
246  iEvent.getByToken(tok_genTrack_, generalTracks);
247 
249  iEvent.getByToken(tok_track1_, isoProdTracks);
250 
252  //edm::Handle<reco::TrackCollection> isoPixelTracks;
253  iEvent.getByToken(tok_track_, isoPixelTracks);
254 
255  /*
256  edm::Handle<EcalRecHitCollection> ecal;
257  iEvent.getByLabel(eLabel_,ecal);
258  const EcalRecHitCollection Hitecal = *(ecal.product());
259  */
260 
262  iEvent.getByToken(tok_hbhe_, hbhe);
263  const HBHERecHitCollection Hithbhe = *(hbhe.product());
264 
265  geo = &iSetup.getData(tok_geom_);
266 
267  const HcalGeometry* gHcal = static_cast<const HcalGeometry*>(geo->getSubdetectorGeometry(DetId::Hcal, HcalBarrel));
268  //Note: even though it says HcalBarrel, we actually get the whole Hcal detector geometry!
269 
270  // Lumi_n=iEvent.luminosityBlock();
271  parameters_.useEcal = true;
272  parameters_.useHcal = true;
273  parameters_.useCalo = false;
274  parameters_.useMuon = false;
275  //parameters_.dREcal = taECALCone_;
276  //parameters_.dRHcal = taHCALCone_;
277 
278  //cout<<"Hello World. TrackCollectionSize: "<< isoPixelTracks->size()<<endl;
279 
280  if (isoPixelTracks->empty())
281  return;
282 
283  for (reco::TrackCollection::const_iterator trit = isoProdTracks->begin(); trit != isoProdTracks->end(); trit++) {
284  reco::IsolatedPixelTrackCandidateCollection::const_iterator isoMatched = isoPixelTracks->begin();
285  //reco::TrackCollection::const_iterator isoMatched=isoPixelTracks->begin();
286  bool matched = false;
287 
288  //for (reco::IsolatedPixelTrackCandidateCollection::const_iterator trit = isoPixelTracks->begin(); trit!=isoPixelTracks->end(); trit++)
289  for (reco::IsolatedPixelTrackCandidateCollection::const_iterator it = isoPixelTracks->begin();
290  it != isoPixelTracks->end();
291  it++)
292  //for (reco::TrackCollection::const_iterator it = isoPixelTracks->begin(); it!=isoPixelTracks->end(); it++)
293  {
294  if (abs((trit->pt() - it->pt()) / it->pt()) < 0.005 && abs(trit->eta() - it->eta()) < 0.01) {
295  isoMatched = it;
296  matched = true;
297  break;
298  }
299  }
300  // CUT
301 
302  if (!matched)
303  continue;
304  if (isoMatched->maxPtPxl() > maxPNear)
305  continue;
306 
307  ptNear = isoMatched->maxPtPxl();
308  //cout<<"Point 0.1 isoMatch. ptnear: "<<ptNear<<endl;
309 
310  // CUT
311  if (trit->hitPattern().numberOfValidHits() < MinNTrackHitsBarrel)
312  continue;
313  if (fabs(trit->eta()) > 1.47 && trit->hitPattern().numberOfValidStripTECHits() < MinNTECHitsEndcap)
314  continue;
315 
316  //cout<<"Point 0.2.1 after numofvalidhits HB: "<<trit->hitPattern().numberOfValidHits()<<endl;
317  //cout<<"Point 0.2.2 after numofvalidstrips HE: "<<trit->hitPattern().numberOfValidStripTECHits()<<endl;
318 
319  numVH = trit->hitPattern().numberOfValidHits();
320  numVS = trit->hitPattern().numberOfValidStripTECHits();
321 
322  trackE = sqrt(trit->px() * trit->px() + trit->py() * trit->py() + trit->pz() * trit->pz() + 0.14 * 0.14);
323  trackPt = trit->pt();
324  trackEta = trit->eta();
325  trackPhi = trit->phi();
326 
327  emEnergy = isoMatched->energyIn();
328 
329  //cout<<"Point 0.3. Matched :: pt: "<<trit->pt()<<" wholeEnergy: "<<trackE<<" emEnergy: "<<emEnergy<<" eta: "<<etahcal<<" phi: "<<phihcal<<endl;
330  //cout<<"Point 0.4. EM energy in cone: "<<emEnergy<<" EtaHcal: "<<etahcal<<" PhiHcal: "<<phihcal<<endl;
331 
333  iEvent,
334  iSetup,
336  parameters_);
337 
338  //float etaecal=info.trkGlobPosAtEcal.eta();
339  //float phiecal=info.trkGlobPosAtEcal.phi();
340  // float etahcal=info.trkGlobPosAtHcal.eta();
341  // float phihcal=info.trkGlobPosAtHcal.phi();
342 
343  xTrkEcal = info.trkGlobPosAtEcal.x();
344  yTrkEcal = info.trkGlobPosAtEcal.y();
345  zTrkEcal = info.trkGlobPosAtEcal.z();
346 
347  xTrkHcal = info.trkGlobPosAtHcal.x();
348  yTrkHcal = info.trkGlobPosAtHcal.y();
349  zTrkHcal = info.trkGlobPosAtHcal.z();
350 
351  if (xTrkEcal == 0 && yTrkEcal == 0 && zTrkEcal == 0) {
352  cout << "zero point at Ecal" << endl;
353  continue;
354  }
355  if (xTrkHcal == 0 && yTrkHcal == 0 && zTrkHcal == 0) {
356  cout << "zero point at Hcal" << endl;
357  continue;
358  }
359 
360  /*GlobalVector trackMomAtEcal = info.trkMomAtEcal;
361  GlobalVector trackMomAtHcal = info.trkMomAtHcal;
362 
363  PxTrkHcal = trackMomAtHcal.x();
364  PyTrkHcal = trackMomAtHcal.y();
365  PzTrkHcal = trackMomAtHcal.z();
366  */
367 
368  GlobalPoint gPointEcal(xTrkEcal, yTrkEcal, zTrkEcal);
369  GlobalPoint gPointHcal(xTrkHcal, yTrkHcal, zTrkHcal);
370 
371  int iphitrue = -10;
372  int ietatrue = 100;
373  const HcalDetId tempId = gHcal->getClosestCell(gPointHcal);
374  ietatrue = tempId.ieta();
375  iphitrue = tempId.iphi();
376 
377  MaxHit_struct MaxHit;
378 
379  MaxHit.hitenergy = -100.;
380 
381  //container for used recHits
382  std::vector<DetId> usedHits;
383  //
384  usedHits.clear();
385  //cout <<"Point 1. Entrance to HBHECollection"<<endl;
386 
387  //float dddeta = 1000.;
388  //float dddphi = 1000.;
389  //int iphitrue = 1234;
390  //int ietatrue = 1234;
391 
392  GlobalPoint gPhot;
393 
394  for (HBHERecHitCollection::const_iterator hhit = Hithbhe.begin(); hhit != Hithbhe.end(); hhit++) {
395  //check that this hit was not considered before and push it into usedHits
396  bool hitIsUsed = false;
397  for (uint32_t i = 0; i < usedHits.size(); i++) {
398  if (usedHits[i] == hhit->id())
399  hitIsUsed = true;
400  }
401  if (hitIsUsed)
402  continue;
403  usedHits.push_back(hhit->id());
404  //
405 
406  // rof 16.05.2008 start: include the possibility for recalibration
407  float recal = 1;
408  // rof end
409 
410  GlobalPoint pos = geo->getPosition(hhit->detid());
411  //float phihit = pos.phi();
412  //float etahit = pos.eta();
413 
414  int iphihitm = (hhit->id()).iphi();
415  int ietahitm = (hhit->id()).ieta();
416  int depthhit = (hhit->id()).depth();
417  float enehit = hhit->energy() * recal;
418 
419  if (depthhit != 1)
420  continue;
421 
422  /*
423  float dphi = fabs(phihcal - phihit);
424  if(dphi > 4.*atan(1.)) dphi = 8.*atan(1.) - dphi;
425  float deta = fabs(etahcal - etahit);
426  float dr = sqrt(dphi*dphi + deta*deta);
427  */
428 
429  //double distAtHcal = getDistInPlaneTrackDir(gPointHcal, trackMomAtHcal, pos);
430  double distAtHcal = getDistInPlaneSimple(gPointHcal, pos);
431 
432  if (distAtHcal < associationConeSize_) {
433  for (HBHERecHitCollection::const_iterator hhit2 = Hithbhe.begin(); hhit2 != Hithbhe.end(); hhit2++) {
434  int iphihitm2 = (hhit2->id()).iphi();
435  int ietahitm2 = (hhit2->id()).ieta();
436  int depthhit2 = (hhit2->id()).depth();
437  float enehit2 = hhit2->energy() * recal;
438 
439  if (iphihitm == iphihitm2 && ietahitm == ietahitm2 && depthhit != depthhit2)
440  enehit = enehit + enehit2;
441  }
442 
443  //cout<<"IN CONE ieta: "<<ietahitm<<" iphi: "<<iphihitm<<" depthhit: "<<depthhit<<" dr: "<<dr<<" energy: "<<enehit<<endl;
444 
445  //Find a Hit with Maximum Energy
446 
447  if (enehit > MaxHit.hitenergy) {
448  MaxHit.hitenergy = enehit;
449  MaxHit.ietahitm = (hhit->id()).ieta();
450  MaxHit.iphihitm = (hhit->id()).iphi();
451  MaxHit.dr = distAtHcal;
452  //MaxHit.depthhit = (hhit->id()).depth();
453  MaxHit.depthhit = 1;
454 
455  //gPhot = geo->getPosition(hhit->detid());
456  }
457  }
458  } //end of all HBHE hits cycle
459 
460  usedHits.clear();
461 
462  //cout<<"Hottest ieta: "<<MaxHit.ietahitm<<" iphi: "<<MaxHit.iphihitm<<" dr: "<<MaxHit.dr<<endl;
463  //cout<<"Track ieta: "<<ietatrue<<" iphi: "<<iphitrue<<endl;
464 
465  //cout<<"Point 3. MaxHit :::En "<<MaxHit.hitenergy<<" ieta: "<<MaxHit.ietahitm<<" iphi: "<<MaxHit.iphihitm<<endl;
466 
467  Bool_t passCuts = kFALSE;
468  if (trackE > energyMinIso && trackE < energyMaxIso && emEnergy < energyECALmip && MaxHit.hitenergy > 0. &&
469  abs(MaxHit.ietahitm) < 29)
470  passCuts = kTRUE;
471 
472  //cout<<"Pont 0.1.1. trackE:"<<trackE<<" emEn: "<<emEnergy<<endl;
473 
474  numHits = 0;
475 
476  eClustBefore = 0.0;
477  eClustAfter = 0.0;
478  eBeforeDepth1 = 0.0;
479  eAfterDepth1 = 0.0;
480  eBeforeDepth2 = 0.0;
481  eAfterDepth2 = 0.0;
482  CentHitFactor = 0.0;
483  e3x3After = 0.0;
484  e3x3Before = 0.0;
485  e5x5After = 0.0;
486  e5x5Before = 0.0;
487 
488  for (HBHERecHitCollection::const_iterator hhit = Hithbhe.begin(); hhit != Hithbhe.end(); hhit++) {
489  //check that this hit was not considered before and push it into usedHits
490  bool hitIsUsed = false;
491  for (uint32_t i = 0; i < usedHits.size(); i++) {
492  if (usedHits[i] == hhit->id())
493  hitIsUsed = true;
494  }
495  if (hitIsUsed)
496  continue;
497  usedHits.push_back(hhit->id());
498 
499  int DIETA = 100;
500  if (MaxHit.ietahitm * (hhit->id()).ieta() > 0) {
501  DIETA = MaxHit.ietahitm - (hhit->id()).ieta();
502  }
503  if (MaxHit.ietahitm * (hhit->id()).ieta() < 0) {
504  DIETA = MaxHit.ietahitm - (hhit->id()).ieta();
505  DIETA = DIETA > 0 ? DIETA - 1 : DIETA + 1;
506  }
507 
508  int DIPHI = abs(MaxHit.iphihitm - (hhit->id()).iphi());
509  DIPHI = DIPHI > 36 ? 72 - DIPHI : DIPHI;
510 
511  int numbercell = 100; //always collect Wide clastor!
512 
513  //if(AxB_=="5x5" || AxB_=="3x3" || AxB_=="7x7"|| AxB_=="Cone")
514 
515  //if(AxB_=="3x3") numbercell = 1;
516  //if(AxB_=="5x5") numbercell = 2;
517  //if(AxB_=="Cone") numbercell = 1000;
518 
519  if (abs(DIETA) <= numbercell &&
520  (abs(DIPHI) <= numbercell || (abs(MaxHit.ietahitm) >= 20 && abs(DIPHI) <= numbercell + 1))) {
521  const GlobalPoint pos2 = geo->getPosition(hhit->detid());
522 
523  if (passCuts && hhit->energy() > 0) {
524  float factor = 0.0;
525  // factor = CalibFactors[hhit->id()];
526  factor = respRecalib->getValues(hhit->id())->getValue();
527 
528  //if(i<5){cout<<" calib factors: "<<factor<<" ij "<<100*i+j<<endl;}
529 
530  if (hhit->id().ieta() == MaxHit.ietahitm && hhit->id().iphi() == MaxHit.iphihitm)
532 
533  if (hhit->id().ieta() == MaxHit.ietahitm && hhit->id().iphi() == MaxHit.iphihitm)
534  iTime = hhit->time();
535 
536  if (AxB_ != "3x3" && AxB_ != "5x5" && AxB_ != "Cone")
537  edm::LogWarning(" AxB ") << " Not supported: " << AxB_;
538 
539  if (abs(DIETA) <= 2 && (abs(DIPHI) <= 2 || ((abs(MaxHit.ietahitm) > 20 && abs(DIPHI) <= 4) &&
540  !((abs(MaxHit.ietahitm) == 21 || abs(MaxHit.ietahitm) == 22) &&
541  abs((hhit->id()).ieta()) <= 20 && abs(DIPHI) > 2)))) {
542  e5x5Before += hhit->energy();
543  e5x5After += hhit->energy() * factor;
544  }
545 
546  if (abs(DIETA) <= 1 && (abs(DIPHI) <= 1 || ((abs(MaxHit.ietahitm) > 20 && abs(DIPHI) <= 2) &&
547  !(abs(MaxHit.ietahitm) == 21 && abs((hhit->id()).ieta()) <= 20 &&
548  abs(DIPHI) > 1)))) {
549  e3x3Before += hhit->energy();
550  e3x3After += hhit->energy() * factor;
551  }
552 
553  if (AxB_ == "5x5") {
554  if (abs(DIETA) <= 2 && (abs(DIPHI) <= 2 || (abs(MaxHit.ietahitm) > 20 && abs(DIPHI) <= 4))) {
555  if (abs(MaxHit.ietahitm) == 21 && abs((hhit->id()).ieta()) <= 20 && abs(DIPHI) > 3)
556  continue;
557 
558  HTime[numHits] = hhit->time();
559  numHits++;
560 
561  eClustBefore += hhit->energy();
562  eClustAfter += hhit->energy() * factor;
563 
564  if ((hhit->id().depth() == 1) && (abs(hhit->id().ieta()) > 17) && (abs(hhit->id().ieta()) < 29)) {
565  eBeforeDepth1 += hhit->energy();
566  eAfterDepth1 += hhit->energy() * factor;
567  } else if ((hhit->id().depth() == 2) && (abs(hhit->id().ieta()) > 17) && (abs(hhit->id().ieta()) < 29)) {
568  eBeforeDepth2 += hhit->energy();
569  eAfterDepth2 += hhit->energy() * factor;
570  }
571  }
572  } //end of 5x5
573 
574  if (AxB_ == "3x3") {
575  if (abs(DIETA) <= 1 && (abs(DIPHI) <= 1 || (abs(MaxHit.ietahitm) > 20 && abs(DIPHI) <= 2))) {
576  if (abs(MaxHit.ietahitm) == 21 && abs((hhit->id()).ieta()) <= 20 && abs(DIPHI) > 2)
577  continue;
578 
579  HTime[numHits] = hhit->time();
580  numHits++;
581 
582  eClustBefore += hhit->energy();
583  eClustAfter += hhit->energy() * factor;
584 
585  if ((hhit->id().depth() == 1) && (abs(hhit->id().ieta()) > 17) && (abs(hhit->id().ieta()) < 29)) {
586  eBeforeDepth1 += hhit->energy();
587  eAfterDepth1 += hhit->energy() * factor;
588  } else if ((hhit->id().depth() == 2) && (abs(hhit->id().ieta()) > 17) && (abs(hhit->id().ieta()) < 29)) {
589  eBeforeDepth2 += hhit->energy();
590  eAfterDepth2 += hhit->energy() * factor;
591  }
592  }
593  } //end of 3x3
594 
595  if (AxB_ == "Cone" && getDistInPlaneSimple(gPointHcal, pos2) < calibrationConeSize_) {
596  HTime[numHits] = hhit->time();
597  numHits++;
598 
599  eClustBefore += hhit->energy();
600  eClustAfter += hhit->energy() * factor;
601 
602  if ((hhit->id().depth() == 1) && (abs(hhit->id().ieta()) > 17) && (abs(hhit->id().ieta()) < 29)) {
603  eBeforeDepth1 += hhit->energy();
604  eAfterDepth1 += hhit->energy() * factor;
605  } else if ((hhit->id().depth() == 2) && (abs(hhit->id().ieta()) > 17) && (abs(hhit->id().ieta()) < 29)) {
606  eBeforeDepth2 += hhit->energy();
607  eAfterDepth2 += hhit->energy() * factor;
608  }
609 
610  } //end of Cone
611 
612  } //end of passCuts
613 
614  } //end of DIETA DIPHI
615 
616  } //end of associatedcone HBHE hits cycle
617 
618  int dieta_M_P = 100;
619  int diphi_M_P = 100;
620  if (MaxHit.ietahitm * ietatrue > 0) {
621  dieta_M_P = abs(MaxHit.ietahitm - ietatrue);
622  }
623  if (MaxHit.ietahitm * ietatrue < 0) {
624  dieta_M_P = abs(MaxHit.ietahitm - ietatrue) - 1;
625  }
626  diphi_M_P = abs(MaxHit.iphihitm - iphitrue);
627  diphi_M_P = diphi_M_P > 36 ? 72 - diphi_M_P : diphi_M_P;
628 
629  if (passCuts)
630 
631  {
632  eventNumber = iEvent.id().event();
633  runNumber = iEvent.id().run();
634 
635  eCentHitBefore = MaxHit.hitenergy;
637  eECAL = emEnergy;
640  PtNearBy = ptNear;
641 
642  eTrack = trackE;
643  phiTrack = trackPhi;
644  etaTrack = trackEta;
645 
646  iEta = MaxHit.ietahitm;
647  iPhi = MaxHit.iphihitm;
648 
649  iEtaTr = ietatrue;
650  iPhiTr = iphitrue;
651  iDr = sqrt(diphi_M_P * diphi_M_P + dieta_M_P * dieta_M_P);
652  delR = MaxHit.dr;
653  dietatr = dieta_M_P;
654  diphitr = diphi_M_P;
655 
656  fTree->Fill();
657  }
658 
659  } //end of isoProdTracks cycle
660 
661  /* ------------------ Some stuff for general tracks ---------- ----*/
662  //cout<<" generalTracks Size: "<< generalTracks->size()<<endl;
663  int n = generalTracks->size();
664  nTracks->Fill(n);
665 
666  if (takeGenTracks_ && iEvent.id().event() % 10 == 1) {
667  gen = generalTracks->size();
668  iso = isoProdTracks->size();
669  pix = isoPixelTracks->size();
670 
671  genPt[0] = -33;
672  genPhi[0] = -33;
673  genEta[0] = -33;
674 
675  isoPt[0] = -33;
676  isoPhi[0] = -33;
677  isoEta[0] = -33;
678 
679  pixPt[0] = -33;
680  pixPhi[0] = -33;
681  pixEta[0] = -33;
682 
683  Int_t gencount = 0, isocount = 0, pixcount = 0;
684  for (reco::TrackCollection::const_iterator gentr = generalTracks->begin(); gentr != generalTracks->end(); gentr++) {
685  genPt[gencount] = gentr->pt();
686  genPhi[gencount] = gentr->phi();
687  genEta[gencount] = gentr->eta();
688  gencount++;
689  }
690 
691  for (reco::TrackCollection::const_iterator isotr = isoProdTracks->begin(); isotr != isoProdTracks->end(); isotr++) {
692  isoPt[isocount] = isotr->pt();
693  isoPhi[isocount] = isotr->phi();
694  isoEta[isocount] = isotr->eta();
695  isocount++;
696  }
697 
698  for (reco::IsolatedPixelTrackCandidateCollection::const_iterator pixtr = isoPixelTracks->begin();
699  pixtr != isoPixelTracks->end();
700  pixtr++) {
701  pixPt[pixcount] = pixtr->pt();
702  pixPhi[pixcount] = pixtr->phi();
703  pixEta[pixcount] = pixtr->eta();
704  pixcount++;
705  }
706  }
707 
708  tTree->Fill();
709 }

References funct::abs(), TrackDetectorAssociator::associate(), associationConeSize_, AxB_, edm::SortedCollection< T, SORT >::begin(), TrackAssociatorParameters::bFieldToken, calibrationConeSize_, CentHitFactor, gather_cfg::cout, delR, LEDCalibrationChannels::depth, MaxHit_struct::depthhit, dietatr, diphitr, MaxHit_struct::dr, MillePedeFileConverter_cfg::e, e3x3After, e3x3Before, e5x5After, e5x5Before, eAfterDepth1, eAfterDepth2, eBeforeDepth1, eBeforeDepth2, eCentHitAfter, eCentHitBefore, eClustAfter, eClustBefore, eECAL, emEnergy, edm::SortedCollection< T, SORT >::end(), energyMaxIso, energyMinIso, etaTrack, eTrack, eventNumber, DQMScaleToClient_cfi::factor, fTree, isolatedTracks_cfi::generalTracks, genEta, genPhi, genPt, geo, HcalGeometry::getClosestCell(), edm::EventSetup::getData(), getDistInPlaneSimple(), TrackDetectorAssociator::getFreeTrajectoryState(), CaloGeometry::getPosition(), CaloGeometry::getSubdetectorGeometry(), reco::JetExtendedAssociation::getValue(), HcalCondObjectContainer< Item >::getValues(), photonIsolationHIProducer_cfi::hbhe, DetId::Hcal, HcalBarrel, MaxHit_struct::hitenergy, HTime, mps_fire::i, iDr, LEDCalibrationChannels::ieta, HcalDetId::ieta(), iEta, MaxHit_struct::ietahitm, iEtaTr, iEvent, info(), LEDCalibrationChannels::iphi, HcalDetId::iphi(), iPhi, MaxHit_struct::iphihitm, iPhiTr, iso, isoEta, isoPhi, isoPt, iTime, muonTagProbeFilters_cff::matched, maxPNear, MinNTECHitsEndcap, MinNTrackHitsBarrel, dqmiodumpmetadata::n, nTracks, numHits, numValidTrkHits, numValidTrkStrips, numVH, numVS, parameters_, phiTrack, pix, pixEta, pixPhi, pixPt, ptNear, PtNearBy, respRecalib, runNumber, mathSSE::sqrt(), takeGenTracks_, tok_genTrack_, tok_geom_, tok_hbhe_, tok_recalibCorrs_, tok_track1_, tok_track_, trackAssociator_, trackE, trackEta, trackPhi, trackPt, tTree, TrackAssociatorParameters::useCalo, TrackAssociatorParameters::useEcal, TrackAssociatorParameters::useHcal, TrackAssociatorParameters::useMuon, xTrkEcal, xTrkHcal, yTrkEcal, yTrkHcal, zTrkEcal, and zTrkHcal.

◆ beginJob()

void ValidIsoTrkCalib::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 712 of file ValidIsoTrkCalib.cc.

712  {
713  // if(!ReadCalibFactors(calibFactorsFileName_.c_str() )) {cout<<"Cant read file with cailib coefficients!! ---"<<endl;}
714 
715  // rootFile = new TFile(outputFileName_.c_str(),"RECREATE");
716 
717  //@@@@@@@@@@@@@
718  //TFileDirectory ValDir = fs->mkdir("Validation");
719 
720  nTracks = fs->make<TH1F>("nTracks", "general;number of general tracks", 11, -0.5, 10.5);
721 
722  tTree = fs->make<TTree>("tTree", "Tree for gen info");
723 
724  fTree = fs->make<TTree>("fTree", "Tree for IsoTrack Calibration");
725 
726  fTree->Branch("eventNumber", &eventNumber, "eventNumber/I");
727  fTree->Branch("runNumber", &runNumber, "runNumber/I");
728 
729  fTree->Branch("eClustBefore", &eClustBefore, "eClustBefore/F");
730  fTree->Branch("eClustAfter", &eClustAfter, "eClustAfter/F");
731  fTree->Branch("eTrack", &eTrack, "eTrack/F");
732  fTree->Branch("etaTrack", &etaTrack, "etaTrack/F");
733  fTree->Branch("phiTrack", &phiTrack, "phiTrack/F");
734 
735  fTree->Branch("numHits", &numHits, "numHits/I");
736  fTree->Branch("eECAL", &eECAL, "eECAL/F");
737  fTree->Branch("PtNearBy", &PtNearBy, "PtNearBy/F");
738  fTree->Branch("numValidTrkHits", &numValidTrkHits, "numValidTrkHits/F");
739  fTree->Branch("numValidTrkStrips", &numValidTrkStrips, "numValidTrkStrips/F");
740 
741  fTree->Branch("eBeforeDepth1", &eBeforeDepth1, "eBeforeDepth1/F");
742  fTree->Branch("eBeforeDepth2", &eBeforeDepth2, "eBeforeDepth2/F");
743  fTree->Branch("eAfterDepth1", &eAfterDepth1, "eAfterDepth1/F");
744  fTree->Branch("eAfterDepth2", &eAfterDepth2, "eAfterDepth2/F");
745 
746  fTree->Branch("e3x3Before", &e3x3Before, "e3x3Before/F");
747  fTree->Branch("e3x3After", &e3x3After, "e3x3After/F");
748  fTree->Branch("e5x5Before", &e5x5Before, "e5x5Before/F");
749  fTree->Branch("e5x5After", &e5x5After, "e5x5After/F");
750 
751  fTree->Branch("eCentHitAfter", &eCentHitAfter, "eCentHitAfter/F");
752  fTree->Branch("eCentHitBefore", &eCentHitBefore, "eCentHitBefore/F");
753  fTree->Branch("iEta", &iEta, "iEta/I");
754  fTree->Branch("iPhi", &iPhi, "iPhi/I");
755 
756  fTree->Branch("iEtaTr", &iEtaTr, "iEtaTr/I");
757  fTree->Branch("iPhiTr", &iPhiTr, "iPhiTr/I");
758  fTree->Branch("dietatr", &dietatr, "dietatr/I");
759  fTree->Branch("diphitr", &diphitr, "diphitr/I");
760  fTree->Branch("iDr", &iDr, "iDr/F");
761  fTree->Branch("delR", &delR, "delR/F");
762 
763  fTree->Branch("iTime", &iTime, "iTime/F");
764  fTree->Branch("HTime", HTime, "HTime[numHits]/F");
765 
766  fTree->Branch("xTrkEcal", &xTrkEcal, "xTrkEcal/F");
767  fTree->Branch("yTrkEcal", &yTrkEcal, "yTrkEcal/F");
768  fTree->Branch("zTrkEcal", &zTrkEcal, "zTrkEcal/F");
769  fTree->Branch("xTrkHcal", &xTrkHcal, "xTrkHcal/F");
770  fTree->Branch("yTrkHcal", &yTrkHcal, "yTrkHcal/F");
771  fTree->Branch("zTrkHcal", &zTrkHcal, "zTrkHcal/F");
772 
773  if (takeGenTracks_) {
774  tTree->Branch("gen", &gen, "gen/I");
775  tTree->Branch("iso", &iso, "iso/I");
776  tTree->Branch("pix", &pix, "pix/I");
777  tTree->Branch("genPt", genPt, "genPt[gen]/F");
778  tTree->Branch("genPhi", genPhi, "genPhi[gen]/F");
779  tTree->Branch("genEta", genEta, "genEta[gen]/F");
780 
781  tTree->Branch("isoPt", isoPt, "isoPt[iso]/F");
782  tTree->Branch("isoPhi", isoPhi, "isoPhi[iso]/F");
783  tTree->Branch("isoEta", isoEta, "isoEta[iso]/F");
784 
785  tTree->Branch("pixPt", pixPt, "pixPt[pix]/F");
786  tTree->Branch("pixPhi", pixPhi, "pixPhi[pix]/F");
787  tTree->Branch("pixEta", pixEta, "pixEta[pix]/F");
788  }
789 }

References delR, dietatr, diphitr, e3x3After, e3x3Before, e5x5After, e5x5Before, eAfterDepth1, eAfterDepth2, eBeforeDepth1, eBeforeDepth2, eCentHitAfter, eCentHitBefore, eClustAfter, eClustBefore, eECAL, etaTrack, eTrack, eventNumber, fs, fTree, genEta, genPhi, genPt, HTime, iDr, iEta, iEtaTr, iPhi, iPhiTr, iso, isoEta, isoPhi, isoPt, iTime, TFileService::make(), nTracks, numHits, numValidTrkHits, numValidTrkStrips, phiTrack, pix, pixEta, pixPhi, pixPt, PtNearBy, runNumber, takeGenTracks_, tTree, xTrkEcal, xTrkHcal, yTrkEcal, yTrkHcal, zTrkEcal, and zTrkHcal.

Member Data Documentation

◆ allowMissingInputs_

bool ValidIsoTrkCalib::allowMissingInputs_
private

Definition at line 102 of file ValidIsoTrkCalib.cc.

Referenced by ValidIsoTrkCalib().

◆ associationConeSize_

double ValidIsoTrkCalib::associationConeSize_
private

Definition at line 98 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and ValidIsoTrkCalib().

◆ AxB_

string ValidIsoTrkCalib::AxB_
private

Definition at line 99 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and ValidIsoTrkCalib().

◆ calibrationConeSize_

double ValidIsoTrkCalib::calibrationConeSize_
private

Definition at line 100 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and ValidIsoTrkCalib().

◆ CentHitFactor

float ValidIsoTrkCalib::CentHitFactor
private

Definition at line 157 of file ValidIsoTrkCalib.cc.

Referenced by analyze().

◆ delR

float ValidIsoTrkCalib::delR
private

Definition at line 162 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ dietatr

int ValidIsoTrkCalib::dietatr
private

Definition at line 163 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ diphitr

int ValidIsoTrkCalib::diphitr
private

Definition at line 164 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ e3x3After

float ValidIsoTrkCalib::e3x3After
private

Definition at line 169 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ e3x3Before

float ValidIsoTrkCalib::e3x3Before
private

Definition at line 168 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ e5x5After

float ValidIsoTrkCalib::e5x5After
private

Definition at line 171 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ e5x5Before

float ValidIsoTrkCalib::e5x5Before
private

Definition at line 170 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ eAfterDepth1

float ValidIsoTrkCalib::eAfterDepth1
private

Definition at line 152 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ eAfterDepth2

float ValidIsoTrkCalib::eAfterDepth2
private

Definition at line 154 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ eBeforeDepth1

float ValidIsoTrkCalib::eBeforeDepth1
private

Definition at line 151 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ eBeforeDepth2

float ValidIsoTrkCalib::eBeforeDepth2
private

Definition at line 153 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ eCentHitAfter

float ValidIsoTrkCalib::eCentHitAfter
private

Definition at line 156 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ eCentHitBefore

float ValidIsoTrkCalib::eCentHitBefore
private

Definition at line 155 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ eClustAfter

float ValidIsoTrkCalib::eClustAfter
private

Definition at line 143 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ eClustBefore

float ValidIsoTrkCalib::eClustBefore
private

Definition at line 142 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ eECAL

float ValidIsoTrkCalib::eECAL
private

Definition at line 147 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ emEnergy

Float_t ValidIsoTrkCalib::emEnergy
private

Definition at line 126 of file ValidIsoTrkCalib.cc.

Referenced by analyze().

◆ energyECALmip

double ValidIsoTrkCalib::energyECALmip
private

Definition at line 123 of file ValidIsoTrkCalib.cc.

Referenced by ValidIsoTrkCalib().

◆ energyMaxIso

double ValidIsoTrkCalib::energyMaxIso
private

Definition at line 124 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and ValidIsoTrkCalib().

◆ energyMinIso

double ValidIsoTrkCalib::energyMinIso
private

Definition at line 124 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and ValidIsoTrkCalib().

◆ etaTrack

float ValidIsoTrkCalib::etaTrack
private

Definition at line 145 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ eTrack

float ValidIsoTrkCalib::eTrack
private

Definition at line 144 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ eventNumber

int ValidIsoTrkCalib::eventNumber
private

Definition at line 172 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ fs

edm::Service<TFileService> ValidIsoTrkCalib::fs
private

Definition at line 183 of file ValidIsoTrkCalib.cc.

Referenced by beginJob().

◆ fTree

TTree * ValidIsoTrkCalib::fTree
private

Definition at line 131 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ gen

int ValidIsoTrkCalib::gen
private

Definition at line 109 of file ValidIsoTrkCalib.cc.

◆ genecalLabel_

std::vector<edm::InputTag> ValidIsoTrkCalib::genecalLabel_
private

Definition at line 84 of file ValidIsoTrkCalib.cc.

◆ genEta

float ValidIsoTrkCalib::genEta[500]
private

Definition at line 110 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ genhbheLabel_

edm::InputTag ValidIsoTrkCalib::genhbheLabel_
private

Definition at line 82 of file ValidIsoTrkCalib.cc.

Referenced by ValidIsoTrkCalib().

◆ genhoLabel_

edm::InputTag ValidIsoTrkCalib::genhoLabel_
private

Definition at line 83 of file ValidIsoTrkCalib.cc.

◆ genPhi

float ValidIsoTrkCalib::genPhi[500]
private

Definition at line 110 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ genPt

float ValidIsoTrkCalib::genPt[500]
private

Definition at line 110 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ geo

const CaloGeometry* ValidIsoTrkCalib::geo
private

Definition at line 80 of file ValidIsoTrkCalib.cc.

Referenced by analyze().

◆ HTime

float ValidIsoTrkCalib::HTime[100]
private

Definition at line 167 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ iDr

float ValidIsoTrkCalib::iDr
private

Definition at line 162 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ iEta

int ValidIsoTrkCalib::iEta
private

Definition at line 158 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ iEtaTr

int ValidIsoTrkCalib::iEtaTr
private

Definition at line 160 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ iPhi

int ValidIsoTrkCalib::iPhi
private

Definition at line 159 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ iPhiTr

int ValidIsoTrkCalib::iPhiTr
private

Definition at line 161 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ iso

int ValidIsoTrkCalib::iso
private

Definition at line 109 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ isoEta

float ValidIsoTrkCalib::isoEta[500]
private

Definition at line 111 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ isoPhi

float ValidIsoTrkCalib::isoPhi[500]
private

Definition at line 111 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ isoPt

float ValidIsoTrkCalib::isoPt[500]
private

Definition at line 111 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ iTime

float ValidIsoTrkCalib::iTime
private

Definition at line 166 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ maxPNear

double ValidIsoTrkCalib::maxPNear
private

Definition at line 123 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and ValidIsoTrkCalib().

◆ MinNTECHitsEndcap

int ValidIsoTrkCalib::MinNTECHitsEndcap
private

Definition at line 122 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and ValidIsoTrkCalib().

◆ MinNTrackHitsBarrel

int ValidIsoTrkCalib::MinNTrackHitsBarrel
private

Definition at line 122 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and ValidIsoTrkCalib().

◆ Nhits

int ValidIsoTrkCalib::Nhits
private

Definition at line 141 of file ValidIsoTrkCalib.cc.

◆ NisoTrk

int ValidIsoTrkCalib::NisoTrk
private

Definition at line 116 of file ValidIsoTrkCalib.cc.

◆ nTracks

TH1F* ValidIsoTrkCalib::nTracks
private

Definition at line 181 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ numHits

int ValidIsoTrkCalib::numHits
private

Definition at line 148 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ numValidTrkHits

float ValidIsoTrkCalib::numValidTrkHits
private

Definition at line 175 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ numValidTrkStrips

float ValidIsoTrkCalib::numValidTrkStrips
private

Definition at line 175 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ numVH

float ValidIsoTrkCalib::numVH
private

Definition at line 175 of file ValidIsoTrkCalib.cc.

Referenced by analyze().

◆ numVS

float ValidIsoTrkCalib::numVS
private

Definition at line 175 of file ValidIsoTrkCalib.cc.

Referenced by analyze().

◆ outputFileName_

string ValidIsoTrkCalib::outputFileName_
private

Definition at line 103 of file ValidIsoTrkCalib.cc.

◆ parameters_

TrackAssociatorParameters ValidIsoTrkCalib::parameters_
private

◆ phiTrack

float ValidIsoTrkCalib::phiTrack
private

Definition at line 146 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ pix

int ValidIsoTrkCalib::pix
private

Definition at line 109 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ pixEta

float ValidIsoTrkCalib::pixEta[500]
private

Definition at line 112 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ pixPhi

float ValidIsoTrkCalib::pixPhi[500]
private

Definition at line 112 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ pixPt

float ValidIsoTrkCalib::pixPt[500]
private

Definition at line 112 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ ptNear

float ValidIsoTrkCalib::ptNear
private

Definition at line 118 of file ValidIsoTrkCalib.cc.

Referenced by analyze().

◆ PtNearBy

float ValidIsoTrkCalib::PtNearBy
private

Definition at line 174 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ ptrack

float ValidIsoTrkCalib::ptrack
private

Definition at line 119 of file ValidIsoTrkCalib.cc.

◆ respRecalib

const HcalRespCorrs* ValidIsoTrkCalib::respRecalib
private

Definition at line 177 of file ValidIsoTrkCalib.cc.

Referenced by analyze().

◆ runNumber

int ValidIsoTrkCalib::runNumber
private

◆ rvert

float ValidIsoTrkCalib::rvert
private

Definition at line 119 of file ValidIsoTrkCalib.cc.

◆ taECALCone_

double ValidIsoTrkCalib::taECALCone_
private

Definition at line 77 of file ValidIsoTrkCalib.cc.

◆ taHCALCone_

double ValidIsoTrkCalib::taHCALCone_
private

Definition at line 78 of file ValidIsoTrkCalib.cc.

◆ takeGenTracks_

bool ValidIsoTrkCalib::takeGenTracks_
private

Definition at line 107 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), beginJob(), and ValidIsoTrkCalib().

◆ targetE

Float_t ValidIsoTrkCalib::targetE
private

Definition at line 127 of file ValidIsoTrkCalib.cc.

◆ tok_genTrack_

edm::EDGetTokenT<reco::TrackCollection> ValidIsoTrkCalib::tok_genTrack_
private

Definition at line 86 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and ValidIsoTrkCalib().

◆ tok_geom_

edm::ESGetToken<CaloGeometry, CaloGeometryRecord> ValidIsoTrkCalib::tok_geom_
private

Definition at line 93 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and ValidIsoTrkCalib().

◆ tok_hbhe_

edm::EDGetTokenT<HBHERecHitCollection> ValidIsoTrkCalib::tok_hbhe_
private

Definition at line 87 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and ValidIsoTrkCalib().

◆ tok_ho_

edm::EDGetTokenT<HORecHitCollection> ValidIsoTrkCalib::tok_ho_
private

Definition at line 88 of file ValidIsoTrkCalib.cc.

Referenced by ValidIsoTrkCalib().

◆ tok_recalibCorrs_

edm::ESGetToken<HcalRespCorrs, HcalRespCorrsRcd> ValidIsoTrkCalib::tok_recalibCorrs_
private

Definition at line 92 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and ValidIsoTrkCalib().

◆ tok_track1_

edm::EDGetTokenT<reco::TrackCollection> ValidIsoTrkCalib::tok_track1_
private

Definition at line 90 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and ValidIsoTrkCalib().

◆ tok_track_

edm::EDGetTokenT<reco::IsolatedPixelTrackCandidateCollection> ValidIsoTrkCalib::tok_track_
private

Definition at line 89 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and ValidIsoTrkCalib().

◆ trackAssociator_

TrackDetectorAssociator ValidIsoTrkCalib::trackAssociator_
private

Definition at line 75 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and ValidIsoTrkCalib().

◆ trackE

float ValidIsoTrkCalib::trackE
private

Definition at line 117 of file ValidIsoTrkCalib.cc.

Referenced by analyze().

◆ trackEta

float ValidIsoTrkCalib::trackEta
private

Definition at line 117 of file ValidIsoTrkCalib.cc.

Referenced by analyze().

◆ trackPhi

float ValidIsoTrkCalib::trackPhi
private

Definition at line 117 of file ValidIsoTrkCalib.cc.

Referenced by analyze().

◆ trackPt

float ValidIsoTrkCalib::trackPt
private

Definition at line 117 of file ValidIsoTrkCalib.cc.

Referenced by analyze().

◆ tTree

TTree* ValidIsoTrkCalib::tTree
private

Definition at line 131 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ xTrkEcal

Float_t ValidIsoTrkCalib::xTrkEcal
private

Definition at line 133 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ xTrkHcal

Float_t ValidIsoTrkCalib::xTrkHcal
private

Definition at line 137 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ yTrkEcal

Float_t ValidIsoTrkCalib::yTrkEcal
private

Definition at line 134 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ yTrkHcal

Float_t ValidIsoTrkCalib::yTrkHcal
private

Definition at line 138 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ zTrkEcal

Float_t ValidIsoTrkCalib::zTrkEcal
private

Definition at line 135 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

◆ zTrkHcal

Float_t ValidIsoTrkCalib::zTrkHcal
private

Definition at line 139 of file ValidIsoTrkCalib.cc.

Referenced by analyze(), and beginJob().

muonTagProbeFilters_cff.matched
matched
Definition: muonTagProbeFilters_cff.py:62
getDistInPlaneSimple
double getDistInPlaneSimple(const GlobalPoint caloPoint, const GlobalPoint rechitPoint)
Definition: ConeDefinition.h:9
BeamSpotPI::parameters
parameters
Definition: BeamSpotPayloadInspectorHelper.h:30
ValidIsoTrkCalib::PtNearBy
float PtNearBy
Definition: ValidIsoTrkCalib.cc:174
mps_fire.i
i
Definition: mps_fire.py:428
edm::ESInputTag
Definition: ESInputTag.h:87
edm::SortedCollection::const_iterator
std::vector< T >::const_iterator const_iterator
Definition: SortedCollection.h:80
ValidIsoTrkCalib::yTrkEcal
Float_t yTrkEcal
Definition: ValidIsoTrkCalib.cc:134
ValidIsoTrkCalib::e3x3Before
float e3x3Before
Definition: ValidIsoTrkCalib.cc:168
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
ValidIsoTrkCalib::trackE
float trackE
Definition: ValidIsoTrkCalib.cc:117
ValidIsoTrkCalib::runNumber
int runNumber
Definition: ValidIsoTrkCalib.cc:173
ValidIsoTrkCalib::pixEta
float pixEta[500]
Definition: ValidIsoTrkCalib.cc:112
TrackAssociatorParameters::useCalo
bool useCalo
Definition: TrackAssociatorParameters.h:81
MaxHit_struct
Definition: CommonUsefulStuff.h:42
HcalDetId::iphi
constexpr int iphi() const
get the cell iphi
Definition: HcalDetId.h:157
MaxHit_struct::hitenergy
float hitenergy
Definition: CommonUsefulStuff.h:46
ValidIsoTrkCalib::eBeforeDepth2
float eBeforeDepth2
Definition: ValidIsoTrkCalib.cc:153
CaloGeometry::getPosition
GlobalPoint getPosition(const DetId &id) const
Get the position of a given detector id.
Definition: CaloGeometry.cc:50
ValidIsoTrkCalib::xTrkEcal
Float_t xTrkEcal
Definition: ValidIsoTrkCalib.cc:133
ValidIsoTrkCalib::calibrationConeSize_
double calibrationConeSize_
Definition: ValidIsoTrkCalib.cc:100
TrackDetectorAssociator::useDefaultPropagator
void useDefaultPropagator()
use the default propagator
Definition: TrackDetectorAssociator.cc:81
ValidIsoTrkCalib::trackAssociator_
TrackDetectorAssociator trackAssociator_
Definition: ValidIsoTrkCalib.cc:75
gather_cfg.cout
cout
Definition: gather_cfg.py:144
pos
Definition: PixelAliasList.h:18
DetId::Hcal
Definition: DetId.h:28
ValidIsoTrkCalib::eTrack
float eTrack
Definition: ValidIsoTrkCalib.cc:144
MaxHit_struct::dr
float dr
Definition: CommonUsefulStuff.h:47
CaloGeometry::getSubdetectorGeometry
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Definition: CaloGeometry.cc:34
edm::SortedCollection
Definition: SortedCollection.h:49
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:47
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
ValidIsoTrkCalib::emEnergy
Float_t emEnergy
Definition: ValidIsoTrkCalib.cc:126
TrackAssociatorParameters::useMuon
bool useMuon
Definition: TrackAssociatorParameters.h:83
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
HcalBarrel
Definition: HcalAssistant.h:33
edm::Handle< reco::TrackCollection >
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
ValidIsoTrkCalib::maxPNear
double maxPNear
Definition: ValidIsoTrkCalib.cc:123
HcalCondObjectContainer::getValues
const Item * getValues(DetId fId, bool throwOnFail=true) const
Definition: HcalCondObjectContainer.h:159
ValidIsoTrkCalib::iDr
float iDr
Definition: ValidIsoTrkCalib.cc:162
ValidIsoTrkCalib::geo
const CaloGeometry * geo
Definition: ValidIsoTrkCalib.cc:80
ValidIsoTrkCalib::numValidTrkHits
float numValidTrkHits
Definition: ValidIsoTrkCalib.cc:175
ValidIsoTrkCalib::pix
int pix
Definition: ValidIsoTrkCalib.cc:109
ValidIsoTrkCalib::eCentHitBefore
float eCentHitBefore
Definition: ValidIsoTrkCalib.cc:155
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
ValidIsoTrkCalib::isoPt
float isoPt[500]
Definition: ValidIsoTrkCalib.cc:111
ValidIsoTrkCalib::e5x5Before
float e5x5Before
Definition: ValidIsoTrkCalib.cc:170
ValidIsoTrkCalib::eClustAfter
float eClustAfter
Definition: ValidIsoTrkCalib.cc:143
ValidIsoTrkCalib::AxB_
string AxB_
Definition: ValidIsoTrkCalib.cc:99
ValidIsoTrkCalib::MinNTrackHitsBarrel
int MinNTrackHitsBarrel
Definition: ValidIsoTrkCalib.cc:122
ValidIsoTrkCalib::tTree
TTree * tTree
Definition: ValidIsoTrkCalib.cc:131
ValidIsoTrkCalib::eECAL
float eECAL
Definition: ValidIsoTrkCalib.cc:147
ValidIsoTrkCalib::numHits
int numHits
Definition: ValidIsoTrkCalib.cc:148
ValidIsoTrkCalib::parameters_
TrackAssociatorParameters parameters_
Definition: ValidIsoTrkCalib.cc:76
ValidIsoTrkCalib::eAfterDepth1
float eAfterDepth1
Definition: ValidIsoTrkCalib.cc:152
ValidIsoTrkCalib::trackPt
float trackPt
Definition: ValidIsoTrkCalib.cc:117
MaxHit_struct::iphihitm
int iphihitm
Definition: CommonUsefulStuff.h:43
edm::SortedCollection::begin
const_iterator begin() const
Definition: SortedCollection.h:262
ValidIsoTrkCalib::e3x3After
float e3x3After
Definition: ValidIsoTrkCalib.cc:169
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
ValidIsoTrkCalib::CentHitFactor
float CentHitFactor
Definition: ValidIsoTrkCalib.cc:157
MaxHit_struct::ietahitm
int ietahitm
Definition: CommonUsefulStuff.h:44
ValidIsoTrkCalib::genhbheLabel_
edm::InputTag genhbheLabel_
Definition: ValidIsoTrkCalib.cc:82
ValidIsoTrkCalib::numVH
float numVH
Definition: ValidIsoTrkCalib.cc:175
ValidIsoTrkCalib::zTrkEcal
Float_t zTrkEcal
Definition: ValidIsoTrkCalib.cc:135
ValidIsoTrkCalib::MinNTECHitsEndcap
int MinNTECHitsEndcap
Definition: ValidIsoTrkCalib.cc:122
DQMScaleToClient_cfi.factor
factor
Definition: DQMScaleToClient_cfi.py:8
ValidIsoTrkCalib::genPt
float genPt[500]
Definition: ValidIsoTrkCalib.cc:110
ValidIsoTrkCalib::xTrkHcal
Float_t xTrkHcal
Definition: ValidIsoTrkCalib.cc:137
ValidIsoTrkCalib::eAfterDepth2
float eAfterDepth2
Definition: ValidIsoTrkCalib.cc:154
ValidIsoTrkCalib::allowMissingInputs_
bool allowMissingInputs_
Definition: ValidIsoTrkCalib.cc:102
Point3DBase< float, GlobalTag >
TrackAssociatorParameters::loadParameters
void loadParameters(const edm::ParameterSet &, edm::ConsumesCollector &)
Definition: TrackAssociatorParameters.cc:18
gen
Definition: PythiaDecays.h:13
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
ValidIsoTrkCalib::fs
edm::Service< TFileService > fs
Definition: ValidIsoTrkCalib.cc:183
ValidIsoTrkCalib::trackPhi
float trackPhi
Definition: ValidIsoTrkCalib.cc:117
ValidIsoTrkCalib::tok_recalibCorrs_
edm::ESGetToken< HcalRespCorrs, HcalRespCorrsRcd > tok_recalibCorrs_
Definition: ValidIsoTrkCalib.cc:92
ValidIsoTrkCalib::HTime
float HTime[100]
Definition: ValidIsoTrkCalib.cc:167
ValidIsoTrkCalib::iEtaTr
int iEtaTr
Definition: ValidIsoTrkCalib.cc:160
ValidIsoTrkCalib::iEta
int iEta
Definition: ValidIsoTrkCalib.cc:158
ValidIsoTrkCalib::isoPhi
float isoPhi[500]
Definition: ValidIsoTrkCalib.cc:111
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
ValidIsoTrkCalib::e5x5After
float e5x5After
Definition: ValidIsoTrkCalib.cc:171
HcalDetId::ieta
constexpr int ieta() const
get the cell ieta
Definition: HcalDetId.h:155
ValidIsoTrkCalib::energyMaxIso
double energyMaxIso
Definition: ValidIsoTrkCalib.cc:124
ValidIsoTrkCalib::eventNumber
int eventNumber
Definition: ValidIsoTrkCalib.cc:172
edm::ParameterSet
Definition: ParameterSet.h:47
ValidIsoTrkCalib::zTrkHcal
Float_t zTrkHcal
Definition: ValidIsoTrkCalib.cc:139
ValidIsoTrkCalib::pixPt
float pixPt[500]
Definition: ValidIsoTrkCalib.cc:112
ValidIsoTrkCalib::trackEta
float trackEta
Definition: ValidIsoTrkCalib.cc:117
TrackDetectorAssociator::getFreeTrajectoryState
static FreeTrajectoryState getFreeTrajectoryState(const MagneticField *, const reco::Track &)
get FreeTrajectoryState from different track representations
Definition: TrackDetectorAssociator.cc:553
edm::SortedCollection::end
const_iterator end() const
Definition: SortedCollection.h:267
ValidIsoTrkCalib::iPhi
int iPhi
Definition: ValidIsoTrkCalib.cc:159
ValidIsoTrkCalib::pixPhi
float pixPhi[500]
Definition: ValidIsoTrkCalib.cc:112
ValidIsoTrkCalib::delR
float delR
Definition: ValidIsoTrkCalib.cc:162
reco::JetExtendedAssociation::getValue
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
Definition: JetExtendedAssociation.cc:50
ValidIsoTrkCalib::associationConeSize_
double associationConeSize_
Definition: ValidIsoTrkCalib.cc:98
ValidIsoTrkCalib::numVS
float numVS
Definition: ValidIsoTrkCalib.cc:175
ValidIsoTrkCalib::genEta
float genEta[500]
Definition: ValidIsoTrkCalib.cc:110
HcalDetId
Definition: HcalDetId.h:12
iEvent
int iEvent
Definition: GenABIO.cc:224
ValidIsoTrkCalib::tok_ho_
edm::EDGetTokenT< HORecHitCollection > tok_ho_
Definition: ValidIsoTrkCalib.cc:88
ValidIsoTrkCalib::tok_track_
edm::EDGetTokenT< reco::IsolatedPixelTrackCandidateCollection > tok_track_
Definition: ValidIsoTrkCalib.cc:89
ValidIsoTrkCalib::tok_geom_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > tok_geom_
Definition: ValidIsoTrkCalib.cc:93
ValidIsoTrkCalib::tok_track1_
edm::EDGetTokenT< reco::TrackCollection > tok_track1_
Definition: ValidIsoTrkCalib.cc:90
ValidIsoTrkCalib::eCentHitAfter
float eCentHitAfter
Definition: ValidIsoTrkCalib.cc:156
ValidIsoTrkCalib::iso
int iso
Definition: ValidIsoTrkCalib.cc:109
ValidIsoTrkCalib::tok_genTrack_
edm::EDGetTokenT< reco::TrackCollection > tok_genTrack_
Definition: ValidIsoTrkCalib.cc:86
ValidIsoTrkCalib::eBeforeDepth1
float eBeforeDepth1
Definition: ValidIsoTrkCalib.cc:151
ValidIsoTrkCalib::ptNear
float ptNear
Definition: ValidIsoTrkCalib.cc:118
TFileService::make
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
ValidIsoTrkCalib::eClustBefore
float eClustBefore
Definition: ValidIsoTrkCalib.cc:142
photonIsolationHIProducer_cfi.hbhe
hbhe
Definition: photonIsolationHIProducer_cfi.py:8
TrackDetMatchInfo
Definition: TrackDetMatchInfo.h:13
TrackAssociatorParameters::useHcal
bool useHcal
Definition: TrackAssociatorParameters.h:79
ValidIsoTrkCalib::energyMinIso
double energyMinIso
Definition: ValidIsoTrkCalib.cc:124
ValidIsoTrkCalib::dietatr
int dietatr
Definition: ValidIsoTrkCalib.cc:163
ValidIsoTrkCalib::fTree
TTree * fTree
Definition: ValidIsoTrkCalib.cc:131
ValidIsoTrkCalib::takeGenTracks_
bool takeGenTracks_
Definition: ValidIsoTrkCalib.cc:107
ValidIsoTrkCalib::energyECALmip
double energyECALmip
Definition: ValidIsoTrkCalib.cc:123
ValidIsoTrkCalib::isoEta
float isoEta[500]
Definition: ValidIsoTrkCalib.cc:111
ValidIsoTrkCalib::phiTrack
float phiTrack
Definition: ValidIsoTrkCalib.cc:146
TFileService::kSharedResource
static const std::string kSharedResource
Definition: TFileService.h:76
ValidIsoTrkCalib::diphitr
int diphitr
Definition: ValidIsoTrkCalib.cc:164
ValidIsoTrkCalib::tok_hbhe_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
Definition: ValidIsoTrkCalib.cc:87
ValidIsoTrkCalib::nTracks
TH1F * nTracks
Definition: ValidIsoTrkCalib.cc:181
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
ValidIsoTrkCalib::iTime
float iTime
Definition: ValidIsoTrkCalib.cc:166
TrackAssociatorParameters::bFieldToken
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > bFieldToken
Definition: TrackAssociatorParameters.h:130
ValidIsoTrkCalib::etaTrack
float etaTrack
Definition: ValidIsoTrkCalib.cc:145
edm::EDConsumerBase::esConsumes
auto esConsumes()
Definition: EDConsumerBase.h:206
isolatedTracks_cfi.generalTracks
generalTracks
Definition: isolatedTracks_cfi.py:31
cms::Exception
Definition: Exception.h:70
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
TrackDetectorAssociator::associate
TrackDetMatchInfo associate(const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const AssociatorParameters &)
Definition: TrackDetectorAssociator.cc:110
ValidIsoTrkCalib::genPhi
float genPhi[500]
Definition: ValidIsoTrkCalib.cc:110
ValidIsoTrkCalib::iPhiTr
int iPhiTr
Definition: ValidIsoTrkCalib.cc:161
ValidIsoTrkCalib::respRecalib
const HcalRespCorrs * respRecalib
Definition: ValidIsoTrkCalib.cc:177
HcalGeometry
Definition: HcalGeometry.h:17
ValidIsoTrkCalib::yTrkHcal
Float_t yTrkHcal
Definition: ValidIsoTrkCalib.cc:138
ValidIsoTrkCalib::numValidTrkStrips
float numValidTrkStrips
Definition: ValidIsoTrkCalib.cc:175
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
TrackAssociatorParameters::useEcal
bool useEcal
Definition: TrackAssociatorParameters.h:78
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
HcalGeometry::getClosestCell
DetId getClosestCell(const GlobalPoint &r) const override
Definition: HcalGeometry.cc:107
MaxHit_struct::depthhit
int depthhit
Definition: CommonUsefulStuff.h:45