Analysis-level Generic Particle class (e.g. for hadron or muon not fully reconstructed) More...
#include "DataFormats/PatCandidates/interface/GenericParticle.h"
Public Member Functions | |
float | caloIso () const |
virtual CaloTowerRef | caloTower () const |
virtual GenericParticle * | clone () const |
required reimplementation of the Candidate's clone method More... | |
virtual reco::TrackRef | combinedMuon () const |
float | ecalIso () const |
const IsoDeposit * | ecalIsoDeposit () const |
void | ecalIsoDeposit (const IsoDeposit &dep) |
void | embedCaloTower () |
embeds the calotower instead of keeping a reference to it More... | |
void | embedCombined () |
embeds the combined track instead of keeping a reference to it More... | |
void | embedGsfTrack () |
embeds the gsf track instead of keeping a reference to it More... | |
void | embedStandalone () |
embeds the stand-alone track instead of keeping a reference to it More... | |
void | embedSuperCluster () |
embeds the supercluster instead of keeping a reference to it More... | |
void | embedTrack () |
embeds the master track instead of keeping a reference to it More... | |
void | embedTracks () |
embeds the other tracks instead of keeping references More... | |
GenericParticle () | |
default constructor More... | |
GenericParticle (const reco::Candidate &aGenericParticle) | |
constructor from Candidate More... | |
GenericParticle (const edm::RefToBase< reco::Candidate > &aGenericParticleRef) | |
constructor from ref to Candidate More... | |
GenericParticle (const edm::Ptr< reco::Candidate > &aGenericParticleRef) | |
constructor from ref to Candidate More... | |
virtual reco::GsfTrackRef | gsfTrack () const |
float | hcalIso () const |
const IsoDeposit * | hcalIsoDeposit () const |
void | hcalIsoDeposit (const IsoDeposit &dep) |
const IsoDeposit * | isoDeposit (IsolationKeys key) const |
Returns the IsoDeposit associated with some key, or a null pointer if it is not available. More... | |
virtual size_t | numberOfTracks () const |
number of multiple tracks (not including the master one) More... | |
virtual bool | overlap (const Candidate &) const |
float | quality () |
returns a user defined quality value, if set by the user to some meaningful value More... | |
virtual void | setCaloTower (const CaloTowerRef &ref, bool embed=false) |
sets calotower reference (or even embed it into the object) More... | |
virtual void | setCombinedMuon (const reco::TrackRef &ref, bool embed=false) |
sets combined muon track reference (or even embed it into the object) More... | |
void | setEcalIso (float caloIso) |
Sets ecal isolation variable. More... | |
virtual void | setGsfTrack (const reco::GsfTrackRef &ref, bool embed=false) |
sets gsf track reference (or even embed it into the object) More... | |
void | setHcalIso (float caloIso) |
Sets hcal isolation variable. More... | |
void | setIsoDeposit (IsolationKeys key, const IsoDeposit &dep) |
Sets the IsoDeposit associated with some key; if it is already existent, it is overwritten. More... | |
void | setIsolation (IsolationKeys key, float value) |
void | setQuality (float quality) |
sets a user defined quality value More... | |
virtual void | setStandAloneMuon (const reco::TrackRef &ref, bool embed=false) |
sets stand-alone muon track reference (or even embed it into the object) More... | |
virtual void | setSuperCluster (const reco::SuperClusterRef &ref, bool embed=false) |
sets supercluster reference (or even embed it into the object) More... | |
virtual void | setTrack (const reco::TrackRef &ref, bool embed=false) |
sets master track reference (or even embed it into the object) More... | |
void | setTrackIso (float trackIso) |
Sets tracker isolation variable. More... | |
virtual void | setTracks (const reco::TrackRefVector &refs, bool embed=false) |
sets multiple track references (or even embed the tracks into the object - whatch out for disk size issues!) More... | |
void | setUserIso (float value, uint8_t index=0) |
Sets user isolation variable index. More... | |
void | setVertexAssociation (const pat::VertexAssociation &assoc) |
Set a single vertex association. More... | |
void | setVertexAssociations (const std::vector< pat::VertexAssociation > &assocs) |
Set multiple vertex associations. More... | |
virtual reco::TrackRef | standAloneMuon () const |
virtual reco::SuperClusterRef | superCluster () const |
virtual reco::TrackRef | track () const |
virtual reco::TrackRef | track (size_t idx) const |
float | trackIso () const |
const IsoDeposit * | trackIsoDeposit () const |
void | trackIsoDeposit (const IsoDeposit &dep) |
const IsoDeposit * | userIsoDeposit (uint8_t index=0) const |
void | userIsoDeposit (const IsoDeposit &dep, uint8_t index=0) |
float | userIsolation (IsolationKeys key) const |
float | userIsolation (const std::string &key) const |
const pat::VertexAssociation * | vertexAssociation (size_t index=0) const |
Vertex association (or associations, if any). Return null pointer if none has been set. More... | |
const std::vector < pat::VertexAssociation > & | vertexAssociations () const |
Vertex associations. Can be empty if it was not enabled in the config file. More... | |
virtual | ~GenericParticle () |
destructor More... | |
Public Member Functions inherited from pat::PATObject< reco::RecoCandidate > | |
void | addGenParticleRef (const reco::GenParticleRef &ref) |
void | addTriggerObjectMatch (const TriggerObjectStandAlone &trigObj) |
add a trigger match More... | |
void | addUserCand (const std::string &label, const reco::CandidatePtr &data, const bool overwrite=false) |
Set user-defined int. More... | |
void | addUserData (const std::string &label, const T &data, bool transientOnly=false) |
void | addUserDataFromPtr (const std::string &label, const edm::Ptr< pat::UserData > &data) |
void | addUserFloat (const std::string &label, float data, const bool overwrite=false) |
Set user-defined float. More... | |
void | addUserInt (const std::string &label, int32_t data) |
Set user-defined int. More... | |
std::vector< std::pair < std::string, pat::LookupTableRecord > > | efficiencies () const |
Returns the efficiencies as <name,value> pairs (by value) More... | |
const pat::LookupTableRecord & | efficiency (const std::string &name) const |
Returns an efficiency given its name. More... | |
const std::vector< std::string > & | efficiencyNames () const |
Returns the list of the names of the stored efficiencies. More... | |
const std::vector < pat::LookupTableRecord > & | efficiencyValues () const |
Returns the list of the values of the stored efficiencies (the ordering is the same as in efficiencyNames()) More... | |
void | embedGenParticle () |
const reco::GenParticle * | genParticle (size_t idx=0) const |
reco::GenParticleRef | genParticleById (int pdgId, int status, uint8_t autoCharge=0) const |
reco::GenParticleRef | genParticleRef (size_t idx=0) const |
std::vector< reco::GenParticleRef > | genParticleRefs () const |
size_t | genParticlesSize () const |
Number of generator level particles stored as ref or embedded. More... | |
const pat::CandKinResolution & | getKinResolution (const std::string &label="") const |
bool | hasKinResolution (const std::string &label="") const |
Check if the kinematic resolutions are stored into this object (possibly specifying a label for them) More... | |
bool | hasOverlaps (const std::string &label) const |
Returns true if there was at least one overlap for this test label. More... | |
bool | hasUserCand (const std::string &key) const |
Return true if there is a user-defined int with a given name. More... | |
bool | hasUserData (const std::string &key) const |
Check if user data with a specific type is present. More... | |
bool | hasUserFloat (const std::string &key) const |
Return true if there is a user-defined float with a given name. More... | |
bool | hasUserFloat (const char *key) const |
a CINT-friendly interface More... | |
bool | hasUserInt (const std::string &key) const |
Return true if there is a user-defined int with a given name. More... | |
const reco::Candidate * | originalObject () const |
access to the original object; returns zero for null Ref and throws for unavailable collection More... | |
const edm::Ptr< reco::Candidate > & | originalObjectRef () const |
reference to original object. Returns a null reference if not available More... | |
const std::vector< std::string > & | overlapLabels () const |
Returns the labels of the overlap tests that found at least one overlap. More... | |
const reco::CandidatePtrVector & | overlaps (const std::string &label) const |
PATObject () | |
default constructor More... | |
PATObject (const reco::RecoCandidate &obj) | |
constructor from a base object (leaves invalid reference to original object!) More... | |
PATObject (const edm::RefToBase< reco::RecoCandidate > &ref) | |
constructor from reference More... | |
PATObject (const edm::Ptr< reco::RecoCandidate > &ref) | |
constructor from reference More... | |
double | resolE (const std::string &label="") const |
Resolution on energy, possibly with a label to specify which resolution to use. More... | |
double | resolEt (const std::string &label="") const |
Resolution on et, possibly with a label to specify which resolution to use. More... | |
double | resolEta (const std::string &label="") const |
Resolution on eta, possibly with a label to specify which resolution to use. More... | |
double | resolM (const std::string &label="") const |
double | resolP (const std::string &label="") const |
Resolution on p, possibly with a label to specify which resolution to use. More... | |
double | resolPhi (const std::string &label="") const |
Resolution on phi, possibly with a label to specify which resolution to use. More... | |
double | resolPInv (const std::string &label="") const |
Resolution on 1/p, possibly with a label to specify which resolution to use. More... | |
double | resolPt (const std::string &label="") const |
Resolution on pt, possibly with a label to specify which resolution to use. More... | |
double | resolPx (const std::string &label="") const |
Resolution on px, possibly with a label to specify which resolution to use. More... | |
double | resolPy (const std::string &label="") const |
Resolution on py, possibly with a label to specify which resolution to use. More... | |
double | resolPz (const std::string &label="") const |
Resolution on pz, possibly with a label to specify which resolution to use. More... | |
double | resolTheta (const std::string &label="") const |
Resolution on theta, possibly with a label to specify which resolution to use. More... | |
void | setEfficiency (const std::string &name, const pat::LookupTableRecord &value) |
void | setGenParticle (const reco::GenParticle &particle) |
Set the generator level particle from a particle not in the Event (embedding it, of course) More... | |
void | setGenParticleRef (const reco::GenParticleRef &ref, bool embed=false) |
Set the generator level particle reference. More... | |
void | setKinResolution (const pat::CandKinResolution &resol, const std::string &label="") |
Add a kinematic resolution to this object (possibly with a label) More... | |
void | setOverlaps (const std::string &label, const reco::CandidatePtrVector &overlaps) |
const TriggerObjectStandAlone * | triggerObjectMatch (const size_t idx=0) const |
get one matched trigger object by index More... | |
const TriggerObjectStandAlone * | triggerObjectMatchByAlgorithm (const std::string &nameAlgorithm, const bool algoCondAccepted=true, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByAlgorithm (const char *nameAlgorithm, const bool algoCondAccepted=true, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByAlgorithm (const std::string &nameAlgorithm, const unsigned algoCondAccepted, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByAlgorithm (const char *nameAlgorithm, const unsigned algoCondAccepted, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByCollection (const std::string &coll, const size_t idx=0) const |
get one matched trigger object from a certain collection by index More... | |
const TriggerObjectStandAlone * | triggerObjectMatchByCollection (const char *coll, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByCondition (const std::string &nameCondition, const size_t idx=0) const |
get one matched L1 object used in a succeeding object combination of a certain L1 condition by index More... | |
const TriggerObjectStandAlone * | triggerObjectMatchByCondition (const char *nameCondition, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByFilter (const std::string &labelFilter, const size_t idx=0) const |
get one matched HLT object used in a certain HLT filter by index More... | |
const TriggerObjectStandAlone * | triggerObjectMatchByFilter (const char *labelFilter, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByFilterID (const unsigned triggerObjectType, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByPath (const std::string &namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByPath (const char *namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByPath (const std::string &namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByPath (const char *namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1, const size_t idx=0) const |
const TriggerObjectStandAlone * | triggerObjectMatchByType (const trigger::TriggerObjectType triggerObjectType, const size_t idx=0) const |
get one matched trigger object of a certain type by index More... | |
const TriggerObjectStandAlone * | triggerObjectMatchByType (const unsigned triggerObjectType, const size_t idx=0) const |
const TriggerObjectStandAloneCollection & | triggerObjectMatches () const |
get all matched trigger objects More... | |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByAlgorithm (const std::string &nameAlgorithm, const bool algoCondAccepted=true) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByAlgorithm (const char *nameAlgorithm, const bool algoCondAccepted=true) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByAlgorithm (const std::string &nameAlgorithm, const unsigned algoCondAccepted) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByAlgorithm (const char *nameAlgorithm, const unsigned algoCondAccepted) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByCollection (const std::string &coll) const |
get all matched trigger objects from a certain collection More... | |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByCollection (const char *coll) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByCondition (const std::string &nameCondition) const |
get all matched L1 objects used in a succeeding object combination of a certain L1 condition More... | |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByCondition (const char *nameCondition) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByFilter (const std::string &labelFilter) const |
get all matched HLT objects used in a certain HLT filter More... | |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByFilter (const char *labelFilter) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByFilterID (const unsigned triggerObjectType) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByPath (const std::string &namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByPath (const char *namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByPath (const std::string &namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByPath (const char *namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByType (const trigger::TriggerObjectType triggerObjectType) const |
const TriggerObjectStandAloneCollection | triggerObjectMatchesByType (const unsigned triggerObjectType) const |
void | unpackTriggerObjectPathNames (const edm::TriggerNames &names) |
unpack path names of matched trigger objects (if they were packed before embedding, which is not normally the case) More... | |
reco::CandidatePtr | userCand (const std::string &key) const |
const std::vector< std::string > & | userCandNames () const |
Get list of user-defined cand names. More... | |
const T * | userData (const std::string &key) const |
Returns user-defined data. Returns NULL if the data is not present, or not of type T. More... | |
const void * | userDataBare (const std::string &key) const |
const std::vector< std::string > & | userDataNames () const |
Get list of user data object names. More... | |
const std::string & | userDataObjectType (const std::string &key) const |
Get human-readable type of user data object, for debugging. More... | |
float | userFloat (const std::string &key) const |
float | userFloat (const char *key) const |
a CINT-friendly interface More... | |
const std::vector< std::string > & | userFloatNames () const |
Get list of user-defined float names. More... | |
std::vector< float > | userFloatRange (const std::string &key) const |
return a range of values corresponding to key More... | |
int32_t | userInt (const std::string &key) const |
const std::vector< std::string > & | userIntNames () const |
Get list of user-defined int names. More... | |
std::vector< int > | userIntRange (const std::string &key) const |
returns a range of values corresponding to key More... | |
virtual | ~PATObject () |
destructor More... | |
Public Member Functions inherited from reco::RecoCandidate | |
virtual const Track * | bestTrack () const |
best track pointer More... | |
virtual TrackBaseRef | bestTrackRef () const |
best track RefToBase More... | |
virtual TrackType | bestTrackType () const |
track type More... | |
virtual float | dxyError () const |
uncertainty on dxy More... | |
virtual float | dzError () const |
uncertainty on dz More... | |
virtual bool | overlap (const Candidate &) const =0 |
check overlap with another candidate More... | |
RecoCandidate () | |
default constructor More... | |
template<typename P4 > | |
RecoCandidate (Charge q, const P4 &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0) | |
constructor from values More... | |
virtual | ~RecoCandidate () |
destructor More... | |
Public Member Functions inherited from reco::LeafCandidate | |
virtual Vector | boostToCM () const |
virtual int | charge () const |
electric charge More... | |
void | construct (int qx3, float pt, float eta, float phi, float mass, const Point &vtx, int pdgId, int status) |
virtual const Candidate * | daughter (size_type) const |
return daughter at a given position (throws an exception) More... | |
virtual Candidate * | daughter (size_type) |
return daughter at a given position (throws an exception) More... | |
virtual Candidate * | daughter (const std::string &s) |
return daughter with a specified role name More... | |
virtual const Candidate * | daughter (const std::string &s) const |
return daughter with a specified role name More... | |
virtual double | energy () const |
energy More... | |
virtual double | et () const |
transverse energy More... | |
virtual double | et2 () const |
transverse energy squared (use this for cut!) More... | |
virtual double | eta () const |
momentum pseudorapidity More... | |
virtual void | fillVertexCovariance (CovarianceMatrix &v) const |
fill SMatrix More... | |
template<typename T > | |
T | get () const |
get a component More... | |
template<typename T , typename Tag > | |
T | get () const |
get a component More... | |
template<typename T > | |
T | get (size_type i) const |
get a component More... | |
template<typename T , typename Tag > | |
T | get (size_type i) const |
get a component More... | |
virtual bool | hasMasterClone () const |
virtual bool | hasMasterClonePtr () const |
virtual bool | isCaloMuon () const |
virtual bool | isConvertedPhoton () const |
virtual bool | isElectron () const |
virtual bool | isGlobalMuon () const |
virtual bool | isJet () const |
virtual bool | isMuon () const |
virtual bool | isPhoton () const |
virtual bool | isStandAloneMuon () const |
virtual bool | isTrackerMuon () const |
LeafCandidate () | |
LeafCandidate (const Candidate &c) | |
template<typename... Args> | |
LeafCandidate (Args &&...args) | |
LeafCandidate (LeafCandidate &rh) | |
LeafCandidate (LeafCandidate &&)=default | |
LeafCandidate (LeafCandidate const &)=default | |
virtual bool | longLived () const |
is long lived? More... | |
virtual double | mass () const |
mass More... | |
virtual bool | massConstraint () const |
do mass constraint? More... | |
virtual double | massSqr () const |
mass squared More... | |
virtual const CandidateBaseRef & | masterClone () const |
virtual const CandidatePtr & | masterClonePtr () const |
template<typename Ref > | |
Ref | masterRef () const |
cast master clone reference to a concrete type More... | |
virtual Vector | momentum () const |
spatial momentum vector More... | |
virtual const Candidate * | mother (size_type) const |
return mother at a given position (throws an exception) More... | |
virtual double | mt () const |
transverse mass More... | |
virtual double | mtSqr () const |
transverse mass squared More... | |
template<typename T > | |
size_type | numberOf () const |
number of components More... | |
template<typename T , typename Tag > | |
size_type | numberOf () const |
number of components More... | |
virtual size_t | numberOfDaughters () const |
number of daughters More... | |
virtual size_t | numberOfMothers () const |
number of mothers More... | |
virtual size_t | numberOfSourceCandidatePtrs () const |
LeafCandidate & | operator= (LeafCandidate &&)=default |
LeafCandidate & | operator= (LeafCandidate const &)=default |
virtual double | p () const |
magnitude of momentum vector More... | |
virtual const LorentzVector & | p4 () const |
four-momentum Lorentz vector More... | |
virtual int | pdgId () const |
PDG identifier. More... | |
virtual double | phi () const |
momentum azimuthal angle More... | |
virtual const PolarLorentzVector & | polarP4 () const |
four-momentum Lorentz vector More... | |
virtual double | pt () const |
transverse momentum More... | |
virtual double | px () const |
x coordinate of momentum vector More... | |
virtual double | py () const |
y coordinate of momentum vector More... | |
virtual double | pz () const |
z coordinate of momentum vector More... | |
virtual double | rapidity () const |
rapidity More... | |
virtual void | setCharge (Charge q) |
set electric charge More... | |
virtual void | setLongLived () |
virtual void | setMass (double m) |
set particle mass More... | |
virtual void | setMassConstraint () |
virtual void | setP4 (const LorentzVector &p4) |
set 4-momentum More... | |
virtual void | setP4 (const PolarLorentzVector &p4) |
set 4-momentum More... | |
virtual void | setPdgId (int pdgId) |
virtual void | setPz (double pz) |
virtual void | setStatus (int status) |
set status word More... | |
virtual void | setThreeCharge (Charge qx3) |
set electric charge More... | |
virtual void | setVertex (const Point &vertex) |
set vertex More... | |
virtual CandidatePtr | sourceCandidatePtr (size_type i) const |
virtual int | status () const |
status word More... | |
virtual double | theta () const |
momentum polar angle More... | |
virtual int | threeCharge () const |
electric charge More... | |
virtual const Point & | vertex () const |
vertex position (overwritten by PF...) More... | |
virtual double | vertexChi2 () const |
chi-squares More... | |
virtual double | vertexCovariance (int i, int j) const |
(i, j)-th element of error matrix, i, j = 0, ... 2 More... | |
CovarianceMatrix | vertexCovariance () const |
return SMatrix More... | |
virtual double | vertexNdof () const |
virtual double | vertexNormalizedChi2 () const |
chi-squared divided by n.d.o.f. More... | |
virtual double | vx () const |
x coordinate of vertex position More... | |
virtual double | vy () const |
y coordinate of vertex position More... | |
virtual double | vz () const |
z coordinate of vertex position More... | |
virtual double | y () const |
rapidity More... | |
virtual | ~LeafCandidate () |
destructor More... | |
Public Member Functions inherited from reco::Candidate | |
const_iterator | begin () const |
first daughter const_iterator More... | |
iterator | begin () |
first daughter iterator More... | |
Candidate () | |
default constructor More... | |
const_iterator | end () const |
last daughter const_iterator More... | |
iterator | end () |
last daughter iterator More... | |
template<typename T > | |
T | get () const |
get a component More... | |
template<typename T , typename Tag > | |
T | get () const |
get a component More... | |
template<typename T > | |
T | get (size_type i) const |
get a component More... | |
template<typename T , typename Tag > | |
T | get (size_type i) const |
get a component More... | |
template<typename Ref > | |
Ref | masterRef () const |
cast master clone reference to a concrete type More... | |
template<typename T > | |
size_type | numberOf () const |
number of components More... | |
template<typename T , typename Tag > | |
size_type | numberOf () const |
number of components More... | |
virtual void | setSourceCandidatePtr (const CandidatePtr &ptr) |
Set the ptr to the source Candidate. More... | |
virtual | ~Candidate () |
destructor More... | |
Protected Types | |
typedef std::vector< std::pair < IsolationKeys, pat::IsoDeposit > > | IsoDepositPairs |
Protected Member Functions | |
void | fillInFrom (const reco::Candidate &cand) |
Protected Member Functions inherited from reco::RecoCandidate | |
template<typename R > | |
bool | checkOverlap (const R &r1, const R &r2) const |
check if two components overlap More... | |
Additional Inherited Members | |
Public Types inherited from pat::PATObject< reco::RecoCandidate > | |
typedef reco::RecoCandidate | base_type |
Public Types inherited from reco::RecoCandidate | |
enum | TrackType { noTrackType, recoTrackType, gsfTrackType } |
track type More... | |
Public Types inherited from reco::LeafCandidate | |
typedef int | Charge |
electric charge type More... | |
typedef CandidateCollection | daughters |
collection of daughter candidates More... | |
typedef unsigned int | index |
typedef math::XYZTLorentzVector | LorentzVector |
Lorentz vector. More... | |
typedef math::XYZPoint | Point |
point in the space More... | |
typedef math::PtEtaPhiMLorentzVector | PolarLorentzVector |
Lorentz vector. More... | |
typedef math::XYZVector | Vector |
point in the space More... | |
Public Types inherited from reco::Candidate | |
enum | { dimension = 3 } |
enum | { size = dimension * (dimension + 1)/2 } |
matix size More... | |
typedef int | Charge |
electric charge type More... | |
typedef candidate::const_iterator | const_iterator |
typedef math::Error< dimension > ::type | CovarianceMatrix |
covariance error matrix (3x3) More... | |
typedef unsigned int | index |
index type More... | |
typedef candidate::iterator | iterator |
typedef math::XYZTLorentzVector | LorentzVector |
Lorentz vector. More... | |
typedef math::XYZPoint | Point |
point in the space More... | |
typedef math::PtEtaPhiMLorentzVector | PolarLorentzVector |
Lorentz vector. More... | |
typedef size_t | size_type |
typedef math::XYZVector | Vector |
point in the space More... | |
Analysis-level Generic Particle class (e.g. for hadron or muon not fully reconstructed)
GenericParticle implements the analysis-level generic particle class within the 'pat' namespace.
Definition at line 40 of file GenericParticle.h.
|
protected |
Definition at line 281 of file GenericParticle.h.
GenericParticle::GenericParticle | ( | ) |
pat::GenericParticle::GenericParticle | ( | const reco::Candidate & | aGenericParticle | ) |
constructor from Candidate
pat::GenericParticle::GenericParticle | ( | const edm::RefToBase< reco::Candidate > & | aGenericParticleRef | ) |
constructor from ref to Candidate
pat::GenericParticle::GenericParticle | ( | const edm::Ptr< reco::Candidate > & | aGenericParticleRef | ) |
constructor from ref to Candidate
|
virtual |
|
inline |
Return the sum of ecal and hcal isolation variable that were stored in this object when produced, or -1.0 if at least one is missing
Definition at line 196 of file GenericParticle.h.
References pat::CaloIso, and userIsolation().
Referenced by ZToMuMuIsolationSelector< Isolator >::ZToMuMuIsolationSelector().
|
inlinevirtual |
reference to a CaloTower (might be transient ref if CaloTower is embedded) returns null ref if there is no calotower
Reimplemented from reco::RecoCandidate.
Definition at line 89 of file GenericParticle.h.
References caloTower_, caloTowerRef_, and edm::SortedCollection< T, SORT >::empty().
Referenced by overlap().
|
inlinevirtual |
required reimplementation of the Candidate's clone method
Reimplemented from reco::RecoCandidate.
Definition at line 56 of file GenericParticle.h.
References GenericParticle().
|
inlinevirtual |
reference to a combined muon Track (might be transient ref if SuperCluster is embedded) returns null ref if there is no combined muon track
Reimplemented from reco::RecoCandidate.
Definition at line 83 of file GenericParticle.h.
References combinedTrack_, and combinedTrackRef_.
Referenced by overlap().
|
inline |
Return the ecal isolation variable that was stored in this object when produced, or -1.0 if there is none
Definition at line 199 of file GenericParticle.h.
References pat::EcalIso, and userIsolation().
Referenced by ZToMuMuIsolationSelector< Isolator >::ZToMuMuIsolationSelector().
|
inline |
Definition at line 237 of file GenericParticle.h.
References pat::EcalIso, and isoDeposit().
|
inline |
Definition at line 243 of file GenericParticle.h.
References pat::EcalIso, and setIsoDeposit().
void GenericParticle::embedCaloTower | ( | ) |
embeds the calotower instead of keeping a reference to it
Definition at line 137 of file GenericParticle.cc.
References caloTower_, caloTowerRef_, edm::SortedCollection< T, SORT >::empty(), edm::Ref< C, T, F >::isNonnull(), edm::SortedCollection< T, SORT >::push_back(), and edm::SortedCollection< T, SORT >::swap().
Referenced by pat::PATGenericParticleProducer::produce(), and setCaloTower().
void GenericParticle::embedCombined | ( | ) |
embeds the combined track instead of keeping a reference to it
Definition at line 118 of file GenericParticle.cc.
References combinedTrack_, combinedTrackRef_, and edm::Ref< C, T, F >::isNonnull().
Referenced by pat::PATGenericParticleProducer::produce(), and setCombinedMuon().
void GenericParticle::embedGsfTrack | ( | ) |
embeds the gsf track instead of keeping a reference to it
Definition at line 124 of file GenericParticle.cc.
References gsfTrack_, gsfTrackRef_, and edm::Ref< C, T, F >::isNonnull().
Referenced by pat::PATGenericParticleProducer::produce(), and setGsfTrack().
void GenericParticle::embedStandalone | ( | ) |
embeds the stand-alone track instead of keeping a reference to it
Definition at line 112 of file GenericParticle.cc.
References edm::Ref< C, T, F >::isNonnull(), standaloneTrack_, and standaloneTrackRef_.
Referenced by pat::PATGenericParticleProducer::produce(), and setStandAloneMuon().
void GenericParticle::embedSuperCluster | ( | ) |
embeds the supercluster instead of keeping a reference to it
Definition at line 131 of file GenericParticle.cc.
References edm::Ref< C, T, F >::isNonnull(), superCluster_, and superClusterRef_.
Referenced by pat::PATGenericParticleProducer::produce(), and setSuperCluster().
void GenericParticle::embedTrack | ( | ) |
embeds the master track instead of keeping a reference to it
Definition at line 97 of file GenericParticle.cc.
References edm::Ref< C, T, F >::isNonnull(), track_, and trackRef_.
Referenced by pat::PATGenericParticleProducer::produce(), and setTrack().
void GenericParticle::embedTracks | ( | ) |
embeds the other tracks instead of keeping references
Definition at line 103 of file GenericParticle.cc.
References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), edm::RefVector< C, T, F >::size(), trackRefs_, and tracks_.
Referenced by pat::PATGenericParticleProducer::produce(), and setTracks().
|
protected |
Definition at line 144 of file GenericParticle.cc.
References reco::Candidate::charge(), i, reco::Candidate::pdgId(), reco::Candidate::polarP4(), edm::RefVector< C, T, F >::push_back(), setCaloTower(), reco::LeafCandidate::setCharge(), setCombinedMuon(), setGsfTrack(), reco::LeafCandidate::setP4(), reco::LeafCandidate::setPdgId(), setStandAloneMuon(), reco::LeafCandidate::setStatus(), setSuperCluster(), setTrack(), setTracks(), reco::LeafCandidate::setVertex(), reco::Candidate::status(), testEve_cfg::tracks, and reco::Candidate::vertex().
|
inlinevirtual |
reference to a GsfTrack (might be transient ref if SuperCluster is embedded) returns null ref if there is no gsf track
Reimplemented from reco::RecoCandidate.
Definition at line 77 of file GenericParticle.h.
References gsfTrack_, and gsfTrackRef_.
Referenced by Electron.Electron::dxy(), Electron.Electron::dz(), Electron.Electron::edxy(), Electron.Electron::edz(), Electron.Electron::lostInner(), Electron.Electron::mvaIDZZ(), and overlap().
|
inline |
Return the hcal isolation variable that was stored in this object when produced, or -1.0 if there is none
Definition at line 202 of file GenericParticle.h.
References pat::HcalIso, and userIsolation().
Referenced by ZToMuMuIsolationSelector< Isolator >::ZToMuMuIsolationSelector().
|
inline |
Definition at line 238 of file GenericParticle.h.
References pat::HcalIso, and isoDeposit().
|
inline |
Definition at line 244 of file GenericParticle.h.
References pat::HcalIso, and setIsoDeposit().
|
inline |
Returns the IsoDeposit associated with some key, or a null pointer if it is not available.
Definition at line 217 of file GenericParticle.h.
References isoDeposits_.
Referenced by ZMuMuIsolationAnalyzer::analyze(), ZMuMu_Radiative_analyzer::analyze(), ecalIsoDeposit(), hcalIsoDeposit(), trackIsoDeposit(), and userIsoDeposit().
|
inlinevirtual |
number of multiple tracks (not including the master one)
Reimplemented from reco::RecoCandidate.
Definition at line 74 of file GenericParticle.h.
References edm::RefVector< C, T, F >::size(), trackRefs_, and tracks_.
Referenced by track().
|
virtual |
Checks for overlap with another candidate. It will return 'true' if the other candidate is a RecoCandidate, and if they reference to at least one same non null track, supercluster or calotower (except for the multiple tracks) NOTE: It won't work with embedded references
Definition at line 171 of file GenericParticle.cc.
References reco::RecoCandidate::caloTower(), caloTower(), reco::RecoCandidate::combinedMuon(), combinedMuon(), reco::RecoCandidate::gsfTrack(), gsfTrack(), edm::Ref< C, T, F >::isNonnull(), reco::RecoCandidate::standAloneMuon(), standAloneMuon(), reco::RecoCandidate::superCluster(), superCluster(), reco::RecoCandidate::track(), and track().
|
inline |
returns a user defined quality value, if set by the user to some meaningful value
Definition at line 122 of file GenericParticle.h.
References quality_.
Referenced by setQuality().
|
virtual |
sets calotower reference (or even embed it into the object)
Definition at line 85 of file GenericParticle.cc.
References caloTower_, caloTowerRef_, embedCaloTower(), edm::SortedCollection< T, SORT >::empty(), and edm::SortedCollection< T, SORT >::swap().
Referenced by fillInFrom().
|
virtual |
sets combined muon track reference (or even embed it into the object)
Definition at line 67 of file GenericParticle.cc.
References combinedTrack_, combinedTrackRef_, and embedCombined().
Referenced by fillInFrom().
|
inline |
Sets ecal isolation variable.
Definition at line 208 of file GenericParticle.h.
References pat::EcalIso, and setIsolation().
|
virtual |
sets gsf track reference (or even embed it into the object)
Definition at line 73 of file GenericParticle.cc.
References embedGsfTrack(), gsfTrack_, and gsfTrackRef_.
Referenced by fillInFrom().
|
inline |
Sets hcal isolation variable.
Definition at line 210 of file GenericParticle.h.
References pat::HcalIso, and setIsolation().
|
inline |
Sets the IsoDeposit associated with some key; if it is already existent, it is overwritten.
Definition at line 227 of file GenericParticle.h.
References isoDeposits_.
Referenced by ecalIsoDeposit(), hcalIsoDeposit(), pat::PATGenericParticleProducer::produce(), trackIsoDeposit(), and userIsoDeposit().
|
inline |
Sets the isolation variable for a specifc key. Note that you can't set isolation for a pseudo-key like CaloIso
Definition at line 176 of file GenericParticle.h.
References Exception, isolations_, relval_steps::key, and relativeConstraints::value.
Referenced by ZMuMuTrackUserData::produce(), pat::PATGenericParticleProducer::produce(), setEcalIso(), setHcalIso(), setTrackIso(), and setUserIso().
|
inline |
sets a user defined quality value
Definition at line 124 of file GenericParticle.h.
References quality(), and quality_.
Referenced by pat::PATGenericParticleProducer::produce().
|
virtual |
sets stand-alone muon track reference (or even embed it into the object)
Definition at line 61 of file GenericParticle.cc.
References embedStandalone(), standaloneTrack_, and standaloneTrackRef_.
Referenced by fillInFrom().
|
virtual |
sets supercluster reference (or even embed it into the object)
Definition at line 79 of file GenericParticle.cc.
References embedSuperCluster(), superCluster_, and superClusterRef_.
Referenced by fillInFrom().
|
virtual |
sets master track reference (or even embed it into the object)
Definition at line 49 of file GenericParticle.cc.
References embedTrack(), track_, and trackRef_.
Referenced by fillInFrom().
|
inline |
Sets tracker isolation variable.
Definition at line 206 of file GenericParticle.h.
References setIsolation(), and pat::TrackIso.
|
virtual |
sets multiple track references (or even embed the tracks into the object - whatch out for disk size issues!)
Definition at line 55 of file GenericParticle.cc.
References embedTracks(), trackRefs_, and tracks_.
Referenced by fillInFrom().
|
inline |
Sets user isolation variable index.
Definition at line 212 of file GenericParticle.h.
References setIsolation(), and pat::UserBaseIso.
|
inline |
Set a single vertex association.
Definition at line 252 of file GenericParticle.h.
References vtxAss_.
Referenced by pat::PATGenericParticleProducer::produce().
|
inline |
Set multiple vertex associations.
Definition at line 254 of file GenericParticle.h.
References vtxAss_.
|
inlinevirtual |
reference to a stand-alone muon Track (might be transient ref if SuperCluster is embedded) returns null ref if there is no stand-alone muon track
Reimplemented from reco::RecoCandidate.
Definition at line 80 of file GenericParticle.h.
References standaloneTrack_, and standaloneTrackRef_.
Referenced by overlap().
|
inlinevirtual |
reference to a SuperCluster (might be transient ref if SuperCluster is embedded) returns null ref if there is no supercluster
Reimplemented from reco::RecoCandidate.
Definition at line 86 of file GenericParticle.h.
References superCluster_, and superClusterRef_.
Referenced by Electron.Electron::absEffAreaIso(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDRun2(), Electron.Electron::mvaIDTight(), and overlap().
|
inlinevirtual |
reference to a master track (might be transient refs if Tracks are embedded) returns null ref if there is no master track
Reimplemented from reco::RecoCandidate.
Definition at line 66 of file GenericParticle.h.
References track_, and trackRef_.
Referenced by ZMuMu_vtxAnalyzer::analyze(), overlap(), ZMuMuTrackUserData::produce(), and ZToLLEdmNtupleDumper::produce().
|
inlinevirtual |
reference to one of a set of multiple tracks (might be transient refs if Tracks are embedded) throws exception if idx >= numberOfTracks()
Reimplemented from reco::RecoCandidate.
Definition at line 69 of file GenericParticle.h.
References Exception, customizeTrackingMonitorSeedNumber::idx, numberOfTracks(), trackRefs_, and tracks_.
|
inline |
Return the tracker isolation variable that was stored in this object when produced, or -1.0 if there is none
Definition at line 192 of file GenericParticle.h.
References pat::TrackIso, and userIsolation().
Referenced by ZMuMu_vtxAnalyzer::analyze(), ZMuMu_efficiencyAnalyzer::analyze(), and ZToMuMuIsolationSelector< Isolator >::ZToMuMuIsolationSelector().
|
inline |
Definition at line 236 of file GenericParticle.h.
References isoDeposit(), and pat::TrackIso.
|
inline |
Definition at line 242 of file GenericParticle.h.
References setIsoDeposit(), and pat::TrackIso.
|
inline |
Definition at line 239 of file GenericParticle.h.
References isoDeposit(), and pat::UserBaseIso.
|
inline |
Definition at line 245 of file GenericParticle.h.
References setIsoDeposit(), and pat::UserBaseIso.
|
inline |
Returns the isolation variable for a specifc key (or pseudo-key like CaloIso), or -1.0 if not available
Definition at line 129 of file GenericParticle.h.
References pat::CaloIso, pat::EcalIso, pat::HcalIso, isolations_, and relval_steps::key.
Referenced by caloIso(), ecalIso(), hcalIso(), trackIso(), and userIsolation().
|
inline |
Returns the isolation variable for string type function arguments (to be used with the cut-string parser); the possible values of the strings are the enums defined in DataFormats/PatCandidates/interface/Isolation.h
Definition at line 152 of file GenericParticle.h.
References pat::CaloIso, pat::EcalIso, pat::HcalIso, relval_steps::key, pat::PfAllParticleIso, pat::PfChargedHadronIso, pat::PfGammaIso, pat::PfNeutralHadronIso, AlCaHLTBitMon_QueryRunRegistry::string, pat::TrackIso, pat::User1Iso, pat::User2Iso, pat::User3Iso, pat::User4Iso, pat::User5Iso, pat::UserBaseIso, and userIsolation().
|
inline |
Vertex association (or associations, if any). Return null pointer if none has been set.
Definition at line 248 of file GenericParticle.h.
References vtxAss_.
|
inline |
Vertex associations. Can be empty if it was not enabled in the config file.
Definition at line 250 of file GenericParticle.h.
References vtxAss_.
|
protected |
Definition at line 266 of file GenericParticle.h.
Referenced by caloTower(), embedCaloTower(), and setCaloTower().
|
protected |
Definition at line 265 of file GenericParticle.h.
Referenced by caloTower(), embedCaloTower(), and setCaloTower().
|
protected |
Definition at line 258 of file GenericParticle.h.
Referenced by combinedMuon(), embedCombined(), and setCombinedMuon().
|
protected |
Definition at line 257 of file GenericParticle.h.
Referenced by combinedMuon(), embedCombined(), and setCombinedMuon().
|
protected |
Definition at line 262 of file GenericParticle.h.
Referenced by embedGsfTrack(), gsfTrack(), and setGsfTrack().
|
protected |
Definition at line 261 of file GenericParticle.h.
Referenced by embedGsfTrack(), gsfTrack(), and setGsfTrack().
|
protected |
Definition at line 282 of file GenericParticle.h.
Referenced by isoDeposit(), and setIsoDeposit().
|
protected |
Definition at line 283 of file GenericParticle.h.
Referenced by setIsolation(), and userIsolation().
|
protected |
Definition at line 278 of file GenericParticle.h.
Referenced by quality(), and setQuality().
|
protected |
Definition at line 258 of file GenericParticle.h.
Referenced by embedStandalone(), setStandAloneMuon(), and standAloneMuon().
|
protected |
Definition at line 257 of file GenericParticle.h.
Referenced by embedStandalone(), setStandAloneMuon(), and standAloneMuon().
|
protected |
Definition at line 270 of file GenericParticle.h.
Referenced by embedSuperCluster(), setSuperCluster(), and superCluster().
|
protected |
Definition at line 269 of file GenericParticle.h.
Referenced by embedSuperCluster(), setSuperCluster(), and superCluster().
|
protected |
Definition at line 258 of file GenericParticle.h.
Referenced by embedTrack(), setTrack(), and track().
|
protected |
Definition at line 257 of file GenericParticle.h.
Referenced by embedTrack(), setTrack(), and track().
|
protected |
Definition at line 273 of file GenericParticle.h.
Referenced by embedTracks(), numberOfTracks(), setTracks(), and track().
|
protected |
Definition at line 274 of file GenericParticle.h.
Referenced by embedTracks(), numberOfTracks(), setTracks(), and track().
|
protected |
Definition at line 286 of file GenericParticle.h.
Referenced by setVertexAssociation(), setVertexAssociations(), vertexAssociation(), and vertexAssociations().