CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::WMuNuCandidate Class Reference

#include <WMuNuCandidate.h>

Inheritance diagram for reco::WMuNuCandidate:
reco::CompositeCandidate reco::LeafCandidate reco::Candidate

List of all members.

Public Member Functions

double acop () const
double eT () const
const reco::MuongetMuon () const
const reco::METgetNeutrino () const
double massT () const
 WMuNuCandidate ()
 WMuNuCandidate (edm::Ptr< reco::Muon >, edm::Ptr< reco::MET >)
 ~WMuNuCandidate ()

Private Attributes

edm::Ptr< Muonmuon_
edm::Ptr< METneutrino_

Detailed Description

Definition at line 19 of file WMuNuCandidate.h.


Constructor & Destructor Documentation

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.

{
}

Member Function Documentation

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().

                                 {
      // Acoplanarity between the muon and the MET
       Geom::Phi<double> deltaphi(daughter(0)->phi()-daughter(1)->phi());
       double acop = deltaphi.value();
       if (acop<0) acop = - acop;
       acop = M_PI - acop;
       return acop;
}
double WMuNuCandidate::eT ( ) const

Definition at line 28 of file WMuNuCandidate.cc.

References muon_, and neutrino_.

Referenced by WMuNuSelector::filter(), massT(), and WMuNuProducer::produce().

                               {
 double e_t=0; 
     e_t=muon_->pt()+neutrino_->pt();
 return e_t; 
}
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; 
}

Member Data Documentation

Definition at line 41 of file WMuNuCandidate.h.

Referenced by eT(), and getMuon().

Definition at line 48 of file WMuNuCandidate.h.

Referenced by eT().