25 <<
" Failed to find File = " << inputFileName <<
" !!\n";
32 <<
" Failed to load MVA = " << mvaName.data() <<
" from file = " << inputFileName.
fullPath().data() <<
" !!\n";
105 mvaReaderU_ = loadMVAfromFile(inputFileNameU, mvaNameU_);
117 const std::vector<reco::PUSubMETCandInfo>&
jets,
118 const std::vector<reco::PUSubMETCandInfo>&
pfCandidates,
119 const std::vector<reco::Vertex::Point>&
vertices)
142 double pfSumEt = pfRecoil_data.
sumet;
143 double pfU = pfRecoil_data.
met;
144 double pfPhi = pfRecoil_data.
phi;
145 double tkSumEt = chHSRecoil_data.
sumet;
146 double tkU = chHSRecoil_data.
met;
147 double tkPhi = chHSRecoil_data.
phi;
148 double npuSumEt = hsRecoil_data.
sumet;
149 double npuU = hsRecoil_data.
met;
150 double npuPhi = hsRecoil_data.
phi;
151 double puSumEt = puRecoil_data.
sumet;
152 double puMEt = puRecoil_data.
met;
153 double puPhi = puRecoil_data.
phi;
154 double pucSumEt = hsMinusNeutralPUMEt_data.
sumet;
155 double pucU = hsMinusNeutralPUMEt_data.
met;
156 double pucPhi = hsMinusNeutralPUMEt_data.
phi;
157 double jet1Pt = jet1P4.pt();
158 double jet1Eta = jet1P4.eta();
159 double jet1Phi = jet1P4.phi();
160 double jet2Pt = jet2P4.pt();
161 double jet2Eta = jet2P4.eta();
162 double jet2Phi = jet2P4.phi();
164 double numJets = jets_cleaned.size();
165 double numVertices = vertices.size();
169 npuSumEt, npuU, npuPhi,
170 puSumEt, puMEt, puPhi,
171 pucSumEt, pucU, pucPhi,
172 jet1Pt, jet1Eta, jet1Phi,
173 jet2Pt, jet2Eta, jet2Phi,
174 numJetsPtGt30, numJets,
180 double tkSumEt,
double tkU,
double tkPhi,
181 double npuSumEt,
double npuU,
double npuPhi,
182 double puSumEt,
double puMEt,
double puPhi,
183 double pucSumEt,
double pucU,
double pucPhi,
184 double jet1Pt,
double jet1Eta,
double jet1Phi,
185 double jet2Pt,
double jet2Eta,
double jet2Phi,
186 double numJetsPtGt30,
double numJets,
190 if ( pfSumEt < 1. ) pfSumEt = 1.;
238 if ( U < 0. ) Phi +=
Pi;
239 double cosPhi =
cos(Phi);
240 double sinPhi =
sin(Phi);
243 double metPt =
sqrt(metPx*metPx + metPy*metPy);
244 mvaMEt_.SetCoordinates(metPx, metPy, 0., metPt);
377 stream <<
"<PFMETAlgorithmMVA::print>:" << std::endl;
378 stream <<
" PF: sumEt = " <<
pfSumEt_ <<
", U = " <<
pfU_ <<
", phi = " <<
pfPhi_ << std::endl;
379 stream <<
" TK: sumEt = " <<
tkSumEt_ <<
", U = " <<
tkU_ <<
", phi = " <<
tkPhi_ << std::endl;
381 stream <<
" PU: sumEt = " <<
puSumEt_ <<
", MEt = " <<
puMEt_ <<
", phi = " <<
puPhi_ << std::endl;
386 stream <<
" num. vertices = " <<
numVertices_ << std::endl;
390 <<
" phi = " << atan2(sumLeptonPy_,
sumLeptonPx_) <<
" "
391 <<
"(Px = " <<
sumLeptonPx_ <<
", Py = " << sumLeptonPy_ <<
")" << std::endl;
double GetResponse(const float *vector) const
T getParameter(std::string const &) const
const std::vector< reco::PUSubMETCandInfo > & getCleanedJets() const
double getLeptonsChSumMEX() const
double getLeptonsChSumMEY() const
unsigned numJetsAboveThreshold(const std::vector< reco::PUSubMETCandInfo > &, double)
Sin< T >::type sin(const T &t)
reco::Candidate::LorentzVector subleadJetP4(const std::vector< reco::PUSubMETCandInfo > &)
std::vector< PFCandidatePtr > pfCandidates(const PFJet &jet, int particleId, bool sort=true)
double getLeptonsSumMEX() const
Cos< T >::type cos(const T &t)
Structure containing data common to all types of MET.
void computeAllSums(const std::vector< reco::PUSubMETCandInfo > &jets, const std::vector< reco::PUSubMETCandInfo > &leptons, const std::vector< reco::PUSubMETCandInfo > &pfCandidates)
reco::Candidate::LorentzVector leadJetP4(const std::vector< reco::PUSubMETCandInfo > &)
double getLeptonsSumMEY() const
LocationCode location() const
Where was the file found?
CommonMETData computeRecoil(int metType)
T const * product() const
math::XYZTLorentzVector LorentzVector
Lorentz vector.
std::string fullPath() const