42 << labelTrigger_ <<
" track " << labelTrack_ <<
" threshold "
43 << pThr_ <<
" with " << l1FilterTag_.size() <<
" level 1 and "
44 << hltFilterTag_.size() <<
" hlt filter tags" << std::endl;
45 for (
unsigned int k=0;
k<l1FilterTag_.size(); ++
k)
46 std::cout <<
"L1FilterTag[" <<
k <<
"] " << l1FilterTag_[
k] << std::endl;
47 for (
unsigned int k=0;
k<hltFilterTag_.size(); ++
k)
48 std::cout <<
"HLTFilterTag[" <<
k <<
"] " << hltFilterTag_[
k] << std::endl;
57 std::cout <<
"Enters DQMHcalIsoTrackAlCaReco::analyze " << std::endl;
73 double etaTrigl1(-10000), phiTrigl1(-10000), ptMaxl1(0);
81 if (TObj.
pt()>ptMaxl1) {
90 std::cout <<
"For L1 trigger type " <<
k <<
" pt " << ptMaxl1 <<
" eta "
91 << etaTrigl1 <<
" phi " << phiTrigl1 << std::endl;
112 std::cout <<
"HLT Filter Tag " <<
l <<
" trigger " << iFilt
113 <<
" object " << iReg <<
" p " << TObj.
p() <<
" pointer "
122 if (
ifL3_[
l]) accept =
true;
125 std::cout <<
"Look for reconstructed object" << std::endl;
127 double minRecoL3dist(1000),
pt(1000);
128 reco::HcalIsolatedTrackCandidateCollection::const_iterator mrtr;
129 for (mrtr=recoIsoTracks->begin(); mrtr!=recoIsoTracks->end();
131 double R =
deltaR(mrtr->eta(),mrtr->phi(),TObj.
eta(),TObj.
phi());
132 if (R<minRecoL3dist) {
138 std::cout <<
"Minimum R " << minRecoL3dist <<
" pt " << pt
139 <<
":" << TObj.
pt() << std::endl;
153 for (reco::HcalIsolatedTrackCandidateCollection::const_iterator itr=recoIsoTracks->begin(); itr!=recoIsoTracks->end(); itr++) {
156 std::pair<int,int>
etaphi = itr->towerIndex();
160 std::cout <<
"Reco track p " << itr->p() <<
" eta|phi " << etaphi.first
161 <<
"|" << etaphi.second <<
" maxP " << itr->maxP() <<
" EcalE "
162 << itr->energyEcal() <<
" pointers " <<
hHltP_[3] <<
":"
165 if (itr->p()>=
pThr_) {
166 hHltP_[3] ->Fill(itr->p());
170 double etaAbs =
std::abs(itr->eta());
171 hOffP_[0]->Fill(itr->p());
175 std::cout <<
"Range " << l <<
" p " << itr->p() <<
" pointer "
187 std::cout <<
"Accept " << accept << std::endl;
202 sprintf (title,
"p_T of L1 object for %s",
l1FilterTag_[
k].c_str());
203 hL1Pt_.push_back(iBooker.
book1D(name,title,1000,0,1000));
204 hL1Pt_[
k]->setAxisTitle(
"p_T (GeV)", 1);
206 sprintf (title,
"#eta of L1 object for %s",
l1FilterTag_[
k].c_str());
210 sprintf (title,
"#phi of L1 object for %s",
l1FilterTag_[
k].c_str());
215 std::cout <<
"Booked the L1 histos" << std::endl;
219 for (
unsigned int l=0;
l<4;
l++) {
220 sprintf (name,
"hp%s", types[
l].c_str());
221 sprintf (title,
"Momentum of %s object", types[
l].c_str());
222 hHltP_.push_back(iBooker.
book1D(name,title,200,0,1000));
223 hHltP_[
l]->setAxisTitle(
"p (GeV)", 1);
224 sprintf (name,
"heta%s", types[
l].c_str());
225 sprintf (title,
"#eta of %s object", types[
l].c_str());
228 sprintf (name,
"hphi%s", types[
l].c_str());
229 sprintf (title,
"#phi of %s object", types[
l].c_str());
234 std::cout <<
"Booked the HLT histos" << std::endl;
236 sprintf (title,
"Distance of offline track from L3 object");
239 sprintf (title,
"Ratio of p L3/Offline");
245 ifL3_.push_back(indx==2);
253 double etaV[6] = {0.0, 0.5, 1.0, 1.5, 2.0, 2.5};
254 for (
unsigned int k=0;
k<6; ++
k) {
255 sprintf (name,
"hOffP%d",
k);
257 sprintf (title,
"p of AlCaReco object (All)");
259 sprintf (title,
"p of AlCaReco object (%3.1f < |#eta| < %3.1f)",etaV[
k-1],etaV[
k]);
262 hOffP_.push_back(iBooker.
book1D(name,title,1000,0,1000));
263 hOffP_[
k]->setAxisTitle(
"E (GeV)",1);
265 hMaxP_ = iBooker.
book1D(
"hChgIsol",
"Energy for charge isolation",110,-10,100);
269 hIeta_ = iBooker.
book1D(
"hIEta",
"i#eta for HCAL tower",90,-45,45);
271 hIphi_ = iBooker.
book1D(
"hIPhi",
"i#phi for HCAL tower",72,0,72);
274 std::cout <<
"End of booking histograms" << std::endl;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::InputTag labelTrack_
edm::EDGetTokenT< reco::HcalIsolatedTrackCandidateCollection > tokTrack_
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
DQMHcalIsoTrackAlCaReco(const edm::ParameterSet &)
std::vector< unsigned int > indexH_
edm::InputTag labelTrigger_
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< MonitorElement * > hHltEta_
std::vector< double > etaRange_
Single trigger physics object (e.g., an isolated muon)
edm::EDGetTokenT< trigger::TriggerEvent > tokTrigger_
std::vector< MonitorElement * > hHltPhi_
MonitorElement * book1D(Args &&...args)
std::pair< T, T > etaphi(T x, T y, T z)
Abs< T >::type abs(const T &t)
~DQMHcalIsoTrackAlCaReco()
std::vector< MonitorElement * > hOffP_
std::vector< std::string > hltFilterTag_
double deltaR(double eta1, double eta2, double phi1, double phi2)
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
std::vector< MonitorElement * > hL1phi_
void setCurrentFolder(const std::string &fullpath)
std::vector< MonitorElement * > hL1Pt_
std::vector< bool > ifL3_
std::vector< size_type > Keys
MonitorElement * hEnEcal_
std::vector< MonitorElement * > hHltP_
std::vector< MonitorElement * > hL1Eta_
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_