#include <WMuNuCandidate.h>
Public Member Functions | |
double | acop () const |
double | eT () const |
const reco::Muon & | getMuon () const |
const reco::MET & | getNeutrino () const |
double | massT () const |
WMuNuCandidate () | |
WMuNuCandidate (edm::Ptr< reco::Muon >, edm::Ptr< reco::MET >) | |
~WMuNuCandidate () | |
Private Attributes | |
edm::Ptr< Muon > | muon_ |
edm::Ptr< MET > | neutrino_ |
Definition at line 19 of file WMuNuCandidate.h.
WMuNuCandidate::WMuNuCandidate | ( | ) |
Definition at line 10 of file WMuNuCandidate.cc.
{}
WMuNuCandidate::WMuNuCandidate | ( | edm::Ptr< reco::Muon > | muon, |
edm::Ptr< reco::MET > | met | ||
) |
Definition at line 12 of file WMuNuCandidate.cc.
References reco::CompositeCandidate::addDaughter(), and AddFourMomenta::set().
: muon_(muon), neutrino_(met) { addDaughter(*muon,"Muon"); addDaughter(*met,"Met"); AddFourMomenta addP4; addP4.set(*this); //WARNING: W Candidates combine the information from a Muon with the (px,py) information of the MET as the Neutrino // --> There is no Pz information!!!! // Be very careful when using the default Candidate functions (.mass, .mt, .et, etc). They may not be what you are looking for :-). }
WMuNuCandidate::~WMuNuCandidate | ( | ) |
Definition at line 24 of file WMuNuCandidate.cc.
{ }
double WMuNuCandidate::acop | ( | ) | const |
Definition at line 44 of file WMuNuCandidate.cc.
References reco::CompositeCandidate::daughter(), M_PI, reco::LeafCandidate::phi(), and Geom::Phi< T >::value().
Referenced by WMuNuSelector::filter(), and WMuNuProducer::produce().
double WMuNuCandidate::eT | ( | ) | const |
Definition at line 28 of file WMuNuCandidate.cc.
References muon_, and neutrino_.
Referenced by WMuNuSelector::filter(), massT(), and WMuNuProducer::produce().
const reco::Muon& reco::WMuNuCandidate::getMuon | ( | ) | const [inline] |
Definition at line 40 of file WMuNuCandidate.h.
References muon_.
Referenced by WMuNuSelector::filter(), WMuNuProducer::ComparePt::operator()(), and WMuNuProducer::produce().
{return *muon_;};
const reco::MET& reco::WMuNuCandidate::getNeutrino | ( | ) | const [inline] |
Definition at line 41 of file WMuNuCandidate.h.
Referenced by WMuNuSelector::filter(), and WMuNuProducer::produce().
{return *neutrino_;};
double WMuNuCandidate::massT | ( | ) | const |
Definition at line 34 of file WMuNuCandidate.cc.
References eT(), reco::LeafCandidate::mt(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), and mathSSE::sqrt().
Referenced by WMuNuSelector::filter(), and WMuNuProducer::produce().
{ // Candidates have a mt() function which computes the tranverse mass from E & pz. // As MET does not have pz information... WMuNuCandidates have an alternative function to compute the mt quantity // used in the WMuNu Inclusive analysis just from px, py double wpx=px(); double wpy=py(); double mt = eT()*eT() - wpx*wpx - wpy*wpy; mt = (mt>0) ? sqrt(mt) : 0; return mt; }
edm::Ptr<Muon> reco::WMuNuCandidate::muon_ [private] |
Definition at line 41 of file WMuNuCandidate.h.
edm::Ptr<MET> reco::WMuNuCandidate::neutrino_ [private] |
Definition at line 48 of file WMuNuCandidate.h.
Referenced by eT().