56 :
inputLabel(iConfig.getParameter<edm::InputTag>(
"src"))
57 , inputType(iConfig.getParameter<std::
string>(
"InputType"))
58 , METtype(iConfig.getParameter<std::
string>(
"METType"))
59 , alias(iConfig.getParameter<std::
string>(
"alias"))
61 , calculateSignificance_(
false)
63 , globalThreshold(iConfig.getParameter<double>(
"globalThreshold"))
70 produces<reco::CaloMETCollection>().setBranchAlias(
alias.c_str());
78 produces<reco::GenMETCollection>().setBranchAlias(
alias.c_str());
82 produces<reco::PFMETCollection>().setBranchAlias(
alias.c_str());
86 if(calculateSignificance_)
93 else if(
METtype ==
"PFClusterMET" )
95 produces<reco::PFClusterMETCollection>().setBranchAlias(
alias.c_str());
99 produces<reco::METCollection>().setBranchAlias(
alias.c_str());
103 produces<reco::METCollection>().setBranchAlias(
alias.c_str());
132 if(
METtype ==
"PFClusterMET" )
166 std::auto_ptr<reco::CaloMETCollection> calometcoll;
168 calometcoll->push_back( calomet ) ;
169 event.put( calometcoll );
174 std::auto_ptr<reco::METCollection> tcmetcoll;
177 event.put( tcmetcoll );
207 std::auto_ptr<reco::PFMETCollection> pfmetcoll;
210 pfmetcoll->push_back(pfmet);
211 event.put(pfmetcoll);
223 std::auto_ptr<reco::PFClusterMETCollection> pfclustermetcoll;
226 pfclustermetcoll->push_back( pfcluster.
addInfo(input, commonMETdata) );
227 event.put( pfclustermetcoll );
238 std::auto_ptr<reco::GenMETCollection> genmetcoll;
241 event.put( genmetcoll );
255 std::auto_ptr<reco::METCollection> metcoll;
257 metcoll->push_back( met );
258 event.put( metcoll );
T getParameter(std::string const &) const
void produce_CaloMET(edm::Event &event)
reco::GenMET addInfo(edm::Handle< edm::View< reco::Candidate > > particles, CommonMETData *met, double globalThreshold=0, bool onlyFiducial=false, bool applyFiducialThresholdForFractions=false, bool usePt=false)
tuple met
____________________________________________________________________________||
edm::EDGetTokenT< edm::View< reco::Candidate > > inputToken_
bool calculateSignificance_
std::vector< reco::GenMET > GenMETCollection
collection of GenMET objects
void produce_else(edm::Event &event)
void produce_TCMET(edm::Event &event, const edm::EventSetup &setup)
edm::EDGetTokenT< edm::View< reco::PFJet > > jetToken_
std::vector< reco::MET > METCollection
collection of MET objects
reco::PFClusterMET addInfo(edm::Handle< edm::View< reco::Candidate > > PFClusterCandidates, const CommonMETData &met)
static std::string const input
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
std::vector< reco::PFClusterMET > PFClusterMETCollection
collection of PFClusterMET objects
bool applyFiducialThresholdForFractions
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
void addPFJets(const edm::View< reco::PFJet > *PFJets)
void setResolutions(metsig::SignAlgoResolutions *resolutions)
void produce_GenMET(edm::Event &event)
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
MET made from Particle Flow Candidates.
SpecificPFMETData run(const edm::View< reco::Candidate > &pfCands)
std::vector< reco::CaloMET > CaloMETCollection
collection of CaloMET objects
TMatrixD getSignificanceMatrix() const
XYZPointD XYZPoint
point in space with cartesian internal representation
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
void produce_PFClusterMET(edm::Event &event)
metsig::SignAlgoResolutions * resolutions_
std::vector< reco::PFMET > PFMETCollection
collection of PFMET objects
void produce_PFMET(edm::Event &event)
volatile std::atomic< bool > shutdown_flag false
METProducer(const edm::ParameterSet &)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
void SetMetSignificance(double metsig)
virtual void produce(edm::Event &, const edm::EventSetup &) override
TMatrixD mkSignifMatrix(edm::Handle< edm::View< reco::Candidate > > &PFCandidates)