18 case reco::PFCandidate::ParticleType::h0:
return 130;
19 case reco::PFCandidate::ParticleType::h_HF:
return 1;
20 case reco::PFCandidate::ParticleType::egamma_HF:
return 2;
40 produces<CorrMETData>();
43 TString corrPxFormula =
v->getParameter<
std::string>(
"fx");
44 TString corrPyFormula =
v->getParameter<
std::string>(
"fy");
45 std::vector<double> corrPxParams =
v->getParameter<std::vector<double> >(
"px");
46 std::vector<double> corrPyParams =
v->getParameter<std::vector<double> >(
"py");
51 for (
unsigned i=0;
i<corrPxParams.size();
i++)
formula_x_.back()->SetParameter(
i, corrPxParams[
i]);
52 for (
unsigned i=0; i<corrPyParams.size();i++)
formula_y_.back()->SetParameter(i, corrPyParams[i]);
56 etaMin_.push_back(
v->getParameter<
double>(
"etaMin"));
57 etaMax_.push_back(
v->getParameter<
double>(
"etaMax"));
58 type_.push_back(
v->getParameter<
int>(
"type"));
59 varType_.push_back(
v->getParameter<
int>(
"varType"));
73 edm::LogError(
"MultShiftMETcorrInputProducer::produce") <<
"could not find vertex collection ";
76 for (
unsigned i = 0;
i < hpv->size();
i++) {
77 if ( (*hpv)[
i].ndof() > 4 &&
78 ( fabs((*hpv)[
i].
z()) <= 24. ) &&
80 goodVertices.push_back((*hpv)[
i]);
82 int ngoodVertices = goodVertices.size();
89 for (
unsigned i = 0;
i < particleFlow->size(); ++
i) {
91 for (
unsigned j=0; j<
type_.size(); j++) {
104 std::unique_ptr<CorrMETData> metCorr(
new CorrMETData());
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
ParticleType
particle types
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
goodVertices
The Good vertices collection needed by the tracking failure filter ________||.
#define DEFINE_FWK_MODULE(type)
virtual int pdgId() const =0
PDG identifier.
Abs< T >::type abs(const T &t)
virtual double eta() const =0
momentum pseudorapidity
virtual double pt() const =0
transverse momentum
static int position[264][3]