256 <<
"Run " <<
t_Run <<
" Event " <<
t_Event <<
" Luminosity " 258 <<
" starts ==========";
287 for (
unsigned iGenJet = 0; iGenJet < genJets->size(); ++iGenJet) {
289 double genJetPt = genJet.
pt();
290 double genJetEta = genJet.
eta();
293 if (genJetEta>-2.5 && genJetEta<2.5) {
311 if (!recVtxs->empty() && !((*recVtxs)[0].isFake())) {
312 leadPV =
math::XYZPoint( (*recVtxs)[0].
x(),(*recVtxs)[0].
y(), (*recVtxs)[0].
z() );
313 }
else if (beamSpotH.
isValid()) {
318 edm::LogInfo(
"IsoTrack") <<
"Primary Vertex " << leadPV;
332 for (rhitItr=hbhe->
begin();rhitItr!=hbhe->
end();rhitItr++) {
333 double rec_energy = rhitItr->energy();
334 int rec_ieta = rhitItr->id().ieta();
335 int rec_depth = rhitItr->id().depth();
336 int rec_zside = rhitItr->id().zside();
337 double num1_1 = rec_zside*(rec_ieta+0.2*(rec_depth-1));
339 edm::LogInfo(
"IsoTrack") <<
"detid/rechit/ieta/zside/depth/num " <<
" = " 340 << rhitItr->id() <<
"/" << rec_energy <<
"/" 341 << rec_ieta <<
"/" << rec_zside <<
"/" 342 << rec_depth <<
"/" << num1_1;
350 std::vector<spr::propagatedTrackDirection> trkCaloDirections;
353 std::vector<spr::propagatedTrackDirection>::const_iterator trkDetItr;
354 for (trkDetItr = trkCaloDirections.begin();
355 trkDetItr != trkCaloDirections.end(); trkDetItr++) {
356 if (trkDetItr->okHCAL) {
358 int tk_ieta = detId.
ieta();
359 const reco::Track* pTrack = &(*(trkDetItr->trkItr));
360 double tk_p = pTrack->
p();
362 for (
unsigned int k=1;
k<
pbin.size(); ++
k) {
381 edm::LogInfo(
"IsoTrack") <<
"\nL1 configuration code:" << l1ConfCode
382 <<
"\nNo valid L1 trigger configuration available." 383 <<
"\nSee text above for error code interpretation" 384 <<
"\nNo return here, in order to test each method" 385 <<
", protected against configuration error.";
391 edm::LogInfo(
"IsoTrack") <<
"menuName " << menuName << std::endl;
393 std::vector<int> algbits;
394 for (
CItAlgo itAlgo = algorithmMap.begin(); itAlgo != algorithmMap.end();
397 int algBitNumber = ( itAlgo->second ).algoBitNumber();
402 edm::LogInfo(
"IsoTrack") << algName <<
" "<< algBitNumber <<
" " 405 if (algName.find(
l1Names_[
i])!=std::string::npos){
407 edm::LogInfo(
"IsoTrack") <<
"match found" <<
" " << algName <<
" " 410 if (decision > 0) l1ok =
true;
418 l1extra::L1JetParticleCollection::const_iterator itr;
419 double ptTriggered = -10;
420 double etaTriggered = -100;
421 double phiTriggered = -100;
423 for(itr = l1TauHandle->begin(); itr != l1TauHandle->end(); ++itr) {
424 if(itr->pt()>ptTriggered){
425 ptTriggered = itr->pt();
426 etaTriggered = itr->eta();
427 phiTriggered = itr->phi() ;
430 edm::LogInfo(
"IsoTrack") <<
"tauJ pt " << itr->pt() <<
" eta/phi " 431 << itr->eta() <<
" " << itr->phi();
435 for (itr = l1CenJetHandle->begin(); itr != l1CenJetHandle->end(); ++itr){
436 if (itr->pt()>ptTriggered) {
437 ptTriggered = itr->pt();
438 etaTriggered = itr->eta();
439 phiTriggered = itr->phi() ;
443 <<
" eta/phi " << itr->eta() <<
" " 448 for (itr = l1FwdJetHandle->begin(); itr != l1FwdJetHandle->end(); ++itr) {
449 if (itr->pt()>ptTriggered) {
450 ptTriggered = itr->pt();
451 etaTriggered = itr->eta();
452 phiTriggered = itr->phi() ;
455 edm::LogInfo(
"IsoTrack") <<
"forJ pt " << itr->pt() <<
" eta/phi " 456 << itr->eta() <<
" " << itr->phi();
459 edm::LogInfo(
"IsoTrack") <<
"jets pt/eta/phi = " << ptTriggered <<
"/" 460 << etaTriggered <<
"/" <<phiTriggered;
462 unsigned int nTracks(0),nselTracks(0);
463 for (trkDetItr = trkCaloDirections.begin(),
nTracks=0;
464 trkDetItr != trkCaloDirections.end(); trkDetItr++,
nTracks++) {
465 const reco::Track* pTrack = &(*(trkDetItr->trkItr));
467 pTrack->
pz(), pTrack->
p());
473 << pTrack->
pt() <<
"/" << pTrack->
eta() <<
"/" 474 << pTrack->
phi() <<
"/" << pTrack->
p();
489 oneCutParameters.
maxDzPV = 100;
495 oneCutParameters.
maxDzPV = 100;
502 if (trkDetItr->okHCAL) {
507 edm::LogInfo(
"IsoTrack") <<
"qltyFlag|okECAL|okHCAL : " << qltyFlag <<
"|" 508 << trkDetItr->okECAL <<
"/" << trkDetItr->okHCAL;
509 t_qltyFlag = (qltyFlag && trkDetItr->okECAL && trkDetItr->okHCAL);
512 for (
unsigned int k=1;
k<
pbin.size(); ++
k) {
521 for (
unsigned int k=1; k<
pbin.size(); ++
k) {
527 int nRH_eMipDR(0), nNearTRKs(0), nRecHits(-999);
530 trkDetItr->pointHCAL,
531 trkDetItr->pointECAL,
532 a_mipR_, trkDetItr->directionECAL,
535 std::vector<DetId>
ids;
538 trkDetItr->directionHCAL,nRecHits,
540 for (
unsigned int k=0; k<ids.size(); ++
k) {
541 t_DetIds->push_back(ids[k].rawId());
548 for (
unsigned int k=1; k<
pbin.size(); ++
k) {
556 for (
unsigned int k=1; k<
pbin.size(); ++
k) {
564 for (
unsigned int k=1; k<
pbin.size(); ++
k) {
575 << pTrack->
pt() <<
"/" << pTrack->
eta() <<
"/" 576 << pTrack->
phi() <<
"/" <<
t_p;
581 for (
unsigned int lll=0;lll<
t_DetIds->size();lll++) {
double p() const
momentum vector magnitude
double eCone_hcal(const CaloGeometry *geo, edm::Handle< T > &hits, const GlobalPoint &hpoint1, const GlobalPoint &point1, double dR, const GlobalVector &trackMom, int &nRecHits, double hbThr=-100, double heThr=-100, double hfThr=-100, double hoThr=-100, double tMin=-500, double tMax=500, int detOnly=-1, int useRaw=0, bool debug=false)
EventNumber_t event() const
spr::trackSelectionParameters selectionParameters_
std::vector< double > * t_HitEnergies
const edm::EDGetTokenT< reco::TrackCollection > tok_genTrack_
std::vector< spr::propagatedTrackID > propagateCALO(edm::Handle< reco::TrackCollection > &trkCollection, const CaloGeometry *geo, const MagneticField *bField, const std::string &theTrackQuality, bool debug=false)
const unsigned int nTracks(const reco::Vertex &sv)
const L1GtTriggerMenu * m_l1GtMenu
const edm::EDGetTokenT< GenEventInfoProduct > tok_ew_
std::vector< unsigned int > * t_DetIds
double eta() const final
momentum pseudorapidity
edm::EDGetTokenT< EcalRecHitCollection > tok_EE_
edm::EDGetTokenT< l1extra::L1JetParticleCollection > tok_L1extCenJet_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const bool availableL1Configuration(int &errorCode, int &l1ConfCode) const
const edm::EDGetTokenT< reco::BeamSpot > tok_bs_
std::vector< T >::const_iterator const_iterator
int bunchCrossing() const
edm::LuminosityBlockNumber_t luminosityBlock() const
double phi() const
azimuthal angle of momentum vector
double pt() const final
transverse momentum
const bool decision(const edm::Event &iEvent, const std::string &nameAlgoTechTrig, int &errorCode) const
double chargeIsolationCone(unsigned int trkIndex, std::vector< spr::propagatedTrackDirection > &trkDirs, double dR, int &nNearTRKs, bool debug=false)
double px() const
x coordinate of momentum vector
edm::EDGetTokenT< l1extra::L1JetParticleCollection > tok_L1extTauJet_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
const std::string theTrackQuality_
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
double eta() const
pseudorapidity of momentum vector
std::vector< double > pbin
static const bool useL1GtTriggerMenuLite(true)
double deltaR(double eta1, double eta2, double phi1, double phi2)
bool goodTrack(const reco::Track *pTrack, math::XYZPoint leadPV, trackSelectionParameters parameters, bool debug=false)
std::vector< bool > * t_l1bits
double pt() const
track transverse momentum
int ieta() const
get the cell ieta
edm::EDGetTokenT< EcalRecHitCollection > tok_EB_
Jets made from MC generator particles.
const edm::EDGetTokenT< reco::VertexCollection > tok_recVtx_
double eCone_ecal(const CaloGeometry *geo, edm::Handle< T > &barrelhits, edm::Handle< T > &endcaphits, const GlobalPoint &hpoint1, const GlobalPoint &point1, double dR, const GlobalVector &trackMom, int &nRecHits, double ebThr=-100, double eeThr=-100, double tMin=-500, double tMax=500, bool debug=false)
edm::EDGetTokenT< l1extra::L1JetParticleCollection > tok_L1extFwdJet_
const edm::EDGetTokenT< reco::GenJetCollection > tok_jets_
double pz() const
z coordinate of momentum vector
const_iterator end() const
XYZPointD XYZPoint
point in space with cartesian internal representation
void getL1GtRunCache(const edm::Run &, const edm::EventSetup &, const bool, const bool)
get all the run-constant quantities for L1 trigger and cache them
const Point & position() const
position
const edm::EDGetTokenT< reco::PFJetCollection > tok_pfjets_
T const * product() const
const std::vector< std::string > l1Names_
const_iterator begin() const
double py() const
y coordinate of momentum vector
static const bool useL1EventSetup(true)