101 void fillTrack(
int,
double,
double,
double,
double);
103 void fillEnergy(
int,
int,
double,
double,
double,
double,
double);
170 : verbosity_(iConfig.getUntrackedParameter<
int>(
"verbosity")),
173 labelMuon_(iConfig.getUntrackedParameter<
edm::
InputTag>(
"labelMuon")),
174 labelGenTrack_(iConfig.getUntrackedParameter<
edm::
InputTag>(
"labelTrack")),
175 theTrackQuality_(iConfig.getUntrackedParameter<
std::
string>(
"trackQuality")),
176 minTrackP_(iConfig.getUntrackedParameter<double>(
"minTrackP")),
177 maxTrackEta_(iConfig.getUntrackedParameter<double>(
"maxTrackEta")),
178 tMinE_(iConfig.getUntrackedParameter<double>(
"timeMinCutECAL")),
179 tMaxE_(iConfig.getUntrackedParameter<double>(
"timeMaxCutECAL")),
180 tMinH_(iConfig.getUntrackedParameter<double>(
"timeMinCutHCAL")),
181 tMaxH_(iConfig.getUntrackedParameter<double>(
"timeMaxCutHCAL")),
182 eThrEB_(iConfig.getUntrackedParameter<double>(
"thresholdEB")),
183 eThrEE_(iConfig.getUntrackedParameter<double>(
"thresholdEE")),
184 eThrHB_(iConfig.getUntrackedParameter<double>(
"thresholdHB")),
185 eThrHE_(iConfig.getUntrackedParameter<double>(
"thresholdHE")),
186 isItAOD_(iConfig.getUntrackedParameter<
bool>(
"isItAOD")),
187 vetoTrigger_(iConfig.getUntrackedParameter<
bool>(
"vetoTrigger")),
188 doTree_(iConfig.getUntrackedParameter<
bool>(
"doTree")),
189 vetoMuon_(iConfig.getUntrackedParameter<
bool>(
"vetoMuon")),
190 vetoEcal_(iConfig.getUntrackedParameter<
bool>(
"vetoEcal")),
191 cutMuon_(iConfig.getUntrackedParameter<double>(
"cutMuon")),
192 cutEcal_(iConfig.getUntrackedParameter<double>(
"cutEcal")),
193 cutRatio_(iConfig.getUntrackedParameter<double>(
"cutRatio")),
194 puWeights_(iConfig.getUntrackedParameter<
std::
vector<double> >(
"puWeights")),
195 triggerEvent_(
edm::
InputTag(
"hltTriggerSummaryAOD",
"",
"HLT")),
196 theTriggerResultsLabel_(
edm::
InputTag(
"TriggerResults",
"",
"HLT")),
232 tok_geom_ = esConsumes<CaloGeometry, CaloGeometryRecord>();
234 tok_topo_ = esConsumes<HcalTopology, HcalRecNumberingRecord>();
235 tok_magField_ = esConsumes<MagneticField, IdealMagneticFieldRecord>();
237 tok_sevlv_ = esConsumes<EcalSeverityLevelAlgo, EcalSeverityLevelAlgoRcd>();
255 double pBins[
nPBin_ + 1] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 9.0, 11.0, 15.0, 20.0, 25.0, 30.0, 40.0, 60.0, 100.0};
257 int pvBins[
nPVBin_ + 1] = {1, 2, 3, 5, 100};
270 std::vector<std::string>
trig;
272 std::vector<std::string> newNames = {
"HLT",
"PixelTracks_Multiplicity",
"HLT_Physics_",
"HLT_JetE",
"HLT_ZeroBias"};
275 desc.addUntracked<
int>(
"verbosity", 0);
276 desc.addUntracked<std::vector<std::string> >(
"triggers",
trig);
277 desc.addUntracked<std::vector<std::string> >(
"newNames", newNames);
281 desc.addUntracked<
double>(
"minTrackPt", 1.0);
282 desc.addUntracked<
double>(
"maxDxyPV", 0.02);
283 desc.addUntracked<
double>(
"maxDzPV", 0.02);
284 desc.addUntracked<
double>(
"maxChi2", 5.0);
285 desc.addUntracked<
double>(
"maxDpOverP", 0.1);
286 desc.addUntracked<
int>(
"minOuterHit", 4);
287 desc.addUntracked<
int>(
"minLayerCrossed", 8);
288 desc.addUntracked<
int>(
"maxInMiss", 0);
289 desc.addUntracked<
int>(
"maxOutMiss", 0);
290 desc.addUntracked<
double>(
"minTrackP", 1.0);
291 desc.addUntracked<
double>(
"maxTrackEta", 2.6);
292 desc.addUntracked<
double>(
"timeMinCutECAL", -500.0);
293 desc.addUntracked<
double>(
"timeMaxCutECAL", 500.0);
294 desc.addUntracked<
double>(
"timeMinCutHCAL", -500.0);
295 desc.addUntracked<
double>(
"timeMaxCutHCAL", 500.0);
296 desc.addUntracked<
double>(
"thresholdEB", 0.030);
297 desc.addUntracked<
double>(
"thresholdEE", 0.150);
298 desc.addUntracked<
double>(
"thresholdHB", 0.7);
299 desc.addUntracked<
double>(
"thresholdHE", 0.8);
300 desc.addUntracked<
bool>(
"isItAOD",
false);
301 desc.addUntracked<
bool>(
"vetoTrigger",
false);
302 desc.addUntracked<
bool>(
"doTree",
false);
303 desc.addUntracked<
bool>(
"vetoMuon",
true);
304 desc.addUntracked<
double>(
"cutMuon", 0.1);
305 desc.addUntracked<
bool>(
"vetoEcal",
false);
306 desc.addUntracked<
double>(
"cutEcal", 2.0);
307 desc.addUntracked<
double>(
"cutRatio", 0.9);
308 desc.addUntracked<std::vector<double> >(
"puWeights",
weights);
309 descriptions.
add(
"studyCaloResponse",
desc);
314 int counter0[1000] = {0};
315 int counter1[1000] = {0};
316 int counter2[1000] = {0};
317 int counter3[1000] = {0};
318 int counter4[1000] = {0};
319 int counter5[1000] = {0};
320 int counter6[1000] = {0};
321 int counter7[1000] = {0};
323 edm::LogVerbatim(
"IsoTrack") <<
"Event starts====================================";
324 int RunNo =
iEvent.id().run();
325 int EvtNo =
iEvent.id().event();
327 int Bunch =
iEvent.bunchCrossing();
329 std::vector<int> newAccept(
newNames_.size() + 1, 0);
331 edm::LogVerbatim(
"IsoTrack") <<
"RunNo " << RunNo <<
" EvtNo " << EvtNo <<
" Lumi " <<
Lumi <<
" Bunch " << Bunch;
339 if (!triggerEventHandle.
isValid()) {
357 const std::vector<std::string>& triggerNames_ =
triggerNames.triggerNames();
358 for (
unsigned int iHLT = 0; iHLT <
triggerResults->size(); iHLT++) {
370 if (ipos <= h_HLTAccept->GetNbinsX())
371 h_HLTAccept->GetXaxis()->SetBinLabel(ipos, newtriggerName.c_str());
374 edm::LogVerbatim(
"IsoTrack") <<
"Wrong trigger " << RunNo <<
" Event " << EvtNo <<
" Hlt " << iHLT;
388 if (newtriggerName.find(
trigNames_[
i]) != std::string::npos) {
393 triggerUse = newtriggerName;
402 if (newtriggerName.find(
newNames_[
i]) != std::string::npos) {
411 int iflg(0), indx(1);
413 iflg += (indx * newAccept[
i]);
420 edm::LogVerbatim(
"IsoTrack") <<
"Trigger check gives " <<
ok <<
" with " << triggerUse;
433 edm::LogWarning(
"StudyCaloResponse") <<
"Track collection " << trkCollection.
isValid() <<
" Muon collection " 434 << muonEventHandle.
isValid() <<
" Vertex Collecttion " << recVtxs.
isValid();
448 int ntrk(0), ngoodPV(0),
nPV(-1), nvtxs(0);
449 nvtxs = (
int)(recVtxs->size());
450 for (
int ind = 0; ind < nvtxs; ind++) {
451 if (!((*recVtxs)[ind].isFake()) && (*recVtxs)[ind].ndof() > 4)
468 edm::LogVerbatim(
"IsoTrack") <<
"Number of vertices: " << nvtxs <<
" Good " << ngoodPV <<
" Bin " <<
nPV 475 int npbin =
h_goodPV->FindBin(ngoodPV);
476 if (npbin > 0 && npbin <= (
int)(
puWeights_.size()))
487 double pt1 =
p.momentum().Rho();
488 double p1 =
p.momentum().R();
489 double eta1 =
p.momentum().Eta();
490 double phi1 =
p.momentum().Phi();
500 double phi0 = trk.phi();
503 double dPhi = phi0 - phi2;
520 reco::TrackCollection::const_iterator trkItr;
521 for (trkItr = trkCollection->begin(); trkItr != trkCollection->end(); ++trkItr, ++ntrk) {
523 double pt1 = pTrack->
pt();
524 double p1 = pTrack->
p();
526 double phi1 = pTrack->
momentum().phi();
533 ++counter0[(
int)(
p1)];
538 std::vector<spr::propagatedTrackID> trkCaloDets;
540 std::vector<spr::propagatedTrackID>::const_iterator trkDetItr;
541 for (trkDetItr = trkCaloDets.begin(), ntrk = 0; trkDetItr != trkCaloDets.end(); trkDetItr++, ntrk++) {
542 const reco::Track* pTrack = &(*(trkDetItr->trkItr));
543 double pt1 = pTrack->
pt();
544 double p1 = pTrack->
p();
546 double phi1 = pTrack->
momentum().phi();
549 <<
" okEcal " << trkDetItr->okECAL;
552 bool vetoMuon(
false);
553 double chiGlobal(0),
dr(0);
554 bool goodGlob(
false);
556 if (muonEventHandle.
isValid()) {
557 for (reco::MuonCollection::const_iterator recMuon = muonEventHandle->begin();
558 recMuon != muonEventHandle->end();
560 if (((recMuon->isPFMuon()) && (recMuon->isGlobalMuon() || recMuon->isTrackerMuon())) &&
561 (recMuon->innerTrack()->validFraction() > 0.49) && (recMuon->innerTrack().isNonnull())) {
562 chiGlobal = ((recMuon->globalTrack().isNonnull()) ? recMuon->globalTrack()->normalizedChi2() : 999);
563 goodGlob = (recMuon->isGlobalMuon() && chiGlobal < 3 &&
564 recMuon->combinedQuality().chi2LocalPosition < 12 && recMuon->combinedQuality().trkKink < 20);
566 const reco::Track* pTrack0 = (recMuon->innerTrack()).
get();
579 <<
":" << goodGlob <<
":" <<
dr;
582 double maxNearP31x31 =
592 std::pair<double, bool> e7x7P, e11x11P, e15x15P;
593 const DetId isoCell = trkDetItr->detIdECAL;
637 double maxNearHcalP7x7 =
640 double h3x3(0), h5x5(0), h7x7(0);
641 fillIsolation(0, maxNearP31x31, e11x11P.first, e15x15P.first);
643 edm::LogVerbatim(
"IsoTrack") <<
"Accepted Tracks reaching Ecal maxNearP31x31 " << maxNearP31x31 <<
" e11x11P " 644 << e11x11P.first <<
" e15x15P " << e15x15P.first <<
" okHCAL " 645 << trkDetItr->okHCAL;
648 if (trkDetItr->okHCAL) {
651 const DetId ClosestCell(trkDetItr->detIdHCAL);
696 double eByh = ((e11x11P.second) ? (e11x11P.first /
std::max(h3x3, 0.001)) : 0.0);
699 edm::LogVerbatim(
"IsoTrack") <<
"Tracks Reaching Hcal maxNearHcalP7x7/h5x5/h7x7 " << maxNearHcalP7x7 <<
"/" 700 << h5x5 <<
"/" << h7x7 <<
" eByh " << eByh <<
" notAnElec " << notAnElec;
719 if (maxNearP31x31 < 0 && notAnElec) {
722 if (maxNearHcalP7x7 < 0) {
725 if ((e11x11P.second) && (e15x15P.second) && (e15x15P.first - e11x11P.first) < 2.0) {
728 if (h7x7 - h5x5 < 2.0) {
741 ++counter7[(
int)(
p1)];
746 ++counter6[(
int)(
p1)];
751 ++counter5[(
int)(
p1)];
756 ++counter4[(
int)(
p1)];
761 ++counter3[(
int)(
p1)];
766 ++counter2[(
int)(
p1)];
771 ++counter1[(
int)(
p1)];
777 for (
int i = 0;
i < 1000; ++
i) {
801 h_nHLT =
fs_->
make<TH1I>(
"h_nHLT",
"size of trigger Names", 1000, 0, 1000);
802 h_HLTAccept =
fs_->
make<TH1I>(
"h_HLTAccept",
"HLT Accepts for all runs", 500, 0, 500);
803 for (
int i = 1;
i <= 500; ++
i)
805 h_nHLTvsRN =
fs_->
make<TH2I>(
"h_nHLTvsRN",
"size of trigger Names vs RunNo", 2168, 190949, 193116, 100, 400, 500);
806 h_HLTCorr =
fs_->
make<TH1I>(
"h_HLTCorr",
"Correlation among different paths", 100, 0, 100);
807 h_numberPV =
fs_->
make<TH1I>(
"h_numberPV",
"Number of Primary Vertex", 100, 0, 100);
808 h_goodPV =
fs_->
make<TH1I>(
"h_goodPV",
"Number of good Primary Vertex", 100, 0, 100);
809 h_goodRun =
fs_->
make<TH1I>(
"h_goodRun",
"Number of accepted events for Run", 4000, 190000, 1940000);
810 char hname[60], htit[200];
811 std::string CollectionNames[2] = {
"Reco",
"Propagated"};
812 for (
unsigned int i = 0;
i < 2;
i++) {
813 sprintf(hname,
"h_nTrk_%s", CollectionNames[
i].c_str());
814 sprintf(htit,
"Number of %s tracks", CollectionNames[
i].c_str());
818 "All",
"Quality",
"NoIso",
"okEcal",
"EcalCharIso",
"HcalCharIso",
"EcalNeutIso",
"HcalNeutIso"};
819 std::string particle[4] = {
"Electron",
"Pion",
"Kaon",
"Proton"};
820 for (
unsigned int i = 0;
i <=
nGen_ + 1;
i++) {
822 sprintf(hname,
"h_pt_%s", TrkNames[
i].c_str());
823 sprintf(htit,
"p_{T} of %s tracks", TrkNames[
i].c_str());
825 sprintf(hname,
"h_pt_%s_%d", TrkNames[7].c_str(),
i - 8);
826 sprintf(htit,
"p_{T} of %s tracks (PV=%d:%d)", TrkNames[7].c_str(),
pvBin_[
i - 8],
pvBin_[
i - 7] - 1);
828 sprintf(hname,
"h_pt_%s_%d", TrkNames[0].c_str(),
i -
nGen_);
829 sprintf(htit,
"p_{T} of %s Generator tracks", TrkNames[0].c_str());
831 sprintf(hname,
"h_pt_%s_%s", TrkNames[7].c_str(), particle[
i - 8 -
nPVBin_].c_str());
832 sprintf(htit,
"p_{T} of %s tracks (%s)", TrkNames[7].c_str(), particle[
i - 8 -
nPVBin_].c_str());
838 sprintf(hname,
"h_p_%s", TrkNames[
i].c_str());
839 sprintf(htit,
"Momentum of %s tracks", TrkNames[
i].c_str());
841 sprintf(hname,
"h_p_%s_%d", TrkNames[7].c_str(),
i - 8);
842 sprintf(htit,
"Momentum of %s tracks (PV=%d:%d)", TrkNames[7].c_str(),
pvBin_[
i - 8],
pvBin_[
i - 7] - 1);
844 sprintf(hname,
"h_p_%s_%d", TrkNames[0].c_str(),
i -
nGen_);
845 sprintf(htit,
"Momentum of %s Generator tracks", TrkNames[0].c_str());
847 sprintf(hname,
"h_p_%s_%s", TrkNames[7].c_str(), particle[
i - 8 -
nPVBin_].c_str());
848 sprintf(htit,
"Momentum of %s tracks (%s)", TrkNames[7].c_str(), particle[
i - 8 -
nPVBin_].c_str());
850 h_p[
i] =
fs_->
make<TH1D>(hname, htit, 400, 0, 200.0);
854 sprintf(hname,
"h_eta_%s", TrkNames[
i].c_str());
855 sprintf(htit,
"Eta of %s tracks", TrkNames[
i].c_str());
857 sprintf(hname,
"h_eta_%s_%d", TrkNames[7].c_str(),
i - 8);
858 sprintf(htit,
"Eta of %s tracks (PV=%d:%d)", TrkNames[7].c_str(),
pvBin_[
i - 8],
pvBin_[
i - 7] - 1);
860 sprintf(hname,
"h_eta_%s_%d", TrkNames[0].c_str(),
i -
nGen_);
861 sprintf(htit,
"Eta of %s Generator tracks", TrkNames[0].c_str());
863 sprintf(hname,
"h_eta_%s_%s", TrkNames[7].c_str(), particle[
i - 8 -
nPVBin_].c_str());
864 sprintf(htit,
"Eta of %s tracks (%s)", TrkNames[7].c_str(), particle[
i - 8 -
nPVBin_].c_str());
870 sprintf(hname,
"h_phi_%s", TrkNames[
i].c_str());
871 sprintf(htit,
"Phi of %s tracks", TrkNames[
i].c_str());
873 sprintf(hname,
"h_phi_%s_%d", TrkNames[7].c_str(),
i - 8);
874 sprintf(htit,
"Phi of %s tracks (PV=%d:%d)", TrkNames[7].c_str(),
pvBin_[
i - 8],
pvBin_[
i - 7] - 1);
876 sprintf(hname,
"h_phi_%s_%d", TrkNames[0].c_str(),
i -
nGen_);
877 sprintf(htit,
"Phi of %s Generator tracks", TrkNames[0].c_str());
879 sprintf(hname,
"h_phi_%s_%s", TrkNames[7].c_str(), particle[
i - 8 -
nPVBin_].c_str());
880 sprintf(htit,
"Phi of %s tracks (%s)", TrkNames[7].c_str(), particle[
i - 8 -
nPVBin_].c_str());
886 for (
unsigned int i = 0;
i < 2;
i++) {
887 sprintf(hname,
"h_maxNearP_%s", IsolationNames[
i].c_str());
888 sprintf(htit,
"Energy in ChargeIso region for %s", IsolationNames[
i].c_str());
892 sprintf(hname,
"h_ene1_%s", IsolationNames[
i].c_str());
893 sprintf(htit,
"Energy in smaller cone for %s", IsolationNames[
i].c_str());
897 sprintf(hname,
"h_ene2_%s", IsolationNames[
i].c_str());
898 sprintf(htit,
"Energy in bigger cone for %s", IsolationNames[
i].c_str());
902 sprintf(hname,
"h_ediff_%s", IsolationNames[
i].c_str());
903 sprintf(htit,
"Energy in NeutralIso region for %s", IsolationNames[
i].c_str());
908 "E_{7x7}",
"H_{3x3}",
"(E_{7x7}+H_{3x3})",
"E_{11x11}",
"H_{5x5}",
"{E_{11x11}+H_{5x5})"};
910 for (
int ip = 0; ip <
nPBin_; ++ip) {
911 for (
int ie = 0; ie <
nEtaBin_; ++ie) {
912 for (
int j = 0;
j < 6; ++
j) {
913 sprintf(hname,
"h_energy_%d_%d_%d_%d",
i, ip, ie,
j);
916 "%s/p (p=%4.1f:%4.1f; i#eta=%d:%d) for tracks with %s",
917 energyNames[
j].c_str(),
922 TrkNames[
i + 4].c_str());
925 "%s/p (p=%4.1f:%4.1f, i#eta=%d:%d, PV=%d:%d) for tracks with %s",
926 energyNames[
j].c_str(),
933 TrkNames[7].c_str());
936 "%s/p (p=%4.1f:%4.1f, i#eta=%d:%d %s) for tracks with %s",
937 energyNames[
j].c_str(),
943 TrkNames[7].c_str());
952 for (
int i = 0;
i < 8; ++
i) {
953 sprintf(hname,
"counter%d",
i);
954 sprintf(htit,
"Counter with cut %d",
i);
956 sprintf(hname,
"h_pTNew%d",
i);
957 sprintf(htit,
"Track momentum with cut %d",
i);
990 char hname[100], htit[400];
993 sprintf(hname,
"h_HLTAccepts_%i", iRun.
run());
994 sprintf(htit,
"HLT Accepts for Run No %i", iRun.
run());
995 TH1I* hnew =
fs_->
make<TH1I>(hname, htit, 500, 0, 500);
996 for (
int i = 1;
i <= 500; ++
i)
997 hnew->GetXaxis()->SetBinLabel(
i,
" ");
1046 int flag,
int ieta,
double p,
double enEcal1,
double enHcal1,
double enEcal2,
double enHcal2) {
1060 if (ip >= 0 && ie >= 0 && enEcal1 > 0.02 && enHcal1 > 0.1) {
1072 int length =
str.length();
1073 for (
int i = 0;
i < length - 2;
i++) {
1074 if (
str[
i] ==
'_' &&
str[
i + 1] ==
'v' && isdigit(
str.at(
i + 2))) {
1076 truncated_str =
str.substr(0,
z);
1079 return (truncated_str);
1087 reco::GenParticleCollection::const_iterator
p;
1088 double mindR(999.9);
1093 double dEta = pTrack->
eta() -
p->momentum().Eta();
1094 double phi1 = pTrack->
phi();
1095 double phi2 =
p->momentum().Phi();
1100 double dPhi = phi1 - phi2;
bool quality(const TrackQuality) const
Track quality.
std::vector< double > tr_TrkEta
static const std::string kSharedResource
Log< level::Info, true > LogVerbatim
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
const std::vector< std::string > newNames_
edm::EDGetTokenT< reco::TrackCollection > tok_genTrack_
std::vector< bool > tr_SE11x11P
const edm::InputTag theTriggerResultsLabel_
std::vector< spr::propagatedTrackID > propagateCALO(edm::Handle< reco::TrackCollection > &trkCollection, const CaloGeometry *geo, const MagneticField *bField, const std::string &theTrackQuality, bool debug=false)
T getParameter(std::string const &) const
std::vector< double > tr_H5x5
void fillIsolation(int, double, double, double)
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
The single EDProduct to be saved for each event (AOD case)
std::vector< std::string > tr_TrigName
int trackPID(const reco::Track *, const edm::Handle< reco::GenParticleCollection > &)
edm::EDGetTokenT< reco::MuonCollection > tok_Muon_
TrackQuality
track quality
edm::Service< TFileService > fs_
spr::trackSelectionParameters selectionParameters_
double p() const
momentum vector magnitude
edm::EDGetTokenT< EcalRecHitCollection > tok_EE_
std::vector< double > tr_FE7x7P
T const * product() const
std::vector< double > tr_MaxNearP31X31
std::vector< Track > TrackCollection
collection of Tracks
std::vector< double > tr_TrkPhi
void analyze(edm::Event const &, edm::EventSetup const &) override
edm::EDGetTokenT< trigger::TriggerEvent > tok_trigEvt
edm::ESGetToken< CaloTopology, CaloTopologyRecord > tok_caloTopology_
edm::EDGetTokenT< edm::TriggerResults > tok_trigRes
T getUntrackedParameter(std::string const &, T const &) const
void fillTrack(int, double, double, double, double)
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > tok_geom_
const std::string theTrackQuality_
edm::EDGetTokenT< EcalRecHitCollection > tok_EB_
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t ietaAbs(uint32_t id)
double pt() const
track transverse momentum
std::string truncate_str(const std::string &)
const std::vector< double > puWeights_
double chargeIsolationEcal(unsigned int trkIndex, std::vector< spr::propagatedTrackID > &vdetIds, const CaloGeometry *geo, const CaloTopology *caloTopology, int ieta, int iphi, bool debug=false)
const double maxTrackEta_
edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > tok_ecalChStatus_
const edm::InputTag labelGenTrack_
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
Abs< T >::type abs(const T &t)
float segmentCompatibility(const reco::Muon &muon, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
double phi() const
azimuthal angle of momentum vector
std::vector< int > tr_iEta
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< LumiDetails > tok_lumi
static std::string const triggerResults
std::vector< double > tr_MaxNearHcalP7x7
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > tok_magField_
std::vector< double > tr_FE15x15P
std::vector< double > tr_TrkP
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
std::vector< double > tr_TrkPt
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > tok_topo_
std::vector< double > tr_H3x3
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void fillEnergy(int, int, double, double, double, double, double)
double eta() const
pseudorapidity of momentum vector
const std::vector< std::string > trigNames_
std::vector< std::string > HLTNames_
static TrackQuality qualityByName(const std::string &name)
std::vector< int > tr_TrkID
edm::ESGetToken< EcalSeverityLevelAlgo, EcalSeverityLevelAlgoRcd > tok_sevlv_
std::vector< bool > tr_SE7x7P
std::vector< double > tr_H7x7
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< reco::GenParticleCollection > tok_parts_
const Vector & momentum() const
track momentum vector
std::vector< TH1I * > h_HLTAccepts
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
static const int nEtaBin_
TH1D * h_energy[nPVBin_+8][nPBin_][nEtaBin_][6]
const edm::InputTag labelMuon_
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
edm::EDGetTokenT< reco::VertexCollection > tok_recVtx_
void beginRun(edm::Run const &, edm::EventSetup const &) override
StudyCaloResponse(const edm::ParameterSet &)
reco::TrackBase::TrackQuality minQuality
T * make(const Args &...args) const
make new ROOT object
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
std::vector< double > tr_FE11x11P
Log< level::Warning, false > LogWarning
double chargeIsolationHcal(unsigned int trkIndex, std::vector< spr::propagatedTrackID > &vdetIds, const HcalTopology *topology, int ieta, int iphi, bool debug=false)
HLTConfigProvider hltConfig_
edm::EDGetTokenT< GenEventInfoProduct > tok_ew_
void endRun(edm::Run const &, edm::EventSetup const &) override
const edm::InputTag triggerEvent_
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)
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, int useRaw=0, bool debug=false)
~StudyCaloResponse() override
std::vector< bool > tr_SE15x15P