41 virtual void endJob()
override;
90 muonTag_(cfg.getUntrackedParameter<edm::
InputTag> (
"MuonTag", edm::
InputTag(
"muons"))),
91 metTag_(cfg.getUntrackedParameter<edm::
InputTag> (
"METTag", edm::
InputTag(
"met")))
93 produces< WMuNuCandidateCollection >();
100 LogTrace(
"")<<
"WMuNuCandidateCollection Stored in the Event";
118 LogError(
"") <<
">>> Muon collection does not exist !!!";
121 int muonCollectionSize = muonCollection->size();
126 LogError(
"") <<
">>> MET collection does not exist !!!";
133 if (muonCollectionSize<1)
return;
140 for (
int indx=0; indx<muonCollectionSize; indx++){
142 if (!muon->isGlobalMuon())
continue;
143 if (muon->globalTrack().
isNull())
continue;
144 if (muon->innerTrack().
isNull())
continue;
147 LogTrace(
"")<<
"Building WMuNu Candidate!";
149 LogTrace(
"") <<
"\t... W mass, W_et: "<<WCand->
massT()<<
", "<<WCand->
eT()<<
"[GeV]";
150 LogTrace(
"") <<
"\t... W_px, W_py: "<<WCand->
px()<<
", "<< WCand->
py() <<
"[GeV]";
154 WMuNuCandidates->push_back(*WCand);
159 ev.
put(WMuNuCandidates);
tuple met
____________________________________________________________________________||
common ppss p3p6s2 common epss epspn46 common const1 w2
const std::string WMuNuCollectionTag_
#define DEFINE_FWK_MODULE(type)
virtual void beginJob() override
virtual double pz() const GCC11_FINAL
z coordinate of momentum vector
virtual double py() const GCC11_FINAL
y coordinate of momentum vector
virtual void produce(edm::Event &, const edm::EventSetup &) override
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual double px() const GCC11_FINAL
x coordinate of momentum vector
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< reco::WMuNuCandidate > WMuNuCandidateCollection
bool operator()(reco::WMuNuCandidate w1, reco::WMuNuCandidate w2) const
bool isNull() const
Checks for null.
WMuNuProducer(const edm::ParameterSet &)
virtual float pt() const GCC11_FINAL
transverse momentum
const reco::Muon & getMuon() const
const reco::MET & getNeutrino() const
virtual void endJob() override