35 : inputToken_(consumes<edm::
View<
reco::
Candidate> >(iConfig.getParameter<edm::InputTag>(
"src")))
36 , calculateSignificance_(iConfig.getParameter<bool>(
"calculateSignificance"))
38 , globalThreshold_(iConfig.getParameter<double>(
"globalThreshold"))
43 produces<reco::CaloMETCollection>().setBranchAlias(alias.c_str());
74 std::auto_ptr<reco::CaloMETCollection> calometcoll;
76 calometcoll->push_back(calomet);
77 event.put(calometcoll);
T getParameter(std::string const &) const
virtual ~CaloMETProducer()
static std::string const input
Structure containing data common to all types of MET.
void setSignificanceMatrix(const TMatrixD &matrix)
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
bool calculateSignificance_
DEFINE_FWK_MODULE(CaloMETProducer)
CaloMETProducer(const edm::ParameterSet &)
std::vector< reco::CaloMET > CaloMETCollection
collection of CaloMET objects
edm::EDGetTokenT< edm::View< reco::Candidate > > inputToken_
TMatrixD getSignificanceMatrix() const
reco::CaloMET addInfo(edm::Handle< edm::View< reco::Candidate > > towers, const CommonMETData &met, bool noHF, double globalThreshold)
void calculateBaseCaloMET(edm::Handle< edm::View< reco::Candidate > > towers, const CommonMETData &met, const metsig::SignAlgoResolutions &resolutions, bool noHF, double globalthreshold)
T const * product() const
virtual void produce(edm::Event &, const edm::EventSetup &) override
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
metsig::SignAlgoResolutions * resolutions_
void SetMetSignificance(double metsig)