41 LogDebug(
"HcalIsoTrack") <<
"Folder " <<
folderName_ <<
" Input Tag for Trigger " << labelTrigger_ <<
" track " 42 << labelTrack_ <<
" threshold " << pThr_ <<
" with " << l1FilterTag_.size()
43 <<
" level 1 and " << hltFilterTag_.size() <<
" hlt filter tags" 45 for (
unsigned int k = 0;
k < l1FilterTag_.size(); ++
k)
46 LogDebug(
"HcalIsoTrack") <<
"L1FilterTag[" <<
k <<
"] " << l1FilterTag_[
k] <<
"\n";
47 for (
unsigned int k = 0;
k < hltFilterTag_.size(); ++
k)
48 LogDebug(
"HcalIsoTrack") <<
"HLTFilterTag[" <<
k <<
"] " << hltFilterTag_[
k] <<
"\n";
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();
152 LogDebug(
"HcalIsoTrack") <<
"Reco track p " << itr->p() <<
" eta|phi " << etaphi.first <<
"|" << etaphi.second
153 <<
" maxP " << itr->maxP() <<
" EcalE " << itr->energyEcal() <<
" pointers " <<
hHltP_[3]
155 if (itr->p() >=
pThr_) {
156 hHltP_[3]->Fill(itr->p());
158 hHltPhi_[3]->Fill(itr->phi());
160 double etaAbs =
std::abs(itr->eta());
161 hOffP_[0]->Fill(itr->p());
164 LogDebug(
"HcalIsoTrack") <<
"Range " << l <<
" p " << itr->p() <<
" pointer " <<
hOffP_[
l];
174 LogDebug(
"HcalIsoTrack") <<
"Accept " << accept <<
"\n";
183 sprintf(title,
"p_T of L1 object for %s",
l1FilterTag_[
k].c_str());
184 hL1Pt_.push_back(iBooker.
book1D(name, title, 1000, 0, 1000));
185 hL1Pt_[
k]->setAxisTitle(
"p_T (GeV)", 1);
187 sprintf(title,
"#eta of L1 object for %s",
l1FilterTag_[
k].c_str());
188 hL1Eta_.push_back(iBooker.
book1D(name, title, 100, -2.5, 2.5));
189 hL1Eta_[
k]->setAxisTitle(
"#eta", 1);
191 sprintf(title,
"#phi of L1 object for %s",
l1FilterTag_[
k].c_str());
192 hL1phi_.push_back(iBooker.
book1D(name, title, 100, -3.2, 3.2));
193 hL1phi_[
k]->setAxisTitle(
"#phi", 1);
197 for (
unsigned int l = 0;
l < 4;
l++) {
198 sprintf(name,
"hp%s", types[
l].c_str());
199 sprintf(title,
"Momentum of %s object", types[
l].c_str());
200 hHltP_.push_back(iBooker.
book1D(name, title, 200, 0, 1000));
201 hHltP_[
l]->setAxisTitle(
"p (GeV)", 1);
202 sprintf(name,
"heta%s", types[
l].c_str());
203 sprintf(title,
"#eta of %s object", types[
l].c_str());
206 sprintf(name,
"hphi%s", 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]);
235 hOffP_.push_back(iBooker.
book1D(name, title, 1000, 0, 1000));
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);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::InputTag labelTrack_
trigger::size_type sizeFilters() const
std::vector< MonitorElement * > hL1phi_
edm::EDGetTokenT< reco::HcalIsolatedTrackCandidateCollection > tokTrack_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void analyze(const edm::Event &, const edm::EventSetup &) override
DQMHcalIsoTrackAlCaReco(const edm::ParameterSet &)
std::vector< unsigned int > indexH_
const Keys & filterKeys(trigger::size_type index) const
edm::InputTag labelTrigger_
std::vector< MonitorElement * > hHltP_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
std::vector< double > etaRange_
Single trigger physics object (e.g., an isolated muon)
edm::EDGetTokenT< trigger::TriggerEvent > tokTrigger_
std::vector< MonitorElement * > hHltPhi_
void setCurrentFolder(std::string const &fullpath)
const TriggerObjectCollection & getObjects() const
std::vector< MonitorElement * > hHltEta_
std::vector< MonitorElement * > hL1Pt_
MonitorElement * book1D(Args &&...args)
std::pair< T, T > etaphi(T x, T y, T z)
Abs< T >::type abs(const T &t)
~DQMHcalIsoTrackAlCaReco() override
std::vector< std::string > hltFilterTag_
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
const edm::InputTag filterTag(trigger::size_type index) const
std::vector< bool > ifL3_
std::vector< size_type > Keys
std::vector< MonitorElement * > hL1Eta_
MonitorElement * hEnEcal_
std::vector< MonitorElement * > hOffP_
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
std::vector< std::string > l1FilterTag_