#include <PATDiObjectProxy.h>
Public Member Functions | |
const reco::Candidate & | cand1 () const |
Gets the first Candidate. More... | |
const reco::Candidate & | cand2 () 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 Electron & | ele () const |
Get the PAT Electron, if the pair contains one and only one PAT Electron (throw exception otherwise) More... | |
const Electron & | ele1 () const |
Get the first item, if it's a PAT Electron (throw exception otherwise) More... | |
const Electron & | ele2 () const |
Get the second item, if it's a PAT Electron (throw exception otherwise) More... | |
const Photon & | gam () const |
Get the PAT Photon, if the pair contains one and only one PAT Photon (throw exception otherwise) More... | |
const Photon & | gam1 () const |
Get the first item, if it's a PAT Photon (throw exception otherwise) More... | |
const Photon & | gam2 () const |
Get the second item, if it's a PAT Photon (throw exception otherwise) More... | |
const Jet & | jet () const |
Get the PAT Jet, if the pair contains one and only one PAT Jet (throw exception otherwise) More... | |
const Jet & | jet1 () const |
Get the first item, if it's a PAT Jet (throw exception otherwise) More... | |
const Jet & | jet2 () const |
Get the second item, if it's a PAT Jet (throw exception otherwise) More... | |
const MET & | met () const |
Get the PAT MET, if the pair contains one and only one PAT MET (throw exception otherwise) More... | |
const MET & | met1 () const |
Get the first item, if it's a PAT MET (throw exception otherwise) More... | |
const MET & | met2 () const |
Get the second item, if it's a PAT MET (throw exception otherwise) More... | |
const Muon & | mu () const |
Get the PAT Muon, if the pair contains one and only one PAT Muon (throw exception otherwise) More... | |
const Muon & | mu1 () const |
Get the first item, if it's a PAT Muon (throw exception otherwise) More... | |
const Muon & | mu2 () const |
Get the second item, if it's a PAT Muon (throw exception otherwise) More... | |
const GenericParticle & | part () const |
Get the PAT GenericParticle, if the pair contains one and only one PAT GenericParticle (throw exception otherwise) More... | |
const GenericParticle & | part1 () const |
Get the first item, if it's a PAT GenericParticle (throw exception otherwise) More... | |
const GenericParticle & | part2 () const |
Get the second item, if it's a PAT GenericParticle (throw exception otherwise) More... | |
const PFParticle & | pf () const |
Get the PAT PFParticle, if the pair contains one and only one PAT PFParticle (throw exception otherwise) More... | |
const PFParticle & | pf1 () const |
Get the first item, if it's a PAT PFParticle (throw exception otherwise) More... | |
const PFParticle & | pf2 () const |
Get the second item, if it's a PAT PFParticle (throw exception otherwise) More... | |
const Tau & | tau () const |
Get the PAT Tau, if the pair contains one and only one PAT Tau (throw exception otherwise) More... | |
const Tau & | tau1 () const |
Get the first item, if it's a PAT Tau (throw exception otherwise) More... | |
const Tau & | tau2 () 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 T & | tryGet_ (const reco::Candidate *ptr, const std::type_info *type) const |
template<typename T > | |
const T & | tryGetOne_ () const |
Private Attributes | |
const reco::Candidate * | cand1_ |
const reco::Candidate * | cand2_ |
reco::Candidate::LorentzVector | totalP4_ |
bool | totalP4ok_ |
const std::type_info * | type1_ |
const std::type_info * | type2_ |
Definition at line 19 of file PATDiObjectProxy.h.
|
inline |
Default constructor, requested by ROOT. NEVER use a default constructed item!
Definition at line 23 of file PATDiObjectProxy.h.
|
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.
|
inline |
|
inline |
|
inline |
Get the phi separation.
Definition at line 37 of file PATDiObjectProxy.h.
References cand1_, cand2_, hiPixelPairStep_cff::deltaPhi, and reco::Candidate::phi().
|
inline |
Get the angular separation.
Definition at line 35 of file PATDiObjectProxy.h.
References cand1_, cand2_, and boostedElectronIsolation_cff::deltaR.
|
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.
|
inline |
Get the first item, if it's a PAT Electron (throw exception otherwise)
Definition at line 68 of file PATDiObjectProxy.h.
References cand1_, and type1_.
|
inline |
Get the second item, if it's a PAT Electron (throw exception otherwise)
Definition at line 85 of file PATDiObjectProxy.h.
References cand2_, and type2_.
|
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.
|
inline |
Get the first item, if it's a PAT Photon (throw exception otherwise)
Definition at line 74 of file PATDiObjectProxy.h.
References cand1_, and type1_.
|
inline |
Get the second item, if it's a PAT Photon (throw exception otherwise)
Definition at line 91 of file PATDiObjectProxy.h.
References cand2_, and type2_.
|
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.
|
inline |
Get the first item, if it's a PAT Jet (throw exception otherwise)
Definition at line 76 of file PATDiObjectProxy.h.
References cand1_, and type1_.
|
inline |
Get the second item, if it's a PAT Jet (throw exception otherwise)
Definition at line 93 of file PATDiObjectProxy.h.
References cand2_, and type2_.
|
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.
|
inline |
Get the first item, if it's a PAT MET (throw exception otherwise)
Definition at line 78 of file PATDiObjectProxy.h.
References cand1_, and type1_.
|
inline |
Get the second item, if it's a PAT MET (throw exception otherwise)
Definition at line 95 of file PATDiObjectProxy.h.
References cand2_, and type2_.
|
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.
|
inline |
Get the first item, if it's a PAT Muon (throw exception otherwise)
Definition at line 70 of file PATDiObjectProxy.h.
References cand1_, and type1_.
|
inline |
Get the second item, if it's a PAT Muon (throw exception otherwise)
Definition at line 87 of file PATDiObjectProxy.h.
References cand2_, and type2_.
|
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.
|
inline |
Get the first item, if it's a PAT GenericParticle (throw exception otherwise)
Definition at line 80 of file PATDiObjectProxy.h.
References cand1_, and type1_.
|
inline |
Get the second item, if it's a PAT GenericParticle (throw exception otherwise)
Definition at line 97 of file PATDiObjectProxy.h.
References cand2_, and type2_.
|
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.
|
inline |
Get the first item, if it's a PAT PFParticle (throw exception otherwise)
Definition at line 82 of file PATDiObjectProxy.h.
References cand1_, and type1_.
|
inline |
Get the second item, if it's a PAT PFParticle (throw exception otherwise)
Definition at line 99 of file PATDiObjectProxy.h.
References cand2_, and type2_.
|
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.
|
inline |
Get the first item, if it's a PAT Tau (throw exception otherwise)
Definition at line 72 of file PATDiObjectProxy.h.
References cand1_, and type1_.
|
inline |
Get the second item, if it's a PAT Tau (throw exception otherwise)
Definition at line 89 of file PATDiObjectProxy.h.
References cand2_, and type2_.
|
inline |
Get the total four momentum.
Definition at line 42 of file PATDiObjectProxy.h.
References cand1_, cand2_, reco::Candidate::p4(), totalP4_, and totalP4ok_.
|
inlineprivate |
Definition at line 104 of file PATDiObjectProxy.h.
References cand1_, className(), and Exception.
|
inlineprivate |
Definition at line 115 of file PATDiObjectProxy.h.
References cand1_, cand2_, className(), Exception, ClassName< T >::name(), type1_, and type2_.
|
private |
|
private |
Definition at line 135 of file PATDiObjectProxy.h.
Referenced by cand2(), deltaPhi(), deltaR(), ele2(), gam2(), jet2(), met2(), mu2(), part2(), pf2(), tau2(), totalP4(), and tryGetOne_().
|
mutableprivate |
Definition at line 139 of file PATDiObjectProxy.h.
Referenced by totalP4().
|
mutableprivate |
Definition at line 138 of file PATDiObjectProxy.h.
Referenced by totalP4().
|
private |