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"))
60 , calculateSignificance_(
false)
62 , globalThreshold(iConfig.getParameter<double>(
"globalThreshold"))
67 produces<reco::CaloMETCollection>().setBranchAlias(
alias.c_str());
75 produces<reco::GenMETCollection>().setBranchAlias(
alias.c_str());
79 produces<reco::PFMETCollection>().setBranchAlias(
alias.c_str());
83 if(calculateSignificance_)
89 else if(
METtype ==
"PFClusterMET" )
91 produces<reco::PFClusterMETCollection>().setBranchAlias(
alias.c_str());
95 produces<reco::METCollection>().setBranchAlias(
alias.c_str());
98 bool correctShowerTracks_ = iConfig.
getParameter<
bool>(
"correctShowerTracks");
100 int responseFunctionType = 0;
101 if(! correctShowerTracks_)
103 if( rfType_ == 1 ) responseFunctionType = 1;
104 else if( rfType_ == 2 ) responseFunctionType = 2;
110 produces<reco::METCollection>().setBranchAlias(
alias.c_str());
139 if(
METtype ==
"PFClusterMET" )
173 std::auto_ptr<reco::CaloMETCollection> calometcoll;
175 calometcoll->push_back( calomet ) ;
176 event.put( calometcoll );
181 std::auto_ptr<reco::METCollection> tcmetcoll;
184 event.put( tcmetcoll );
204 std::auto_ptr<reco::PFMETCollection> pfmetcoll;
206 pfmetcoll->push_back( pf.
addInfo(input, commonMETdata) );
207 event.put( pfmetcoll );
219 std::auto_ptr<reco::PFClusterMETCollection> pfclustermetcoll;
222 pfclustermetcoll->push_back( pfcluster.
addInfo(input, commonMETdata) );
223 event.put( pfclustermetcoll );
234 std::auto_ptr<reco::GenMETCollection> genmetcoll;
237 event.put( genmetcoll );
253 std::auto_ptr<reco::METCollection> metcoll;
255 metcoll->push_back( met );
256 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)
bool calculateSignificance_
reco::PFClusterMET addInfo(edm::Handle< edm::View< reco::Candidate > > PFClusterCandidates, CommonMETData met)
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)
std::vector< reco::MET > METCollection
collection of MET objects
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
std::vector< reco::PFClusterMET > PFClusterMETCollection
collection of PFClusterMET objects
bool applyFiducialThresholdForFractions
void calculateBaseCaloMET(edm::Handle< edm::View< reco::Candidate > > towers, CommonMETData met, const metsig::SignAlgoResolutions &resolutions, bool noHF, double globalthreshold)
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
reco::CaloMET addInfo(edm::Handle< edm::View< reco::Candidate > > towers, CommonMETData met, bool noHF, double globalThreshold)
std::vector< reco::CaloMET > CaloMETCollection
collection of CaloMET objects
TMatrixD getSignificanceMatrix() const
XYZPointD XYZPoint
point in space with cartesian internal representation
void produce_PFClusterMET(edm::Event &event)
metsig::SignAlgoResolutions * resolutions_
std::vector< reco::PFMET > PFMETCollection
collection of PFMET objects
void produce_PFMET(edm::Event &event)
reco::PFMET addInfo(edm::Handle< edm::View< reco::Candidate > > PFCandidates, CommonMETData met)
void runSignificance(metsig::SignAlgoResolutions &resolutions, edm::Handle< edm::View< reco::PFJet > > jets)
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