77 virtual void endJob()
override ;
141 for (
int i=1;
i<21;
i++)
143 if (fabs(eta)<=(
i*0.087)&&fabs(eta)>(
i-1)*0.087) ieta=int(fabs(eta)/eta)*
i;
145 if (fabs(eta)>1.740&&fabs(eta)<=1.830) ieta=int(fabs(eta)/eta)*21;
146 if (fabs(eta)>1.830&&fabs(eta)<=1.930) ieta=int(fabs(eta)/eta)*22;
147 if (fabs(eta)>1.930&&fabs(eta)<=2.043) ieta=int(fabs(eta)/eta)*23;
148 if (fabs(eta)>2.043&&fabs(eta)<=2.172) ieta=int(fabs(eta)/eta)*24;
150 double delta=phi+0.174532925;
151 if (delta<0) delta=delta+2*acos(-1);
154 for (
int i=0;
i<72;
i++)
156 if (delta<(
i+1)*0.087266462&&delta>
i*0.087266462) iphi=
i;
161 for (
int i=0;
i<36;
i++)
163 if (delta<2*(
i+1)*0.087266462&&delta>2*
i*0.087266462) iphi=2*
i;
167 return std::pair<int,int>(ieta,iphi);
219 double etaTrigl1=-10000;
220 double phiTrigl1=-10000;
225 if (TObj.
pt()>ptMaxl1)
227 etaTrigl1=TObj.
eta();
228 phiTrigl1=TObj.
phi();
234 std::vector<double> trigEta;
235 std::vector<double> trigPhi;
244 KEYS=trEv->filterKeys(iFilt);
254 if (TObj.
p()<
pThr_)
continue;
259 if (recoIsoTracks->size()>0)
261 double minRecoL3dist=1000;
262 reco::IsolatedPixelTrackCandidateCollection::const_iterator mrtr;
263 for (reco::IsolatedPixelTrackCandidateCollection::const_iterator rtrit=recoIsoTracks->begin(); rtrit!=recoIsoTracks->end(); rtrit++)
265 double R=
deltaR(rtrit->eta(),rtrit->phi(),TObj.
eta(),TObj.
phi());
277 trigEta.push_back(TObj.
eta());
278 trigPhi.push_back(TObj.
phi());
283 for (reco::IsolatedPixelTrackCandidateCollection::const_iterator itr=recoIsoTracks->begin(); itr!=recoIsoTracks->end(); itr++)
286 for (
unsigned int l=0;
l<trigEta.size();
l++)
288 if (
deltaR(itr->eta(),itr->phi(),trigEta[
l],trigPhi[
l])<0.02) match=
true;
303 if (fabs(itr->eta())<1.479)
319 if (fabs(itr->eta())>0.5&&fabs(itr->eta())<1.0)
hOffP_0510->
Fill(itr->p(),1);
320 if (fabs(itr->eta())>1.0&&fabs(itr->eta())<1.5)
hOffP_1015->
Fill(itr->p(),1);
321 if (fabs(itr->eta())<1.5&&fabs(itr->eta())<2.0)
hOffP_1520->
Fill(itr->p(),1);
325 std::pair<int,int> TI=
towerIndex(itr->eta(),itr->phi());
edm::EDGetTokenT< trigger::TriggerEvent > hltEventTag_
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * hOccupancyHighEn
MonitorElement * hDeposEcalOuterEB
MonitorElement * hOffL3TrackMatch
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
DQMHcalIsoTrackAlCaReco(const edm::ParameterSet &)
std::pair< int, int > towerIndex(double eta, double phi)
MonitorElement * hOffAbsEta
MonitorElement * hOffPhiFP
MonitorElement * hOffP_1520
MonitorElement * hDeposEcalInnerEE
Single trigger physics object (e.g., an isolated muon)
MonitorElement * hOffP_0510
virtual void endJob() override
MonitorElement * hTracksMaxP
MonitorElement * hOffP_0005
edm::EDGetTokenT< reco::IsolatedPixelTrackCandidateCollection > arITrLabel_
virtual void beginJob() override
~DQMHcalIsoTrackAlCaReco()
MonitorElement * hOffEtaFP
MonitorElement * hDeposEcalInnerEB
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)
MonitorElement * hPurityEta
edm::InputTag recoTrLabel_
std::vector< size_type > Keys
MonitorElement * hOffP_1015
MonitorElement * hPurityPhi
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, const uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE", const bool resetMEsAfterWriting=false)
MonitorElement * hOccupancyFull
MonitorElement * hTracksSumP
std::string outRootFileName_
MonitorElement * hL1jetMatch
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
TH2F * getTH2F(void) const
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
MonitorElement * hOffL3TrackPtRat
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * hl3AbsEta
void setCurrentFolder(const std::string &fullpath)
MonitorElement * hDeposEcalOuterEE