|
|
Go to the documentation of this file.
43 <<
" level 1 and " <<
hltFilterTag_.size() <<
" hlt filter tags"
61 LogDebug(
"HcalIsoTrack") <<
"Gets Trigger information with " << trEv.
isValid() <<
" and offline tracks with "
62 << recoIsoTracks.
isValid() <<
"\n";
70 double etaTrigl1(-10000), phiTrigl1(-10000), ptMaxl1(0);
77 LogDebug(
"HcalIsoTrack") <<
"# of objects " << nRegl1 <<
"\n";
80 LogDebug(
"HcalIsoTrack") <<
"Object[" << iReg <<
"] with pt " << TObj.
pt() <<
" " << TObj.
eta() <<
" "
81 << TObj.
phi() <<
"\n";
82 if (TObj.
pt() > ptMaxl1) {
83 etaTrigl1 = TObj.
eta();
84 phiTrigl1 = TObj.
phi();
90 LogDebug(
"HcalIsoTrack") <<
"For L1 trigger type " <<
k <<
" pt " << ptMaxl1 <<
" eta " << etaTrigl1 <<
" phi "
107 LogDebug(
"HcalIsoTrack") <<
"# of objects for HLT " << nReg <<
"\n";
111 LogDebug(
"HcalIsoTrack") <<
"HLT Filter Tag " <<
l <<
" trigger " << iFilt <<
" object " << iReg <<
" p "
121 double minRecoL3dist(1000),
pt(1000);
122 reco::HcalIsolatedTrackCandidateCollection::const_iterator mrtr;
123 for (mrtr = recoIsoTracks->begin(); mrtr != recoIsoTracks->end(); mrtr++) {
124 double R =
deltaR(mrtr->eta(), mrtr->phi(), TObj.
eta(), TObj.
phi());
125 if (
R < minRecoL3dist) {
130 LogDebug(
"HcalIsoTrack") <<
"Minimum R " << minRecoL3dist <<
" pt " <<
pt <<
":" << TObj.
pt() <<
"\n";
132 if (minRecoL3dist < 0.02)
144 for (reco::HcalIsolatedTrackCandidateCollection::const_iterator
itr = recoIsoTracks->begin();
145 itr != recoIsoTracks->end();
149 std::pair<int, int>
etaphi =
itr->towerIndex();
153 <<
" maxP " <<
itr->maxP() <<
" EcalE " <<
itr->energyEcal() <<
" pointers " <<
hHltP_[3]
164 LogDebug(
"HcalIsoTrack") <<
"Range " <<
l <<
" p " <<
itr->p() <<
" pointer " <<
hOffP_[
l];
185 hL1Pt_[
k]->setAxisTitle(
"p_T (GeV)", 1);
189 hL1Eta_[
k]->setAxisTitle(
"#eta", 1);
193 hL1phi_[
k]->setAxisTitle(
"#phi", 1);
197 for (
unsigned int l = 0;
l < 4;
l++) {
199 sprintf(
title,
"Momentum of %s object",
types[
l].c_str());
201 hHltP_[
l]->setAxisTitle(
"p (GeV)", 1);
203 sprintf(
title,
"#eta of %s object",
types[
l].c_str());
207 sprintf(
title,
"#phi of %s object",
types[
l].c_str());
211 sprintf(
title,
"Distance of offline track from L3 object");
214 sprintf(
title,
"Ratio of p L3/Offline");
221 ifL3_.push_back(indx == 2);
226 double etaV[6] = {0.0, 0.5, 1.0, 1.5, 2.0, 2.5};
227 for (
unsigned int k = 0;
k < 6; ++
k) {
228 sprintf(
name,
"hOffP%d",
k);
230 sprintf(
title,
"p of AlCaReco object (All)");
232 sprintf(
title,
"p of AlCaReco object (%3.1f < |#eta| < %3.1f)", etaV[
k - 1], etaV[
k]);
236 hOffP_[
k]->setAxisTitle(
"E (GeV)", 1);
238 hMaxP_ = iBooker.
book1D(
"hChgIsol",
"Energy for charge isolation", 110, -10, 100);
240 hEnEcal_ = iBooker.
book1D(
"hEnEcal",
"Energy in ECAL", 100, 0, 20);
242 hIeta_ = iBooker.
book1D(
"hIEta",
"i#eta for HCAL tower", 90, -45, 45);
244 hIphi_ = iBooker.
book1D(
"hIPhi",
"i#phi for HCAL tower", 72, 0, 72);
edm::EDGetTokenT< trigger::TriggerEvent > tokTrigger_
trigger::size_type sizeFilters() const
const Keys & filterKeys(trigger::size_type index) const
std::vector< MonitorElement * > hL1Pt_
~DQMHcalIsoTrackAlCaReco() override
std::vector< MonitorElement * > hL1Eta_
virtual void setCurrentFolder(std::string const &fullpath)
T getUntrackedParameter(std::string const &, T const &) const
std::vector< MonitorElement * > hHltEta_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
edm::EDGetTokenT< reco::HcalIsolatedTrackCandidateCollection > tokTrack_
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
void analyze(const edm::Event &, const edm::EventSetup &) override
const edm::InputTag filterTag(trigger::size_type index) const
MonitorElement * hEnEcal_
edm::InputTag labelTrigger_
Single trigger physics object (e.g., an isolated muon)
std::vector< bool > ifL3_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< std::string > l1FilterTag_
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
std::vector< MonitorElement * > hHltPhi_
std::vector< size_type > Keys
edm::InputTag labelTrack_
std::vector< MonitorElement * > hOffP_
std::vector< std::pair< float, float > >::iterator itr
const TriggerObjectCollection & getObjects() const
T getParameter(std::string const &) const
std::vector< double > etaRange_
std::vector< unsigned int > indexH_
std::vector< std::string > hltFilterTag_
Abs< T >::type abs(const T &t)
std::vector< MonitorElement * > hHltP_
std::vector< MonitorElement * > hL1phi_
std::pair< T, T > etaphi(T x, T y, T z)
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
DQMHcalIsoTrackAlCaReco(const edm::ParameterSet &)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())