96 std::cout <<
"Parameters read from config file \n"
97 <<
"myverbose_ " << myverbose_ <<
"\n"
98 <<
"useJetTrigger_ " << useJetTrigger_ <<
"\n"
99 <<
"drLeadJetVeto_ " << drLeadJetVeto_ <<
"\n"
100 <<
"minTrackP_ " << minTrackP_ <<
"\n"
114 unsigned int irun = (
unsigned int)iEvent.
id().
run();
116 unsigned int ievt = (
unsigned int)iEvent.
id().
event();
130 l1extra::L1JetParticleCollection::const_iterator itr;
131 for(itr = l1TauHandle->begin(); itr != l1TauHandle->end(); ++itr )
141 for( itr = l1CenJetHandle->begin(); itr != l1CenJetHandle->end(); ++itr )
151 for( itr = l1FwdJetHandle->begin(); itr != l1FwdJetHandle->end(); ++itr )
219 reco::TrackCollection::const_iterator trkItr;
221 std::cout <<
"Track Collection: " << std::endl;
222 std::cout <<
"Number of Tracks " << trkCollection->size() << std::endl;
231 edm::SimTrackContainer::const_iterator simTrkItr;
257 std::vector<int> v_hlTriggers;
260 int hltL1Jet15 (-99);
267 int hltL1SingleEG5 (-99);
268 int hltZeroBias (-99);
269 int hltMinBiasHcal (-99);
270 int hltMinBiasEcal (-99);
271 int hltMinBiasPixel (-99);
272 int hltSingleIsoTau30_Trk5 (-99);
273 int hltDoubleLooseIsoTau15_Trk5(-99);
275 if (triggerResults.
isValid()) {
281 for (
unsigned int i=0;
i<triggerResults->size();
i++){
283 if (triggerNames.
triggerName(
i) ==
"HLT_IsoTrackHE_1E31") hltHE = triggerResults->accept(
i);
284 if (triggerNames.
triggerName(
i) ==
"HLT_IsoTrackHB_1E31") hltHB = triggerResults->accept(
i);
285 if (triggerNames.
triggerName(
i) ==
"HLT_L1Jet15" ) hltL1Jet15 = triggerResults->accept(
i);
286 if (triggerNames.
triggerName(
i) ==
"HLT_Jet30" ) hltJet30 = triggerResults->accept(
i);
287 if (triggerNames.
triggerName(
i) ==
"HLT_Jet50" ) hltJet50 = triggerResults->accept(
i);
288 if (triggerNames.
triggerName(
i) ==
"HLT_Jet80" ) hltJet80 = triggerResults->accept(
i);
289 if (triggerNames.
triggerName(
i) ==
"HLT_Jet110" ) hltJet110 = triggerResults->accept(
i);
290 if (triggerNames.
triggerName(
i) ==
"HLT_Jet140" ) hltJet140 = triggerResults->accept(
i);
291 if (triggerNames.
triggerName(
i) ==
"HLT_Jet180" ) hltJet180 = triggerResults->accept(
i);
292 if (triggerNames.
triggerName(
i) ==
"HLT_L1SingleEG5" ) hltL1SingleEG5 = triggerResults->accept(
i);
293 if (triggerNames.
triggerName(
i) ==
"HLT_ZeroBias" ) hltZeroBias = triggerResults->accept(
i);
294 if (triggerNames.
triggerName(
i) ==
"HLT_MinBiasHcal" ) hltMinBiasHcal = triggerResults->accept(
i);
295 if (triggerNames.
triggerName(
i) ==
"HLT_MinBiasEcal" ) hltMinBiasEcal = triggerResults->accept(
i);
296 if (triggerNames.
triggerName(
i) ==
"HLT_MinBiasPixel" ) hltMinBiasPixel = triggerResults->accept(
i);
297 if (triggerNames.
triggerName(
i) ==
"HLT_SingleIsoTau30_Trk5" ) hltSingleIsoTau30_Trk5 = triggerResults->accept(
i);
298 if (triggerNames.
triggerName(
i) ==
"HLT_DoubleLooseIsoTau15_Trk5" ) hltDoubleLooseIsoTau15_Trk5 = triggerResults->accept(
i);
320 for( trkItr = trkCollection->begin();
321 trkItr != trkCollection->end(); ++trkItr)
332 bool trkQual = pTrack->
quality(trackQuality_);
336 double eta1 = pTrack->
momentum().eta();
337 double phi1 = pTrack->
momentum().phi();
338 double pt1 = pTrack->
pt();
339 double p1 = pTrack->
p();
357 if( !goodEta || !goodPt || !trkQual )
continue;
397 int nOuterHits = hitp.stripTOBLayersWithMeasurement() +
398 hitp.stripTECLayersWithMeasurement();
403 edm::SimTrackContainer::const_iterator matchedSimTrk =
405 simP = matchedSimTrk->momentum().P();
422 std::cout <<
"Track doesn't reach Ecal." << std::endl;
436 double drFromLeadJet = 999.0;
440 drFromLeadJet =
sqrt(dphi*dphi + deta*deta);
449 const int a_size = 7;
450 double a_coneR[a_size];
451 double a_charIsoR[a_size];
452 double a_neutIsoR[a_size];
462 for (
int i=0;
i<a_size;
i++){
463 a_charIsoR[
i] = a_coneR[
i]+28.9;
464 a_neutIsoR[
i] = a_charIsoR[
i]*0.726;
473 double trkEcalEne =-999.0;
479 e3x3 =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology, sevlv.
product(),1,1).
first;
480 trkEcalEne =
spr::eCaloSimInfo(iEvent, geo, pcaloeb, pcaloee, SimTk, SimVtx, pTrack, *associate);
483 e3x3 =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology, sevlv.
product(),1,1).
first;
484 trkEcalEne =
spr::eCaloSimInfo(iEvent, geo, pcaloeb, pcaloee, SimTk, SimVtx, pTrack, *associate);
490 const int a_mip_size = 5;
491 double a_mipR[a_mip_size];
498 std::vector<double> v_eDR;
499 for (
int i = 0 ;
i < a_size ;
i++){
508 trackMomAtEcal, nRH_eDR);
509 v_eDR.push_back(eDR);
513 std::vector<double> v_eMipDR;
514 for (
int i = 0 ;
i < a_mip_size ;
i++){
519 a_mipR[
i], trackMomAtEcal, nRH_eMipDR);
521 v_eMipDR.push_back(eMipDR);
530 std::vector<double> v_hmaxNearP_goodTrk;
531 std::vector<double> v_hmaxNearP ;
532 std::vector<int> v_hnNearTRKs ;
533 std::vector<int> v_hnLayers_maxNearP;
534 std::vector<int> v_htrkQual_maxNearP;
536 std::vector<double> v_cone_hmaxNearP_goodTrk;
537 std::vector<double> v_cone_hmaxNearP ;
538 std::vector<int> v_cone_hnNearTRKs ;
539 std::vector<int> v_cone_hnLayers_maxNearP;
540 std::vector<int> v_cone_htrkQual_maxNearP;
542 for (
int i = 0 ;
i < a_size ;
i++){
544 double hmaxNearP = -999.0;
546 int hnLayers_maxNearP = 0;
547 int htrkQual_maxNearP = -1;
548 double hmaxNearP_goodTrk = -999.0;
550 double conehmaxNearP = -999.0;
551 int conehnNearTRKs = 0;
552 int conehnLayers_maxNearP = 0;
553 int conehtrkQual_maxNearP = -1;
554 double conehmaxNearP_goodTrk = -999.0;
557 trkItr, trkCollection,
559 theTrackQuality, conehnNearTRKs,
560 conehnLayers_maxNearP,
561 conehtrkQual_maxNearP,
562 conehmaxNearP_goodTrk,
563 hpoint1, trackMomAtHcal,
566 v_hmaxNearP_goodTrk.push_back(hmaxNearP_goodTrk);
567 v_hmaxNearP .push_back(hmaxNearP );
568 v_hnNearTRKs .push_back(hnNearTRKs );
569 v_hnLayers_maxNearP.push_back(hnLayers_maxNearP);
570 v_htrkQual_maxNearP.push_back(htrkQual_maxNearP);
572 v_cone_hmaxNearP_goodTrk.push_back(conehmaxNearP_goodTrk);
573 v_cone_hmaxNearP .push_back(conehmaxNearP );
574 v_cone_hnNearTRKs .push_back(conehnNearTRKs );
575 v_cone_hnLayers_maxNearP.push_back(conehnLayers_maxNearP);
576 v_cone_htrkQual_maxNearP.push_back(conehtrkQual_maxNearP);
580 double h3x3=-999.0, h5x5=-999.0;
581 double hsim3x3=-999.0, hsim5x5=-999.0, trkHcalEne=-999.0;
582 std::map<std::string, double> hsimInfo3x3, hsimInfo5x5;
583 double distFromHotCell_h3x3 = -99.;
584 int ietaFromHotCell_h3x3 = -99;
585 int iphiFromHotCell_h3x3 = -99;
586 double distFromHotCell_h5x5 = -99.;
587 int ietaFromHotCell_h5x5 = -99;
588 int iphiFromHotCell_h5x5 = -99;
593 int nRH_h3x3(0), nRH_h5x5(0);
608 std::vector<int> v_RH_h3x3_ieta;
609 std::vector<int> v_RH_h3x3_iphi;
610 std::vector<double> v_RH_h3x3_ene;
611 std::vector<int> v_RH_h5x5_ieta;
612 std::vector<int> v_RH_h5x5_iphi;
613 std::vector<double> v_RH_h5x5_ene;
617 nRH_h3x3, v_RH_h3x3_ieta, v_RH_h3x3_iphi, v_RH_h3x3_ene,
622 nRH_h5x5, v_RH_h5x5_ieta, v_RH_h5x5_iphi, v_RH_h5x5_ene,
629 std::vector<int> multiplicity3x3;
630 std::vector<int> multiplicity5x5;
637 hsimInfo3x3 =
spr::eHCALSimInfo(iEvent, theHBHETopology, ClosestCell, pcalohh, SimTk, SimVtx, pTrack, *associate, 1,1, multiplicity3x3);
638 hsimInfo5x5 =
spr::eHCALSimInfo(iEvent, theHBHETopology, ClosestCell, pcalohh, SimTk, SimVtx, pTrack, *associate, 2,2, multiplicity5x5);
641 trkHcalEne =
spr::eCaloSimInfo(iEvent, geo, pcalohh, SimTk, SimVtx, pTrack, *associate);
645 std::vector<double> v_hsimInfoConeMatched;
646 std::vector<double> v_hsimInfoConeRest ;
647 std::vector<double> v_hsimInfoConePhoton ;
648 std::vector<double> v_hsimInfoConeNeutHad;
649 std::vector<double> v_hsimInfoConeCharHad;
650 std::vector<double> v_hsimInfoConePdgMatched;
651 std::vector<double> v_hsimInfoConeTotal ;
653 std::vector<int> v_hsimInfoConeNMatched;
654 std::vector<int> v_hsimInfoConeNTotal ;
655 std::vector<int> v_hsimInfoConeNNeutHad;
656 std::vector<int> v_hsimInfoConeNCharHad;
657 std::vector<int> v_hsimInfoConeNPhoton ;
658 std::vector<int> v_hsimInfoConeNRest ;
660 std::vector<double> v_hsimCone ;
661 std::vector<double> v_hCone ;
663 std::vector<int> v_nRecHitsCone ;
664 std::vector<int> v_nSimHitsCone ;
666 std::vector<double> v_distFromHotCell;
667 std::vector<int> v_ietaFromHotCell;
668 std::vector<int> v_iphiFromHotCell;
672 std::vector<int> v_RH_r26_ieta;
673 std::vector<int> v_RH_r26_iphi;
674 std::vector<double> v_RH_r26_ene;
675 std::vector<int> v_RH_r44_ieta;
676 std::vector<int> v_RH_r44_iphi;
677 std::vector<double> v_RH_r44_ene;
681 for (
int i = 0 ;
i < a_size ;
i++){
684 std::map<std::string, double> hsimInfoCone;
685 double hsimCone = -999.0, hCone = -999.0;
686 double distFromHotCell = -99.0;
687 int ietaFromHotCell = -99;
688 int iphiFromHotCell = -99;
689 int ietaHotCell = -99;
690 int iphiHotCell = -99;
691 int nRecHitsCone = -999;
692 int nSimHitsCone = -999;
694 std::vector<int> multiplicityCone;
695 std::vector<DetId> coneRecHitDetIds;
698 a_coneR[
i], trackMomAtHcal, nSimHitsCone);
702 bool makeHitmaps =
false;
703 if (a_coneR[i] == 26.23 && makeHitmaps)
707 a_coneR[i], trackMomAtHcal,nRecHitsCone,
708 v_RH_r26_ieta, v_RH_r26_iphi, v_RH_r26_ene,
709 coneRecHitDetIds, distFromHotCell,
710 ietaHotCell, iphiHotCell, gposHotCell);
712 else if (a_coneR[i] == 43.72 && makeHitmaps)
716 a_coneR[i], trackMomAtHcal,nRecHitsCone,
717 v_RH_r44_ieta, v_RH_r44_iphi, v_RH_r44_ene,
718 coneRecHitDetIds, distFromHotCell,
719 ietaHotCell, iphiHotCell, gposHotCell);
725 a_coneR[i], trackMomAtHcal, nRecHitsCone,
726 coneRecHitDetIds, distFromHotCell,
727 ietaHotCell, iphiHotCell, gposHotCell);
732 if (ietaHotCell != 99){
733 ietaFromHotCell = ietaHotCell-ClosestCell_HcalDetId.ieta();
734 iphiFromHotCell = iphiHotCell-ClosestCell_HcalDetId.iphi();
739 hsimInfoCone = spr::eHCALSimInfoCone(iEvent,pcalohh, SimTk, SimVtx, pTrack, *associate, geo, hpoint1, point1, a_coneR[i], trackMomAtHcal, multiplicityCone);
751 v_hsimInfoConeMatched .push_back(hsimInfoCone[
"eMatched" ]);
752 v_hsimInfoConeRest .push_back(hsimInfoCone[
"eRest" ]);
753 v_hsimInfoConePhoton .push_back(hsimInfoCone[
"eGamma" ]);
754 v_hsimInfoConeNeutHad .push_back(hsimInfoCone[
"eNeutralHad"]);
755 v_hsimInfoConeCharHad .push_back(hsimInfoCone[
"eChargedHad"]);
756 v_hsimInfoConePdgMatched.push_back(hsimInfoCone[
"pdgMatched" ]);
757 v_hsimInfoConeTotal .push_back(hsimInfoCone[
"eTotal" ]);
759 v_hsimInfoConeNMatched .push_back(multiplicityCone.at(0));
761 v_hsimInfoConeNTotal .push_back(multiplicityCone.at(1));
762 v_hsimInfoConeNNeutHad .push_back(multiplicityCone.at(2));
763 v_hsimInfoConeNCharHad .push_back(multiplicityCone.at(3));
764 v_hsimInfoConeNPhoton .push_back(multiplicityCone.at(4));
765 v_hsimInfoConeNRest .push_back(multiplicityCone.at(5));
767 v_hsimCone .push_back(hsimCone );
768 v_nSimHitsCone .push_back(nSimHitsCone );
770 v_hCone .push_back(hCone );
771 v_nRecHitsCone .push_back(nRecHitsCone );
773 v_distFromHotCell .push_back(distFromHotCell );
774 v_ietaFromHotCell .push_back(ietaFromHotCell );
775 v_iphiFromHotCell .push_back(iphiFromHotCell );
806 t_e3x3 ->push_back(e3x3 );
810 t_h3x3 ->push_back(h3x3 );
811 t_h5x5 ->push_back(h5x5 );
823 t_simP ->push_back(simP );
949 double tempgen_TH[22] = { 0.0, 1.0, 2.0, 3.0, 4.0,
950 5.0, 6.0, 7.0, 8.0, 9.0,
951 10.0, 12.0, 15.0, 20.0, 25.0,
952 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 100};
956 double tempgen_Eta[5] = {0.0, 0.5, 1.1, 1.7, 2.0};
975 t_trkP =
new std::vector<double>();
976 t_trkPt =
new std::vector<double>();
977 t_trkEta =
new std::vector<double>();
978 t_trkPhi =
new std::vector<double>();
980 t_e3x3 =
new std::vector<double>();
981 t_v_eDR =
new std::vector<std::vector<double> >();
982 t_v_eMipDR =
new std::vector<std::vector<double> >();
984 t_h3x3 =
new std::vector<double>();
985 t_h5x5 =
new std::vector<double>();
991 t_simP =
new std::vector<double>();
1051 t_v_hsimCone =
new std::vector<std::vector<double> >();
1054 t_v_hCone =
new std::vector<std::vector<double> >();
1078 t_hltHE =
new std::vector<int>();
1079 t_hltHB =
new std::vector<int>();
1096 t_irun =
new std::vector<unsigned int>();
1097 t_ievt =
new std::vector<unsigned int>();
1098 t_ilum =
new std::vector<unsigned int>();
1246 std::cout <<
"Number of Events Processed " <<
nEVT <<
" failed L1 "
1255 hRawPt =
fs->
make<TH1F>(
"hRawPt ",
"hRawPt ", 100, 0.0, 100.0);
1256 hRawP =
fs->
make<TH1F>(
"hRawP ",
"hRawP ", 100, 0.0, 100.0);
1257 hRawEta =
fs->
make<TH1F>(
"hRawEta",
"hRawEta", 15, 0.0, 3.0);
1258 hRawPhi =
fs->
make<TH1F>(
"hRawPhi",
"hRawPhi", 100, -3.2, 3.2);
1264 ntp->Branch(
"nEVT" , &
nEVT ,
"nEVT/I" );
1268 ntp->Branch(
"nTRK", &
nTRK,
"nTRK/I");
1269 ntp->Branch(
"nRawTRK" , &
nRawTRK ,
"nRawTRK/I" );
1271 ntp->Branch(
"nFailPt" , &
nFailPt ,
"nFailPt/I" );
1272 ntp->Branch(
"nFailEta" , &
nFailEta ,
"nFailEta/I" );
1292 ntp->Branch(
"trkP" ,
"vector<double>", &
t_trkP );
1293 ntp->Branch(
"trkPt" ,
"vector<double>", &
t_trkPt );
1294 ntp->Branch(
"trkEta" ,
"vector<double>", &
t_trkEta );
1295 ntp->Branch(
"trkPhi" ,
"vector<double>", &
t_trkPhi );
1296 ntp->Branch(
"e3x3" ,
"vector<double>", &
t_e3x3 );
1298 ntp->Branch(
"e3x3" ,
"vector<double>" , &
t_e3x3 );
1299 ntp->Branch(
"v_eDR" ,
"vector<vector<double> >", &
t_v_eDR);
1300 ntp->Branch(
"v_eMipDR" ,
"vector<vector<double> >", &
t_v_eMipDR);
1302 ntp->Branch(
"h3x3" ,
"vector<double>", &
t_h3x3 );
1303 ntp->Branch(
"h5x5" ,
"vector<double>", &
t_h5x5 );
1308 ntp->Branch(
"simP" ,
"vector<double>", &
t_simP );
1309 ntp->Branch(
"hsim3x3" ,
"vector<double>", &
t_hsim3x3 );
1310 ntp->Branch(
"hsim5x5" ,
"vector<double>", &
t_hsim5x5 );
1371 ntp->Branch(
"v_hCone" ,
"vector<vector<double> >",&
t_v_hCone );
1393 ntp->Branch(
"v_hltHB" ,
"vector<int>",&
t_hltHB);
1394 ntp->Branch(
"v_hltHE" ,
"vector<int>",&
t_hltHE);
1410 ntp->Branch(
"irun" ,
"vector<unsigned int>", &
t_irun);
1411 ntp->Branch(
"ievt" ,
"vector<unsigned int>", &
t_ievt);
1412 ntp->Branch(
"ilum" ,
"vector<unsigned int>", &
t_ilum);
1423 <<
" TrackMmentum " << pTrack->
momentum()
1424 <<
" (pt,eta,phi)(" << pTrack->
pt()<<
","<<pTrack->
eta()<<
","<<pTrack->
phi()<<
")"
1425 <<
" p " << pTrack->
p() <<
"\n"
1428 <<
" d0 " << pTrack->
d0() <<
"\n"
1430 <<
" TrackQuality " << pTrack->
qualityName(trackQuality_) <<
" " << pTrack->
quality(trackQuality_)
1445 double pi = 3.141592654;
1446 double twopi = 6.283185307;
1450 if (diff < pi){
return diff;}
else {
return corr;}
1455 double eta2,
double phi2) {
1456 double deta = eta1 - eta2;
1457 double dphi =
DeltaPhi(phi1, phi2);
1458 return std::sqrt(deta*deta + dphi*dphi);
std::vector< int > * t_hsim5x5NTotal
edm::EDGetTokenT< l1extra::L1JetParticleCollection > tok_L1extFwdJet_
std::vector< std::vector< double > > * t_v_distFromHotCell
double qoverp() const
q / p
std::vector< double > * t_hsim5x5CharHad
double p() const
momentum vector magnitude
T getParameter(std::string const &) const
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
EventNumber_t event() const
std::vector< std::vector< double > > * t_v_hmaxNearP_goodTrk
T getUntrackedParameter(std::string const &, T const &) const
std::vector< std::vector< int > > * t_v_hlTriggers
const Point & referencePoint() const
Reference point on the track.
std::vector< double > * t_trkEcalEne
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
std::vector< std::vector< double > > * t_v_hsimCone
TrackAssociatorParameters parameters_
static std::string qualityName(TrackQuality)
std::vector< int > * t_hltJet30
edm::EDGetTokenT< edm::SimTrackContainer > tok_simTk_
std::vector< double > * t_trkPt
std::vector< int > * t_ietaFromHotCell_h5x5
void eCaloSimInfo(std::vector< DetId > vdets, const CaloGeometry *geo, edm::Handle< T > &hitsEB, edm::Handle< T > &hitsEE, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, edm::SimTrackContainer::const_iterator trkInfo, caloSimInfo &info, double timeCut=150, bool debug=false)
std::vector< double > * t_nRH_h3x3
std::vector< double > * t_distFromHotCell_h3x3
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
std::vector< std::vector< int > > * t_v_hsimInfoConeNCharHad
std::vector< int > * t_hsim5x5NNeutHad
edm::EDGetTokenT< EcalRecHitCollection > tok_EE_
std::vector< double > * t_hsim5x5Photon
double d0() const
dxy parameter in perigee convention (d0 = -dxy)
double getDistInPlaneTrackDir(const GlobalPoint &caloPoint, const GlobalVector &caloVector, const GlobalPoint &rechitPoint)
std::vector< int > * t_hltMinBiasHcal
std::vector< std::vector< double > > * t_v_cone_hmaxNearP_goodTrk
std::vector< double > * t_hsim3x3CharHad
std::vector< int > * t_hsim5x5NPhoton
std::vector< std::vector< double > > * t_v_RH_r44_ene
std::map< std::string, double > eHCALSimInfo(const edm::Event &, const HcalTopology *topology, const DetId &det, const CaloGeometry *geo, edm::Handle< T > &hits, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, const reco::Track *pTrack, TrackerHitAssociator &associate, int ieta, int iphi, double timeCut=150, bool includeHO=false, bool debug=false)
std::vector< int > * t_iphiFromHotCell_h3x3
double normalizedChi2() const
chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)
std::vector< std::vector< int > > * t_v_cone_hnLayers_maxNearP
std::vector< double > * t_hsim5x5PdgMatched
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< double > * t_hsim3x3NeutHad
std::vector< double > * t_nRH_h5x5
TrackQuality
track quality
#define DEFINE_FWK_MODULE(type)
static FreeTrajectoryState getFreeTrajectoryState(const edm::EventSetup &, const reco::Track &)
get FreeTrajectoryState from different track representations
std::vector< std::vector< int > > * t_v_hnLayers_maxNearP
std::vector< int > * t_hltHB
edm::EDGetTokenT< edm::TriggerResults > tok_trigger_
std::vector< std::vector< double > > * t_v_hmaxNearP
std::vector< std::vector< double > > * t_v_RH_h3x3_ene
void useDefaultPropagator()
use the default propagator
edm::EDGetTokenT< reco::TrackCollection > tok_genTrack_
std::vector< int > * t_hsim5x5NCharHad
void loadParameters(const edm::ParameterSet &, edm::ConsumesCollector &)
std::vector< std::vector< int > > * t_v_hsimInfoConeNNeutHad
std::vector< std::vector< int > > * t_v_nRecHitsCone
double phi() const
azimuthal angle of momentum vector
std::vector< std::vector< int > > * t_v_hsimInfoConeNMatched
unsigned short numberOfLostHits() const
number of cases where track crossed a layer without getting a hit.
T * make(const Args &...args) const
make new ROOT object
std::vector< double > * t_trkP
std::vector< int > * t_hltL1SingleEG5
std::vector< int > * t_hsim5x5NRest
std::vector< double > * t_hsim5x5NeutHad
std::vector< int > * t_hltJet50
const Vector & momentum() const
track momentum vector
std::vector< std::vector< double > > * t_v_cone_hmaxNearP
std::vector< double > * t_simP
std::vector< int > * t_hsim3x3NCharHad
std::vector< std::vector< int > > * t_v_iphiFromHotCell
std::vector< std::vector< int > > * t_v_hnNearTRKs
std::vector< std::vector< int > > * t_v_cone_htrkQual_maxNearP
math::XYZPoint trkGlobPosAtHcal
std::vector< std::vector< double > > * t_v_RH_r26_ene
LuminosityBlockNumber_t luminosityBlock() const
uint32_t rawId() const
get the raw id
std::vector< int > * t_hltDoubleLooseIsoTau15_Trk5
double eHCALmatrix(const HcalTopology *topology, const DetId &det, edm::Handle< T > &hits, int ieta, int iphi, bool includeHO=false, bool algoNew=true, double hbThr=-100, double heThr=-100, double hfThr=-100, double hoThr=-100, double tMin=-500, double tMax=500, bool debug=false)
void printHitPattern(HitCategory category, int position, std::ostream &stream) const
edm::EDGetTokenT< l1extra::L1JetParticleCollection > tok_L1extTauJet_
std::vector< int > * t_hltJet140
double eCone_hcal(const CaloGeometry *geo, edm::Handle< T > &hits, const GlobalPoint &hpoint1, const GlobalPoint &point1, double dR, const GlobalVector &trackMom, int &nRecHits, double hbThr=-100, double heThr=-100, double hfThr=-100, double hoThr=-100, double tMin=-500, double tMax=500, int detOnly=-1)
double eta() const
pseudorapidity of momentum vector
std::vector< int > * t_hltMinBiasPixel
std::vector< double > * t_trkPhi
std::vector< double > * t_hsim3x3Total
edm::EDGetTokenT< edm::PCaloHitContainer > tok_caloEB_
std::vector< int > * t_hltHE
int trackerLayersWithMeasurement() const
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::vector< std::vector< int > > * t_v_RH_h3x3_iphi
std::vector< int > * t_iphiFromHotCell_h5x5
std::vector< std::vector< double > > * t_v_hsimInfoConePdgMatched
double pt() const
track transverse momentum
std::vector< std::vector< int > > * t_v_htrkQual_maxNearP
std::vector< int > * t_hltMinBiasEcal
std::vector< std::vector< int > > * t_v_RH_r44_iphi
std::vector< double > * t_hsim5x5Matched
std::vector< std::vector< double > > * t_v_hsimInfoConeTotal
Abs< T >::type abs(const T &t)
edm::EDGetTokenT< EcalRecHitCollection > tok_EB_
std::vector< std::vector< double > > * t_v_RH_h5x5_ene
double DeltaPhi(double v1, double v2)
std::vector< std::vector< int > > * t_v_hsimInfoConeNRest
LuminosityBlock const & getLuminosityBlock() const
edm::SimTrackContainer::const_iterator matchedSimTrack(const edm::Event &iEvent, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, const reco::Track *pTrack, TrackerHitAssociator &associate, bool debug=false)
unsigned short numberOfValidHits() const
number of valid hits found
std::vector< std::vector< double > > * t_v_hsimInfoConeCharHad
static std::string const triggerResults
std::vector< double > * t_hsim5x5Total
std::vector< double > * t_hsim3x3Photon
std::vector< double > * t_hsim3x3PdgMatched
std::vector< std::vector< int > > * t_v_ietaFromHotCell
std::vector< double > * t_hsim5x5Rest
std::vector< int > * t_hltJet110
std::vector< std::vector< double > > * t_v_eMipDR
std::vector< int > * t_hltL1Jet15
double qoverpError() const
error on signed transverse curvature
virtual DetId getClosestCell(const GlobalPoint &r) const
std::vector< int > * t_hsim3x3NRest
std::vector< std::vector< double > > * t_v_hsimInfoConeRest
std::vector< std::vector< int > > * t_v_hsimInfoConeNPhoton
std::vector< std::vector< int > > * t_v_RH_r26_ieta
std::vector< double > * t_dtFromLeadJet
std::vector< std::vector< int > > * t_v_RH_h5x5_ieta
std::vector< std::vector< int > > * t_v_RH_h3x3_ieta
std::vector< unsigned int > * t_ievt
std::vector< double > * t_trkNLayersCrossed
edm::EDGetTokenT< l1extra::L1JetParticleCollection > tok_L1extCenJet_
static TrackQuality qualityByName(const std::string &name)
std::vector< std::vector< double > > * t_v_hsimInfoConeNeutHad
std::vector< std::vector< int > > * t_v_nSimHitsCone
std::vector< int > * t_hltSingleIsoTau30_Trk5
std::vector< double > * t_hsim5x5
T const * product() const
GlobalVector trkMomAtEcal
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
std::string const & triggerName(unsigned int index) const
std::vector< std::vector< int > > * t_v_RH_h5x5_iphi
T const * product() const
IsolatedTracksCone(const edm::ParameterSet &)
std::vector< std::vector< int > > * t_v_hsimInfoConeNTotal
std::vector< double > * t_hsim3x3Matched
bool quality(const TrackQuality) const
Track quality.
std::vector< int > * t_hsim3x3NNeutHad
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::Service< TFileService > fs
GlobalVector trkMomAtHcal
edm::EDGetTokenT< edm::SimVertexContainer > tok_simVtx_
std::vector< int > * t_hltZeroBias
std::vector< double > * t_h5x5
std::vector< double > * t_trkNOuterHits
std::vector< std::vector< double > > * t_v_hCone
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)
std::vector< int > * t_hsim3x3NPhoton
std::vector< double > * t_hsim3x3Rest
std::vector< double > * t_hsim3x3
std::vector< int > * t_hsim3x3NMatched
std::vector< std::vector< int > > * t_v_RH_r44_ieta
std::vector< double > * t_trkHcalEne
std::vector< unsigned int > * t_irun
std::vector< int > * t_hltJet180
std::vector< int > * t_hsim3x3NTotal
TrackDetMatchInfo associate(const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const AssociatorParameters &)
void printTrack(const reco::Track *pTrack)
std::vector< int > * t_ietaFromHotCell_h3x3
math::XYZPoint trkGlobPosAtEcal
Track position at different parts of the calorimeter.
int charge() const
track electric charge
std::vector< double > * t_distFromHotCell_h5x5
edm::EDGetTokenT< edm::PCaloHitContainer > tok_caloHH_
std::vector< double > * t_e3x3
double DeltaR(double eta1, double phi1, double eta2, double phi2)
std::vector< double > * t_trkEta
std::vector< double > * t_h3x3
double coneChargeIsolation(const edm::Event &iEvent, const edm::EventSetup &iSetup, reco::TrackCollection::const_iterator trkItr, edm::Handle< reco::TrackCollection > trkCollection, TrackDetectorAssociator &associator, TrackAssociatorParameters ¶meters_, std::string theTrackQuality, int &nNearTRKs, int &nLayers_maxNearP, int &trkQual_maxNearP, double &maxNearP_goodTrk, const GlobalPoint &hpoint1, const GlobalVector &trackMom, double dR)
std::vector< std::vector< double > > * t_v_hsimInfoConePhoton
std::vector< unsigned int > * t_ilum
edm::EDGetTokenT< edm::PCaloHitContainer > tok_caloEE_
TrackDetectorAssociator * trackAssociator_
std::vector< int > * t_hltJet80
std::vector< std::vector< double > > * t_v_eDR
std::vector< std::vector< double > > * t_v_hsimInfoConeMatched
std::vector< std::vector< int > > * t_v_RH_r26_iphi
int numberOfHits(HitCategory category) const
std::vector< int > * t_hsim5x5NMatched
std::vector< std::vector< int > > * t_v_cone_hnNearTRKs
double eECALmatrix(const DetId &detId, edm::Handle< T > &hitsEB, edm::Handle< T > &hitsEE, const CaloGeometry *geo, const CaloTopology *caloTopology, int ieta, int iphi, double ebThr=-100, double eeThr=-100, double tMin=-500, double tMax=500, bool debug=false)