65 inputJetsToken_ (consumes<std::vector<pat::
Jet> >(cfg.getParameter<edm::
InputTag>(
"inputJets"))),
66 inputMETsToken_ (consumes<std::vector<pat::
MET> >(cfg.getParameter<edm::
InputTag>(
"inputMETs"))),
67 scaleFactor_ (cfg.getParameter<double> (
"scaleFactor" )),
68 jetPTThresholdForMET_(cfg.getParameter<double> (
"jetPTThresholdForMET")),
69 jetEMLimitForMET_ (cfg.getParameter<double> (
"jetEMLimitForMET" ))
88 std::auto_ptr<std::vector<pat::Jet> > pJets(
new std::vector<pat::Jet>);
89 std::auto_ptr<std::vector<pat::MET> > pMETs(
new std::vector<pat::MET>);
95 for(std::vector<pat::Jet>::const_iterator
jet = jets->begin();
jet != jets->end(); ++
jet) {
98 pJets->push_back( scaledJet );
103 dPx += scaledJet.
px() -
jet->px();
104 dPy += scaledJet.
py() -
jet->py();
105 dSumEt += scaledJet.
et() -
jet->et();
111 double scaledMETPx = met.
px() - dPx;
112 double scaledMETPy = met.
py() - dPy;
114 pMETs->push_back( scaledMET );
Analysis-level MET class.
T getParameter(std::string const &) const
~JetEnergyShift()
default destructor
virtual void scaleEnergy(double fScale)
scale energy of the jet
#define DEFINE_FWK_MODULE(type)
double jetEMLimitForMET_
limit on the emf of the jet for Type1 MET corrections
std::string outputJets_
jet output collection
virtual double py() const final
y coordinate of momentum vector
virtual void produce(edm::Event &, const edm::EventSetup &) override
rescale jet energy and recalculated MET
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
edm::EDGetTokenT< std::vector< pat::MET > > inputMETsToken_
met input collection
JetEnergyShift(const edm::ParameterSet &)
default constructor
Analysis-level calorimeter jet class.
double scaleFactor_
scale factor for the rescaling
virtual double px() const final
x coordinate of momentum vector
virtual double et() const final
transverse energy
Plugin to shift the jet energy scale and recalculate the MET accordingly.
double jetPTThresholdForMET_
threshold on (raw!) jet pt for Type1 MET corrections
edm::EDGetTokenT< std::vector< pat::Jet > > inputJetsToken_
jet input collection
std::string outputMETs_
MET output collection.
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
math::XYZTLorentzVector LorentzVector
Lorentz vector.
math::XYZPoint Point
point in the space