25 <<
" Failed to find File = " << inputFileName <<
" !!\n";
32 <<
" Failed to load MVA = " << mvaName.data() <<
" from file = " << inputFileName.
fullPath().data() <<
" !!\n";
112 mvaReaderU_ = loadMVAfromFile(inputFileNameU, mvaNameU_);
124 const std::vector<mvaMEtUtilities::JetInfo>&
jets,
125 const std::vector<mvaMEtUtilities::pfCandInfo>&
pfCandidates,
126 const std::vector<reco::Vertex::Point>& vertices)
141 double ptThreshold = -1000.;
142 if (
is42_ ) ptThreshold = 1.;
143 std::vector<mvaMEtUtilities::JetInfo> jets_cleaned =
utils_.
cleanJets(jets, leptons, ptThreshold, 0.5);
154 double pfSumEt = pfRecoil_data.
sumet;
155 double pfU = pfRecoil_data.
met;
156 double pfPhi = pfRecoil_data.
phi;
157 double tkSumEt = tkRecoil_data.
sumet;
158 double tkU = tkRecoil_data.
met;
159 double tkPhi = tkRecoil_data.
phi;
160 double npuSumEt = npuRecoil_data.
sumet;
161 double npuU = npuRecoil_data.
met;
162 double npuPhi = npuRecoil_data.
phi;
163 double puSumEt = puMEt_data.
sumet;
164 double puMEt = puMEt_data.
met;
165 double puPhi = puMEt_data.
phi;
166 double pucSumEt = pucRecoil_data.
sumet;
167 double pucU = pucRecoil_data.
met;
168 double pucPhi = pucRecoil_data.
phi;
169 double jet1Pt = jet1P4.pt();
170 double jet1Eta = jet1P4.eta();
171 double jet1Phi = jet1P4.phi();
172 double jet2Pt = jet2P4.pt();
173 double jet2Eta = jet2P4.eta();
174 double jet2Phi = jet2P4.phi();
176 double numJets = jets_cleaned.size();
177 double numVertices = vertices.size();
181 npuSumEt, npuU, npuPhi,
182 puSumEt, puMEt, puPhi,
183 pucSumEt, pucU, pucPhi,
184 jet1Pt, jet1Eta, jet1Phi,
185 jet2Pt, jet2Eta, jet2Phi,
186 numJetsPtGt30, numJets,
192 double tkSumEt,
double tkU,
double tkPhi,
193 double npuSumEt,
double npuU,
double npuPhi,
194 double puSumEt,
double puMEt,
double puPhi,
195 double pucSumEt,
double pucU,
double pucPhi,
196 double jet1Pt,
double jet1Eta,
double jet1Phi,
197 double jet2Pt,
double jet2Eta,
double jet2Phi,
198 double numJetsPtGt30,
double numJets,
202 if ( pfSumEt < 1. ) pfSumEt = 1.;
250 if ( U < 0. ) Phi +=
Pi;
251 double cosPhi =
cos(Phi);
252 double sinPhi =
sin(Phi);
255 double metPt =
sqrt(metPx*metPx + metPy*metPy);
256 mvaMEt_.SetCoordinates(metPx, metPy, 0., metPt);
391 stream <<
"<PFMETAlgorithmMVA::print>:" << std::endl;
392 stream <<
" PF: sumEt = " <<
pfSumEt_ <<
", U = " <<
pfU_ <<
", phi = " <<
pfPhi_ << std::endl;
393 stream <<
" TK: sumEt = " <<
tkSumEt_ <<
", U = " <<
tkU_ <<
", phi = " <<
tkPhi_ << std::endl;
395 stream <<
" PU: sumEt = " <<
puSumEt_ <<
", MEt = " <<
puMEt_ <<
", phi = " <<
puPhi_ << std::endl;
400 stream <<
" num. vertices = " <<
numVertices_ << std::endl;
404 <<
" phi = " << atan2(sumLeptonPy_,
sumLeptonPx_) <<
" "
405 <<
"(Px = " <<
sumLeptonPx_ <<
", Py = " << sumLeptonPy_ <<
")" << std::endl;
double GetResponse(const float *vector) const
T getParameter(std::string const &) const
reco::Candidate::LorentzVector leadJetP4(const std::vector< JetInfo > &)
unsigned numJetsAboveThreshold(const std::vector< JetInfo > &, double)
Sin< T >::type sin(const T &t)
CommonMETData computeNegPFRecoil(const CommonMETData &, const std::vector< pfCandInfo > &, double)
std::vector< PFCandidatePtr > pfCandidates(const PFJet &jet, int particleId, bool sort=true)
Cos< T >::type cos(const T &t)
Structure containing data common to all types of MET.
reco::Candidate::LorentzVector subleadJetP4(const std::vector< JetInfo > &)
CommonMETData computeNegNoPURecoil(const CommonMETData &, const std::vector< pfCandInfo > &, const std::vector< JetInfo > &, double)
LocationCode location() const
Where was the file found?
CommonMETData computeSumLeptons(const std::vector< leptonInfo > &leptons, bool iCharged)
T const * product() const
CommonMETData computeNegPUCRecoil(const CommonMETData &, const std::vector< pfCandInfo > &, const std::vector< JetInfo > &, double)
math::XYZTLorentzVector LorentzVector
Lorentz vector.
CommonMETData computePUMEt(const std::vector< pfCandInfo > &, const std::vector< JetInfo > &, double)
std::string fullPath() const
CommonMETData computeNegTrackRecoil(const CommonMETData &, const std::vector< pfCandInfo > &, double)
std::vector< JetInfo > cleanJets(const std::vector< JetInfo > &, const std::vector< leptonInfo > &, double, double)