142 for (
int i=1;
i<21;
i++)
144 if (fabs(eta)<=(
i*0.087)&&fabs(eta)>(
i-1)*0.087) ieta=int(fabs(eta)/eta)*
i;
146 if (fabs(eta)>1.740&&fabs(eta)<=1.830) ieta=int(fabs(eta)/eta)*21;
147 if (fabs(eta)>1.830&&fabs(eta)<=1.930) ieta=int(fabs(eta)/eta)*22;
148 if (fabs(eta)>1.930&&fabs(eta)<=2.043) ieta=int(fabs(eta)/eta)*23;
149 if (fabs(eta)>2.043&&fabs(eta)<=2.172) ieta=int(fabs(eta)/eta)*24;
151 double delta=phi+0.174532925;
152 if (delta<0) delta=delta+2*acos(-1);
155 for (
int i=0;
i<72;
i++)
157 if (delta<(
i+1)*0.087266462&&delta>
i*0.087266462) iphi=
i;
162 for (
int i=0;
i<36;
i++)
164 if (delta<2*(
i+1)*0.087266462&&delta>2*
i*0.087266462) iphi=2*
i;
168 return std::pair<int,int>(ieta,iphi);
220 double etaTrigl1=-10000;
221 double phiTrigl1=-10000;
226 if (TObj.
pt()>ptMaxl1)
228 etaTrigl1=TObj.
eta();
229 phiTrigl1=TObj.
phi();
235 std::vector<double> trigEta;
236 std::vector<double> trigPhi;
245 KEYS=trEv->filterKeys(iFilt);
255 if (TObj.
p()<
pThr_)
continue;
260 if (recoIsoTracks->size()>0)
262 double minRecoL3dist=1000;
263 reco::IsolatedPixelTrackCandidateCollection::const_iterator mrtr;
264 for (reco::IsolatedPixelTrackCandidateCollection::const_iterator rtrit=recoIsoTracks->begin(); rtrit!=recoIsoTracks->end(); rtrit++)
266 double R=
deltaR(rtrit->eta(),rtrit->phi(),TObj.
eta(),TObj.
phi());
278 trigEta.push_back(TObj.
eta());
279 trigPhi.push_back(TObj.
phi());
284 for (reco::IsolatedPixelTrackCandidateCollection::const_iterator itr=recoIsoTracks->begin(); itr!=recoIsoTracks->end(); itr++)
287 for (
unsigned int l=0;
l<trigEta.size();
l++)
289 if (
deltaR(itr->eta(),itr->phi(),trigEta[
l],trigPhi[
l])<0.02) match=
true;
304 if (fabs(itr->eta())<1.479)
320 if (fabs(itr->eta())>0.5&&fabs(itr->eta())<1.0)
hOffP_0510->
Fill(itr->p(),1);
321 if (fabs(itr->eta())>1.0&&fabs(itr->eta())<1.5)
hOffP_1015->
Fill(itr->p(),1);
322 if (fabs(itr->eta())<1.5&&fabs(itr->eta())<2.0)
hOffP_1520->
Fill(itr->p(),1);
326 std::pair<int,int> TI=
towerIndex(itr->eta(),itr->phi());
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.
DQMHcalIsoTrackAlCaReco(const edm::ParameterSet &)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
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
MonitorElement * hTracksMaxP
edm::InputTag hltEventTag_
MonitorElement * hOffP_0005
~DQMHcalIsoTrackAlCaReco()
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
MonitorElement * hOffEtaFP
virtual void analyze(const edm::Event &, const edm::EventSetup &)
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
MonitorElement * hOccupancyFull
edm::InputTag arITrLabel_
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