31 : inputToken_(consumes<edm::
View<
reco::
Candidate> >(iConfig.getParameter<edm::InputTag>(
"src")))
32 , globalThreshold_(iConfig.getParameter<double>(
"globalThreshold"))
33 , onlyFiducial_(iConfig.getParameter<bool>(
"onlyFiducialParticles"))
34 , applyFiducialThresholdForFractions_(iConfig.getParameter<bool>(
"applyFiducialThresholdForFractions"))
35 , usePt_(iConfig.getParameter<bool>(
"usePt"))
38 produces<reco::GenMETCollection>().setBranchAlias(alias.c_str());
51 std::auto_ptr<reco::GenMETCollection> genmetcoll;
54 event.put(genmetcoll);
T getParameter(std::string const &) const
edm::EDGetTokenT< edm::View< reco::Candidate > > inputToken_
reco::GenMET addInfo(edm::Handle< edm::View< reco::Candidate > > particles, CommonMETData *met, double globalThreshold=0, bool onlyFiducial=false, bool applyFiducialThresholdForFractions=false, bool usePt=false)
std::vector< reco::GenMET > GenMETCollection
collection of GenMET objects
GenMETProducer(const edm::ParameterSet &)
static std::string const input
bool applyFiducialThresholdForFractions_
Structure containing data common to all types of 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
DEFINE_FWK_MODULE(CaloMETProducer)
virtual void produce(edm::Event &, const edm::EventSetup &) override
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")