22 if(iJet->
energy()== 0)
return false;
47 if(!validToken)
return;
53 if(!validToken)
return;
58 if(!validToken)
return;
63 std::vector<reco::PFJet> lCJets;
64 for(reco::PFJetCollection::const_iterator
jet=lUCJets.begin();
jet!=lUCJets.end(); ++
jet){
68 lCJets.push_back(tempJet);
76 for(
int ivtx = 0; ivtx < (int)lVertices.size(); ivtx++) {
78 const Vertex *vtx = &(lVertices.at(ivtx));
79 if( vtx->
isFake() )
continue;
80 if( vtx->
ndof()<=4 )
continue;
81 if( vtx->
position().Rho()>2.0 )
continue;
82 if( fabs(vtx->
position().Z())>24.0 )
continue;
83 lGoodVertices.push_back(*vtx);
87 for(
int i0 = 0; i0 < (int) lUCJets.size(); i0++) {
88 const PFJet *pUCJet = &(lUCJets.at(i0));
89 for(
int i1 = 0; i1 < (int) lCJets.size(); i1++) {
90 const PFJet *pCJet = &(lCJets.at(i1));
92 if( fabs(pUCJet->
eta() - pCJet->
eta()) > 0.001 )
continue;
93 if( pUCJet->
pt() < 0.0 )
continue;
94 double lJec = pCJet ->
pt()/pUCJet->
pt();
98 if( lGoodVertices.size()>0 ) {
107 <<
"Debug Jet MVA : "
108 << iEvent.
id() <<
" : "
109 << lPUJetId.
nvtx() <<
" "
110 << pCJet->
pt() <<
" "
111 << lPUJetId.
jetEta() <<
" "
112 << lPUJetId.
jetPhi() <<
" "
113 << lPUJetId.
d0() <<
" "
114 << lPUJetId.
dZ() <<
" "
115 << lPUJetId.
beta() <<
" "
119 << lPUJetId.
dRMean() <<
" "
120 << lPUJetId.
frac01() <<
" "
121 << lPUJetId.
frac02() <<
" "
122 << lPUJetId.
frac03() <<
" "
123 << lPUJetId.
frac04() <<
" "
edm::EDGetTokenT< reco::PFJetCollection > PFJetCollection_
T getParameter(std::string const &) const
edm::EDGetTokenT< double > theRhoCollection_
virtual void scaleEnergy(double fScale)
scale energy of the jet
float chargedEmEnergy() const
chargedEmEnergy
const float & frac05() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
PileupJetIdAlgo * fPUJetIdAlgo
const float & mva() const
edm::EDGetTokenT< reco::VertexCollection > thePVCollection_
std::vector< Vertex > VertexCollection
collection of Vertex objects
const float & frac03() const
void Load_pfjets_mvavalue()
void Load_pfjets_corr_p4()
int chargedMultiplicity() const
chargedMultiplicity
const Point & position() const
position
Jets made from PFObjects.
virtual double eta() const
momentum pseudorapidity
virtual double pt() const
transverse momentum
float neutralEmEnergy() const
neutralEmEnergy
virtual double energy() const
energy
MVAJetIdMaker(const edm::ParameterSet &, edm::ConsumesCollector &&)
const float & beta() const
const float & jetPhi() const
const float & nNeutrals() const
const float & nvtx() const
edm::EDGetTokenT< reco::JetCorrector > jetCorrectorToken_
const float & frac04() const
const float & frac01() const
PileupJetIdentifier computeIdVariables(const reco::Jet *jet, float jec, const reco::Vertex *, const reco::VertexCollection &, double rho)
std::vector< float > & pfjets_mvavalue()
void SetVars(HWW &, const edm::Event &, const edm::EventSetup &)
std::vector< PFJet > PFJetCollection
collection of PFJet objects
virtual float jetArea() const
get jet area
virtual int nConstituents() const
of constituents
std::vector< float > & pfjets_JEC()
float neutralHadronEnergy() const
neutralHadronEnergy
const float & betaStar() const
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< float > > XYZTLorentzVectorF
Lorentz vector with cylindrical internal representation using pseudorapidity.
const float & dRMean() const
const float & nCharged() const
bool passPFLooseId(const reco::PFJet *iJet)
float chargedHadronEnergy() const
chargedHadronEnergy
const float & frac02() const
math::PtEtaPhiELorentzVectorF LorentzVector
const float & jetEta() const