CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
pat::DiObjectProxy Class Reference

#include <PATDiObjectProxy.h>

Public Member Functions

const reco::Candidatecand1 () const
 Gets the first Candidate. More...
 
const reco::Candidatecand2 () const
 Gets the second Candidate. More...
 
double deltaPhi () const
 Get the phi separation. More...
 
double deltaR () const
 Get the angular separation. More...
 
 DiObjectProxy ()
 Default constructor, requested by ROOT. NEVER use a default constructed item! More...
 
 DiObjectProxy (const reco::Candidate &c1, const reco::Candidate &c2)
 
const Electronele () const
 Get the PAT Electron, if the pair contains one and only one PAT Electron (throw exception otherwise) More...
 
const Electronele1 () const
 Get the first item, if it's a PAT Electron (throw exception otherwise) More...
 
const Electronele2 () const
 Get the second item, if it's a PAT Electron (throw exception otherwise) More...
 
const Photongam () const
 Get the PAT Photon, if the pair contains one and only one PAT Photon (throw exception otherwise) More...
 
const Photongam1 () const
 Get the first item, if it's a PAT Photon (throw exception otherwise) More...
 
const Photongam2 () const
 Get the second item, if it's a PAT Photon (throw exception otherwise) More...
 
const Jetjet () const
 Get the PAT Jet, if the pair contains one and only one PAT Jet (throw exception otherwise) More...
 
const Jetjet1 () const
 Get the first item, if it's a PAT Jet (throw exception otherwise) More...
 
const Jetjet2 () const
 Get the second item, if it's a PAT Jet (throw exception otherwise) More...
 
const METmet () const
 Get the PAT MET, if the pair contains one and only one PAT MET (throw exception otherwise) More...
 
const METmet1 () const
 Get the first item, if it's a PAT MET (throw exception otherwise) More...
 
const METmet2 () const
 Get the second item, if it's a PAT MET (throw exception otherwise) More...
 
const Muonmu () const
 Get the PAT Muon, if the pair contains one and only one PAT Muon (throw exception otherwise) More...
 
const Muonmu1 () const
 Get the first item, if it's a PAT Muon (throw exception otherwise) More...
 
const Muonmu2 () const
 Get the second item, if it's a PAT Muon (throw exception otherwise) More...
 
const GenericParticlepart () const
 Get the PAT GenericParticle, if the pair contains one and only one PAT GenericParticle (throw exception otherwise) More...
 
const GenericParticlepart1 () const
 Get the first item, if it's a PAT GenericParticle (throw exception otherwise) More...
 
const GenericParticlepart2 () const
 Get the second item, if it's a PAT GenericParticle (throw exception otherwise) More...
 
const PFParticlepf () const
 Get the PAT PFParticle, if the pair contains one and only one PAT PFParticle (throw exception otherwise) More...
 
const PFParticlepf1 () const
 Get the first item, if it's a PAT PFParticle (throw exception otherwise) More...
 
const PFParticlepf2 () const
 Get the second item, if it's a PAT PFParticle (throw exception otherwise) More...
 
const Tautau () const
 Get the PAT Tau, if the pair contains one and only one PAT Tau (throw exception otherwise) More...
 
const Tautau1 () const
 Get the first item, if it's a PAT Tau (throw exception otherwise) More...
 
const Tautau2 () const
 Get the second item, if it's a PAT Tau (throw exception otherwise) More...
 
const
reco::Candidate::LorentzVector
totalP4 () const
 Get the total four momentum. More...
 

Private Member Functions

template<typename T >
const TtryGet_ (const reco::Candidate *ptr, const std::type_info *type) const
 
template<typename T >
const TtryGetOne_ () const
 

Private Attributes

const reco::Candidatecand1_
 
const reco::Candidatecand2_
 
reco::Candidate::LorentzVector totalP4_
 
bool totalP4ok_
 
const std::type_info * type1_
 
const std::type_info * type2_
 

Detailed Description

Definition at line 19 of file PATDiObjectProxy.h.

Constructor & Destructor Documentation

pat::DiObjectProxy::DiObjectProxy ( )
inline

Default constructor, requested by ROOT. NEVER use a default constructed item!

Definition at line 23 of file PATDiObjectProxy.h.

pat::DiObjectProxy::DiObjectProxy ( const reco::Candidate c1,
const reco::Candidate c2 
)
inline

Constructor of the pair from two Candidates Note: the Proxy MUST NOT outlive the Candidates, otherwise you get dangling pointers

Definition at line 26 of file PATDiObjectProxy.h.

Member Function Documentation

const reco::Candidate& pat::DiObjectProxy::cand1 ( ) const
inline

Gets the first Candidate.

Definition at line 30 of file PATDiObjectProxy.h.

const reco::Candidate& pat::DiObjectProxy::cand2 ( ) const
inline

Gets the second Candidate.

Definition at line 32 of file PATDiObjectProxy.h.

double pat::DiObjectProxy::deltaPhi ( void  ) const
inline

Get the phi separation.

Definition at line 37 of file PATDiObjectProxy.h.

double pat::DiObjectProxy::deltaR ( ) const
inline

Get the angular separation.

Definition at line 35 of file PATDiObjectProxy.h.

const Electron& pat::DiObjectProxy::ele ( ) const
inline

Get the PAT Electron, if the pair contains one and only one PAT Electron (throw exception otherwise)

Definition at line 51 of file PATDiObjectProxy.h.

const Electron& pat::DiObjectProxy::ele1 ( ) const
inline

Get the first item, if it's a PAT Electron (throw exception otherwise)

Definition at line 68 of file PATDiObjectProxy.h.

const Electron& pat::DiObjectProxy::ele2 ( ) const
inline

Get the second item, if it's a PAT Electron (throw exception otherwise)

Definition at line 85 of file PATDiObjectProxy.h.

const Photon& pat::DiObjectProxy::gam ( ) const
inline

Get the PAT Photon, if the pair contains one and only one PAT Photon (throw exception otherwise)

Definition at line 57 of file PATDiObjectProxy.h.

const Photon& pat::DiObjectProxy::gam1 ( ) const
inline

Get the first item, if it's a PAT Photon (throw exception otherwise)

Definition at line 74 of file PATDiObjectProxy.h.

const Photon& pat::DiObjectProxy::gam2 ( ) const
inline

Get the second item, if it's a PAT Photon (throw exception otherwise)

Definition at line 91 of file PATDiObjectProxy.h.

const Jet& pat::DiObjectProxy::jet ( void  ) const
inline

Get the PAT Jet, if the pair contains one and only one PAT Jet (throw exception otherwise)

Definition at line 59 of file PATDiObjectProxy.h.

const Jet& pat::DiObjectProxy::jet1 ( ) const
inline

Get the first item, if it's a PAT Jet (throw exception otherwise)

Definition at line 76 of file PATDiObjectProxy.h.

const Jet& pat::DiObjectProxy::jet2 ( ) const
inline

Get the second item, if it's a PAT Jet (throw exception otherwise)

Definition at line 93 of file PATDiObjectProxy.h.

const MET& pat::DiObjectProxy::met ( ) const
inline

Get the PAT MET, if the pair contains one and only one PAT MET (throw exception otherwise)

Definition at line 61 of file PATDiObjectProxy.h.

const MET& pat::DiObjectProxy::met1 ( ) const
inline

Get the first item, if it's a PAT MET (throw exception otherwise)

Definition at line 78 of file PATDiObjectProxy.h.

const MET& pat::DiObjectProxy::met2 ( ) const
inline

Get the second item, if it's a PAT MET (throw exception otherwise)

Definition at line 95 of file PATDiObjectProxy.h.

const Muon& pat::DiObjectProxy::mu ( ) const
inline

Get the PAT Muon, if the pair contains one and only one PAT Muon (throw exception otherwise)

Definition at line 53 of file PATDiObjectProxy.h.

const Muon& pat::DiObjectProxy::mu1 ( ) const
inline

Get the first item, if it's a PAT Muon (throw exception otherwise)

Definition at line 70 of file PATDiObjectProxy.h.

const Muon& pat::DiObjectProxy::mu2 ( ) const
inline

Get the second item, if it's a PAT Muon (throw exception otherwise)

Definition at line 87 of file PATDiObjectProxy.h.

const GenericParticle& pat::DiObjectProxy::part ( ) const
inline

Get the PAT GenericParticle, if the pair contains one and only one PAT GenericParticle (throw exception otherwise)

Definition at line 63 of file PATDiObjectProxy.h.

const GenericParticle& pat::DiObjectProxy::part1 ( ) const
inline

Get the first item, if it's a PAT GenericParticle (throw exception otherwise)

Definition at line 80 of file PATDiObjectProxy.h.

const GenericParticle& pat::DiObjectProxy::part2 ( ) const
inline

Get the second item, if it's a PAT GenericParticle (throw exception otherwise)

Definition at line 97 of file PATDiObjectProxy.h.

const PFParticle& pat::DiObjectProxy::pf ( ) const
inline

Get the PAT PFParticle, if the pair contains one and only one PAT PFParticle (throw exception otherwise)

Definition at line 65 of file PATDiObjectProxy.h.

const PFParticle& pat::DiObjectProxy::pf1 ( ) const
inline

Get the first item, if it's a PAT PFParticle (throw exception otherwise)

Definition at line 82 of file PATDiObjectProxy.h.

const PFParticle& pat::DiObjectProxy::pf2 ( ) const
inline

Get the second item, if it's a PAT PFParticle (throw exception otherwise)

Definition at line 99 of file PATDiObjectProxy.h.

const Tau& pat::DiObjectProxy::tau ( ) const
inline

Get the PAT Tau, if the pair contains one and only one PAT Tau (throw exception otherwise)

Definition at line 55 of file PATDiObjectProxy.h.

const Tau& pat::DiObjectProxy::tau1 ( ) const
inline

Get the first item, if it's a PAT Tau (throw exception otherwise)

Definition at line 72 of file PATDiObjectProxy.h.

const Tau& pat::DiObjectProxy::tau2 ( ) const
inline

Get the second item, if it's a PAT Tau (throw exception otherwise)

Definition at line 89 of file PATDiObjectProxy.h.

const reco::Candidate::LorentzVector& pat::DiObjectProxy::totalP4 ( ) const
inline

Get the total four momentum.

Definition at line 42 of file PATDiObjectProxy.h.

template<typename T >
const T& pat::DiObjectProxy::tryGet_ ( const reco::Candidate ptr,
const std::type_info *  type 
) const
inlineprivate

Definition at line 104 of file PATDiObjectProxy.h.

template<typename T >
const T& pat::DiObjectProxy::tryGetOne_ ( ) const
inlineprivate

Definition at line 115 of file PATDiObjectProxy.h.

Member Data Documentation

const reco::Candidate* pat::DiObjectProxy::cand1_
private

Definition at line 135 of file PATDiObjectProxy.h.

const reco::Candidate * pat::DiObjectProxy::cand2_
private

Definition at line 135 of file PATDiObjectProxy.h.

reco::Candidate::LorentzVector pat::DiObjectProxy::totalP4_
mutableprivate

Definition at line 139 of file PATDiObjectProxy.h.

bool pat::DiObjectProxy::totalP4ok_
mutableprivate

Definition at line 138 of file PATDiObjectProxy.h.

const std::type_info* pat::DiObjectProxy::type1_
private

Definition at line 136 of file PATDiObjectProxy.h.

const std::type_info * pat::DiObjectProxy::type2_
private

Definition at line 136 of file PATDiObjectProxy.h.