ATLAS Offline Software
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
Jet Class Referenceabstract

Basic data class defines behavior for all Jet objects
The Jet class is the principal data class for all reconstructed jets,
independent of the signal course. It describes a navigable composite
reconstruction objects with with a four-momentum representation consistent
with all other reconstruction objects. Its constituents are referenced as
generic INavigable4Momentum types.
More...

#include <Jet.h>

Inheritance diagram for Jet:
Collaboration diagram for Jet:

Public Types

enum  CopyDataMembers {
  CopyNone = 0x0, CopyMoments = 0x1, CopyTagInfos = 0x2, CopyAssociations = 0x4,
  CopyConstituents = 0x8, CopyAll = 0xF
}
 @ brief fine control over what's copied in the various stores and constituents More...
 
typedef INavigable4MomentumCollection collection_type
 Navigable object collection type (obsolete) More...
 
typedef INavigable4Momentum constituent_type
 Navigable object type (obsolete) More...
 
typedef navigable_t::object_iter constituent_iterator
 Constituent iterator type (obsolete) More...
 
typedef navigable_t::external_index_type index_type
 Constituent index type (obsolete) More...
 
typedef INavigable4MomentumCollection collection_t
 Navigable object type. More...
 
typedef INavigable4Momentum constituent_t
 Constituent iterator type. More...
 
typedef navigable_t::object_iter const_iterator
 
typedef navigable_t::external_index_type index_t
 
typedef navigable_t::constituent_coll constituent_coll_t
 
typedef size_t numconstit_t
 
typedef JetKeyDescriptor::key_t mkey_t
 
typedef JetKeyDescriptor::category_t mcat_t
 
typedef JetMoment::float_t shape_t
 
typedef JetMomentMap shape_map_t
 
typedef JetAssociationBase assoc_t
 
typedef std::vector< const assoc_t * > assostore_t
 
typedef JetTagInfoBase taginfo_t
 
typedef std::vector< const taginfo_t * > tagstore_t
 
typedef CLHEP::HepLorentzVector hlv_t
 
typedef I4Momentum fourmom_t
 
typedef P4SignalState::State signalstate_t
 
typedef P4SignalState statename_t
 
typedef double(Jet::* GET_VALUE) () const
 
typedef void(Jet::* SET_VALUE) (double v)
 
typedef Navigable< INavigable4MomentumCollection, double > navigable_type
 publish the type of the base class (ie: 'traits-itize' it) More...
 
typedef P4ImplPxPyPzE momentum_type
 publish the type of the base class (ie: 'traits-itize' it) More...
 
typedef ParticleEvent::Base particle_type
 publish the type of the base class (ie: 'traits-itize' it) More...
 
typedef ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE, ParticleEvent::Baseself_type
 publish the type of the base class (ie: 'traits-itize' it) More...
 
typedef P4SignalState::State state_t
 
enum  Kind {
  P4EETAPHIM, P4IPTCOTTHPHIM, P4PTETAPHIM, P4PXPYPZE,
  UNKNOWN
}
 

Public Member Functions

 Jet ()
 Default constructor. More...
 
 Jet (const collection_t *pColl, const constituent_t *pConst, double wght=1.0)
 Construction from storable object. More...
 
 Jet (const collection_t *pColl, index_t ind, double wght=1.0)
 Construction from storable object. More...
 
 Jet (const fourmom_t *pMom)
 Construction from I4Momentum type. More...
 
 Jet (const fourmom_t &rMom)
 Construction from I4Momentum type. More...
 
 Jet (const hlv_t &rVec)
 Construction from CLHEP::HepLorentzVector type. More...
 
 Jet (double px, double py, double pz, double e)
 Construction from data. More...
 
 Jet (const Jet *pJet)
 Copy constructor. More...
 
 Jet (const Jet *pJet, bool copyStores, bool copyConstituents)
 Copy constructor, controlling copies of internals. More...
 
 Jet (const Jet &rJet)
 Copy constructor using reference. More...
 
 Jet (const Jet *pJet, CopyDataMembers cdm0, CopyDataMembers cdm1=CopyNone, CopyDataMembers cdm2=CopyNone, CopyDataMembers cdm3=CopyNone)
 constructor, with finer controlling of copies of internals, two conventions possible, either do c-style bool | bool [ | bool ] or give [1-4] enums. More...
 
virtual Jetclone () const
 clone method : do not clone stores and constituent More...
 
virtual Jetclone (bool copyStores, bool copyConstituents=true) const
 clone method : do not clone stores and constituent More...
 
virtual ~Jet ()
 Destructor. More...
 
const shape_map_tgetMomentMap () const
 
std::string getMomentMapName () const
 
virtual void setupKine (const hlv_t &v)
 
virtual void setE (double e)
 Kinematics are now handled by the base class, except for the following. More...
 
virtual void setPx (double Px)
 
virtual void setPy (double py)
 
virtual void setPz (double pz)
 
virtual void setE (double e, signalstate_t s)
 
virtual void setPx (double Px, signalstate_t s)
 
virtual void setPy (double py, signalstate_t s)
 
virtual void setPz (double pz, signalstate_t s)
 
virtual double ei () const
 
virtual double pxi () const
 
virtual double pyi () const
 
virtual double pzi () const
 
virtual double pti () const
 
void setPxPyPzE (double px, double py, double pz, double e)
 compatibility with analysis EDM More...
 
void setPtEtaPhiE (double a, double b, double c, double d)
 
void setPtEtaPhiM (double a, double b, double c, double d)
 
void setEEtaPhiM (double a, double b, double c, double d)
 
void setP (const hlv_t &rVec)
 (obsolete) set all 4-mom from CLHEP CLHEP::HepLorentzVector More...
 
hlv_t constituent_sum4Mom () const
 Sum of weighted constituent four-momentums. More...
 
hlv_t constituent_sum4Mom (signalstate_t s) const
 Sum of weighted constituent four-momentums, with SignalState. More...
 
void scale_momentum (double scale_factor)
 scale the jet 4mom by scale_factor More...
 
Jetget_scaled_copy (double scale_factor) const
 return a NEW copy of this jet with 4mom scaled More...
 
bool addConstituent (const collection_t *pColl, const constituent_t *pConst, double wght=1.0)
 Add a constituent with optional kinematic weight. More...
 
bool addConstituent (const collection_t *pColl, index_t ind, double wght=1.0)
 Add a constituent with optional kinematic weight. More...
 
bool addConstituent (const collection_t *pColl, index_t ind, size_t sizeHint, bool noKine, double wght=1.0)
 Add a constituent with optional kinematic weight Also allows passing in a size hint, and disabling recalculation of kinematics. More...
 
bool removeConstituent (const constituent_t *pConst)
 Remove a constituent. More...
 
bool removeConstituent (const collection_t *pColl, index_t ind)
 Remove a constituent. More...
 
bool removeConstituent (bool reset=false)
 Remove all constituents. More...
 
bool addJet (const Jet *pJet, double wght=1.0)
 Add a jet. More...
 
bool reweight (const constituent_t *pConst, double wght)
 Change kinematic weight of constituent. More...
 
bool reweight (const collection_t *pColl, index_t ind, double wght)
 Change kinematic weight of constituent. More...
 
bool cleanUp ()
 Remove all constituents with kinematic weight = 0. More...
 
numconstit_t constituentsN () const
 Number of constituents in jet. More...
 
void setConstituentsN (numconstit_t n)
 Set number of constituents in jet. More...
 
const_iterator firstConstituent () const
 (obsolete) begin iterator for constituent store More...
 
const_iterator lastConstituent () const
 (obsolere) end iterator for constituent store More...
 
const_iterator begin () const
 Begin iterator for constituent store. More...
 
const_iterator end () const
 End iterator for constituent store. More...
 
size_t size () const
 Size of constituent store. More...
 
bool contains (const constituent_t *pConst) const
 Check on containment. More...
 
bool contains (const collection_t *pColl, index_t ind) const
 Check on containment. More...
 
double getWeight (const constituent_t *pConst) const
 Retrieve kinematic weight of constituent. More...
 
double getWeight (const collection_t *pColl, index_t ind) const
 Retrieve kinematic weight of constituent. More...
 
double getWeight (const_iterator fConst) const
 Retrieve kinematic weight of constituent. More...
 
virtual void fillToken (INavigationToken &navToken) const
 Object navigation support, no relational parameter. More...
 
virtual void fillToken (INavigationToken &navToken, const std::any &par) const
 Object navigation support, relational parameter. More...
 
const collection_tgetContainer (const constituent_t *pConst) const
 Retrieve pointer to constituent object container. More...
 
const collection_tgetContainer (const_iterator fConst) const
 Retrieve pointer to constituent object container. More...
 
bool getIndex (const constituent_t *pConst, index_t &ind) const
 Retrieve index of object in container. More...
 
bool getIndex (const_iterator fConst, index_t &ind) const
 Retrieve index of object in container. More...
 
bool isIdentical (const Jet &rJet) const
 Test if Jet is identical to given Jet. More...
 
bool isIdentical (const Jet *pJet) const
 Test if Jet is identical to given Jet. More...
 
JetgetOverlap (const Jet &rJet, bool noKine=false) const
 Retrieve constituent overlap between jets. More...
 
JetgetOverlap (const Jet *pJet, bool noKine=false) const
 Retrieve constituent overlap between jets. More...
 
void setShape (const mkey_t &shapeName, shape_t shape, bool addIfMissing=true) const
 Set shape variable. More...
 
shape_t getShape (const mkey_t &shapeName, bool addIfMissing=false) const
 Retrieve shape variable. More...
 
std::vector< mkey_tgetShapeKeys () const
 Retrieve list of avalailable keys. More...
 
void setMoment (const mkey_t &shapeName, shape_t shape, bool addIfMissing=true) const
 Alias for setShape. More...
 
shape_t getMoment (const mkey_t &shapeName, bool addIfMissing=false) const
 Alias for getShape. More...
 
std::vector< mkey_tgetMomentKeys () const
 Alias for getShapeKeys. More...
 
template<typename T >
get (const std::string &mName) const
 Compatibility with JetAnalysisEDM. More...
 
template<typename T >
void set (const std::string &mName, const T &v) const
 
template<typename ASSOC >
const ASSOC * getAssociation (const mkey_t &key, bool useLink=true) const
 Retrieve association object. More...
 
const std::vector< mkey_t > & getAssociationKeys () const
 
const assoc_tgetAssociationBase (const mkey_t &key) const
 
template<class T >
void setAssociation (const T *pAssoc, bool useLink=false)
 Set association object. More...
 
void removeAssociation (const mkey_t &key)
 remove and DELETE association object. More...
 
template<typename TAGINFO >
const TAGINFO * getTagInfo (const mkey_t &key, bool useLink=true) const
 Retrieve tag info object. More...
 
void setTagInfo (const mkey_t &key, const taginfo_t *pTagInfo, bool useLink=false)
 Set tag info object. More...
 
const tagstore_t jetTagInfoVector () const
 (depreciated) Retrieve vector of tag infos More...
 
const std::vector< mkey_tinfoKeys () const
 (depreciated) list of tag info keys More...
 
const taginfo_ttagInfo (const mkey_t &key) const
 Retrieve tag info object. More...
 
template<class TAGINFO >
const TAGINFO * tagInfo (const mkey_t &key) const
 Retrieve a concrete tag info object. More...
 
template<class TAGINFO >
void addInfo (const TAGINFO *tag)
 Add tag info object. More...
 
void removeInfo (const mkey_t &key)
 (depreciated) Remove tag info object More...
 
double getFlavourTagWeight () const
 get the final b-tag result from the default tagger More...
 
double getFlavourTagWeight (const std::string &infoName) const
 get the final b-tag result from a specific tagger More...
 
signalstate_t constituentSignalState () const
 Get the current Signal state of the jet constituents. More...
 
void setConstituentSignalState (signalstate_t s)
 Set the current Signal state of the jet constituents. More...
 
bool has_calibrated_constit () const
 True if the jet constituent have a calibrated signal state. More...
 
bool finalScaleEqualsEMScale () const
 True if JETFINAL state equals JETEMSCALE state within 0.1 MeV on each E,px,pypz components. More...
 
unsigned int RoIword () const
 Return the RoI Word. More...
 
bool set_RoIword (unsigned int word)
 set RoI Word More...
 
bool operator== (const Jet &rJet) const
 Comparison operator. More...
 
bool operator== (const Jet *pJet) const
 Comparison operator. More...
 
bool operator!= (const Jet &rJet) const
 Comparison operator. More...
 
bool operator!= (const Jet *pJet) const
 Comparison operator. More...
 
Jetoperator= (const Jet &rJet)
 Assignment operator. More...
 
MsgStream & operator<< (MsgStream &out)
 Output operator. More...
 
std::string str ()
 Jet print-out function. More...
 
void setRawE (double e)
 Sets uncalibrated \( E \)
More...
 
void setRawPx (double px)
 Sets uncalibrated \( p_x \). More...
 
void setRawPy (double py)
 Sets uncalibrated \( p_y \). More...
 
void setRawPz (double pz)
 Sets uncalibrated \( p_z \). More...
 
void setCScaleE (double e)
 Sets uncalibrated \( E \)
More...
 
void setCScalePx (double px)
 Sets uncalibrated \( p_x \). More...
 
void setCScalePy (double py)
 Sets uncalibrated \( p_y \). More...
 
void setCScalePz (double pz)
 Sets uncalibrated \( p_z \). More...
 
void setCalE (double e)
 Sets calibrated \( E \)
More...
 
void setCalPx (double px)
 Sets calibrated \( p_x \). More...
 
void setCalPy (double py)
 Sets calibrated \( p_y \). More...
 
void setCalPz (double pz)
 Sets calibrated \( p_z \). More...
 
double getRawE () const
 
double getRawPx () const
 
double getRawPy () const
 
double getRawPz () const
 
double getCScaleE () const
 
double getCScalePx () const
 
double getCScalePy () const
 
double getCScalePz () const
 
double getCalE () const
 
double getCalPx () const
 
double getCalPy () const
 
double getCalPz () const
 
size_t id () const
 returns this jet unique identifier in its collection More...
 
const JetCollectionparentCollection () const
 a pointer to the collection this jet belongs to (can be NULL) More...
 
std::string jetAuthor () const
 Author and calibration history are encoded in a simple way inside the jet object. More...
 
std::string jetAuthorAndCalibTags () const
 Retrieve the full author-and-tag string of this Jet. More...
 
void setJetAuthor (const std::string &author)
 Set author of this Jet (only the author, tags unchanged) More...
 
void setJetAuthorAndCalibTags (const std::string &author)
 Set the full author-and-tag string. More...
 
bool hasCalibTag (const std::string &tag) const
 test if jet has calib tag tag More...
 
int numCalibTag () const
 number of calib tags for this jet
More...
 
std::string getCalibTag (int i) const
 retrieve calib tag number i (start at 1). More...
 
void addCalibTag (const std::string &tag)
 set calib tag tag must be of the form "AAA" More...
 
std::vector< double > combinedLikelihood () const
 (depreciated) Likelihood store access More...
 
void setCombinedLikelihood (const std::vector< double > &combinedLikelihood)
 (depreciated) Likelihood store setter More...
 
const fastjet::PseudoJet * fastjetPtr () const
 Access to the internal fastjet object. CAN RETURN NULL, see the description of m_pseudoJet. More...
 
void setFastjetPtr (const fastjet::PseudoJet *fj)
 
const navigable_typenavigableBase () const
 access to underlying base type (INavigable-like) More...
 
navigable_typenavigableBase ()
 access to underlying base type (INavigable-like) More...
 
const momentum_typemomentumBase (state_t s) const
 access to underlying base type (I4Momentum-like) More...
 
const momentum_typemomentumBase () const
 
momentum_typemomentumBase (state_t s)
 access to underlying base type (I4Momentum-like) More...
 
momentum_typemomentumBase ()
 
const particle_typeparticleBase () const
 access to underlying base type (IParticle-like) More...
 
particle_typeparticleBase ()
 access to underlying base type (IParticle-like) More...
 
virtual AthenaBarCode_t getAthenaBarCode () const
 
virtual AthenaBarCodeVersion_t getVersion () const
 
virtual double px () const =0
 x component of momentum More...
 
virtual double py () const =0
 y component of momentum More...
 
virtual double pz () const =0
 z component of momentum More...
 
virtual double m () const =0
 mass More...
 
virtual double m2 () const =0
 mass squared More...
 
virtual double p () const =0
 momentum magnitude More...
 
virtual double p2 () const =0
 square of momentum magnitude More...
 
virtual double rapidity () const =0
 rapidity More...
 
virtual double eta () const =0
 pseudo rapidity More...
 
virtual double phi () const =0
 phi in [-pi,pi[ More...
 
virtual double e () const =0
 energy More...
 
virtual double et () const =0
 transverse energy defined to be e*sin(theta) More...
 
virtual double pt () const =0
 transverse momentum More...
 
virtual double iPt () const =0
 inverse of transverse momentum More...
 
virtual double cosPhi () const =0
 cosinus phi More...
 
virtual double sinPhi () const =0
 sinus phi More...
 
virtual double tanTh () const =0
 tan theta More...
 
virtual double cosTh () const =0
 cosinus theta More...
 
virtual double sinTh () const =0
 sinus theta More...
 
virtual double cotTh () const =0
 cottan theta More...
 
virtual CLHEP::HepLorentzVector hlv () const =0
 CLHEP HepLorentzVector. More...
 
virtual const I4MomentumErrorerrors () const =0
 Access to errors, if available; returns 0 if no errors. More...
 
virtual Kind kind () const =0
 tells what kind of P4XYZT this is More...
 
virtual ParticleDataType::DataType dataType () const =0
 Return enum indicating real data, fast, or full simulation Return Type has a DataType enum with the following values: {Data = 0, Full = 1, FastShower = 2, Fast = 3, True = 4}
More...
 
virtual const Trk::RecVertexorigin () const =0
 Return a RecVertex corresponding to particle Origin
More...
 
virtual const ElementLink< VxContainer > & originLink () const =0
 Return an ElementLink corresponding to particle's Origin. More...
 
virtual bool hasCharge () const =0
 method to check if charge information is available More...
 
virtual ChargeType charge () const =0
 returns charge as a typedef ChargeType currently Charge Type is a double for jets this may be changed to an int and ask jets to extend this interface
More...
 
virtual bool hasPdgId () const =0
 method to check if particle id information is available More...
 
virtual int pdgId () const =0
 Return enum indicating particle id the enum file is available in Event/EventKernel/PdtPdg.h
More...
 
virtual void set4Mom (const I4Momentum &p4)
 set 4Momentum (will throw exception if cannot be implemented) More...
 
virtual void set4Mom (const I4Momentum *const p4)
 set 4Momentum (will throw exception if cannot be implemented) More...
 
virtual void set4Mom (const CLHEP::HepLorentzVector &hlv)
 set 4Momentum (will throw exception if cannot be implemented) More...
 
virtual void set4Mom (const I4Momentum &p4, state_t s)
 
virtual void set4Mom (const I4Momentum *const p4, state_t s)
 
virtual void set4Mom (const CLHEP::HepLorentzVector &hlv, state_t s)
 
virtual void set_dataType (ParticleDataType::DataType x)
 
virtual void set_charge (ChargeType x)
 
virtual void set_pdgId (int x)
 
virtual void set_origin (const VxContainer *theContainer, int index)
 
virtual void set_origin (const VxContainer *theContainer, const Trk::VxCandidate *vertex)
 
virtual void set_origin (const ElementLink< VxContainer > &origin)
 
virtual state_t signalState () const
 Retrieve current signal state. More...
 
virtual P4SignalState::State signalState () const =0
 obtain the current signal state More...
 
virtual bool hasSignalState (state_t s) const
 check if signal state exists for current implementation More...
 
virtual bool isAtSignalState (state_t s) const
 check if we are at the passed state More...
 
AthenaBarCode_t getAthenaBarCode () const
 
void setAthenaBarCode (AthenaBarCode_t)
 
bool hasSameAthenaBarCode (const IAthenaBarCode &) const
 
bool hasSameAthenaBarCodeExceptVersion (const IAthenaBarCode &) const
 
AthenaBarCodeVersion_t getVersion () const
 
void newVersion ()
 
void setVersion (AthenaBarCodeVersion_t newversion)
 
virtual double px () const
 We re-define here extra class routines that will allow direct access to signal state kinematics without changing the current state. More...
 
virtual double px (state_t s) const
 
virtual double py () const
 y component of momentum More...
 
virtual double py (state_t s) const
 
virtual double pz () const
 z component of momentum More...
 
virtual double pz (state_t s) const
 
virtual double m () const
 mass More...
 
virtual double m (state_t s) const
 
virtual double m2 () const
 mass squared More...
 
virtual double m2 (state_t s) const
 
virtual double p () const
 mass momentum magnitude More...
 
virtual double p (state_t s) const
 
virtual double p2 () const
 square of momentum magnitude More...
 
virtual double p2 (state_t s) const
 
virtual double rapidity () const
 rapidity More...
 
virtual double rapidity (state_t s) const
 
virtual double eta () const
 pseudo rapidity More...
 
virtual double eta (state_t s) const
 
virtual double phi () const
 phi in [-pi,pi[ More...
 
virtual double phi (state_t s) const
 
virtual double e () const
 energy More...
 
virtual double e (state_t s) const
 
virtual double et () const
 transverse energy defined to be e*sin(theta) More...
 
virtual double et (state_t s) const
 
virtual double pt () const
 transverse momentum More...
 
virtual double pt (state_t s) const
 
virtual double iPt () const
 inverse of transverse momentum More...
 
virtual double iPt (state_t s) const
 
virtual double cosPhi () const
 cosinus phi More...
 
virtual double cosPhi (state_t s) const
 
virtual double sinPhi () const
 sinus phi More...
 
virtual double sinPhi (state_t s) const
 
virtual double tanTh () const
 tan theta More...
 
virtual double tanTh (state_t s) const
 
virtual double cosTh () const
 cosinus theta More...
 
virtual double cosTh (state_t s) const
 
virtual double sinTh () const
 sinus theta More...
 
virtual double sinTh (state_t s) const
 
virtual double cotTh () const
 cottan theta More...
 
virtual double cotTh (state_t s) const
 
virtual CLHEP::HepLorentzVector hlv () const
 CLHEP HepLorentzVector. More...
 
virtual CLHEP::HepLorentzVector hlv (state_t s) const
 obtain the CLHEP HepLorentzVector More...
 
virtual const I4MomentumErrorerrors () const
 Access to errors, if available; returns 0 if no errors. More...
 
virtual const I4MomentumErrorerrors (state_t s) const
 
virtual I4Momentum::Kind kind () const
 add Kind which tells what kind (P4XYZ) the underlying implementation has More...
 
virtual std::ostream & dump (std::ostream &out) const
 Print I4Momentum content. More...
 
virtual ParticleDataType::DataType dataType () const
 Return enum indicating real data, fast, or full simulation Return Type has a DataType enum with the following values: {Data = 0, Full = 1, FastShower = 2, Fast = 3, True = 4}
More...
 
virtual const Trk::RecVertexorigin () const
 Return a RecVertex corresponding to particle Origin
More...
 
virtual const ElementLink< VxContainer > & originLink () const
 Return an ElementLink corresponding to particle's Origin. More...
 
virtual bool hasCharge () const
 method to check if charge information is available More...
 
virtual ChargeType charge () const
 returns charge as a typedef ChargeType currently Charge Type is a double for jets this may be changed to an int and ask jets to extend this interface
More...
 
virtual bool hasPdgId () const
 method to check if particle id information is available More...
 
virtual int pdgId () const
 Return particle id. More...
 
AthenaBarCode_t getAthenaBarCode () const
 
void setAthenaBarCode (AthenaBarCode_t)
 
bool hasSameAthenaBarCode (const IAthenaBarCode &) const
 
bool hasSameAthenaBarCodeExceptVersion (const IAthenaBarCode &) const
 
AthenaBarCodeVersion_t getVersion () const
 
void newVersion ()
 
void setVersion (AthenaBarCodeVersion_t newversion)
 
virtual double px () const
 We re-define here extra class routines that will allow direct access to signal state kinematics without changing the current state. More...
 
virtual double px (state_t s) const
 
virtual double py () const
 y component of momentum More...
 
virtual double py (state_t s) const
 
virtual double pz () const
 z component of momentum More...
 
virtual double pz (state_t s) const
 
virtual double m () const
 mass More...
 
virtual double m (state_t s) const
 
virtual double m2 () const
 mass squared More...
 
virtual double m2 (state_t s) const
 
virtual double p () const
 mass momentum magnitude More...
 
virtual double p (state_t s) const
 
virtual double p2 () const
 square of momentum magnitude More...
 
virtual double p2 (state_t s) const
 
virtual double rapidity () const
 rapidity More...
 
virtual double rapidity (state_t s) const
 
virtual double eta () const
 pseudo rapidity More...
 
virtual double eta (state_t s) const
 
virtual double phi () const
 phi in [-pi,pi[ More...
 
virtual double phi (state_t s) const
 
virtual double e () const
 energy More...
 
virtual double e (state_t s) const
 
virtual double et () const
 transverse energy defined to be e*sin(theta) More...
 
virtual double et (state_t s) const
 
virtual double pt () const
 transverse momentum More...
 
virtual double pt (state_t s) const
 
virtual double iPt () const
 inverse of transverse momentum More...
 
virtual double iPt (state_t s) const
 
virtual double cosPhi () const
 cosinus phi More...
 
virtual double cosPhi (state_t s) const
 
virtual double sinPhi () const
 sinus phi More...
 
virtual double sinPhi (state_t s) const
 
virtual double tanTh () const
 tan theta More...
 
virtual double tanTh (state_t s) const
 
virtual double cosTh () const
 cosinus theta More...
 
virtual double cosTh (state_t s) const
 
virtual double sinTh () const
 sinus theta More...
 
virtual double sinTh (state_t s) const
 
virtual double cotTh () const
 cottan theta More...
 
virtual double cotTh (state_t s) const
 
virtual CLHEP::HepLorentzVector hlv () const
 CLHEP HepLorentzVector. More...
 
virtual CLHEP::HepLorentzVector hlv (state_t s) const
 obtain the CLHEP HepLorentzVector More...
 
virtual const I4MomentumErrorerrors () const
 Access to errors, if available; returns 0 if no errors. More...
 
virtual const I4MomentumErrorerrors (state_t s) const
 
virtual I4Momentum::Kind kind () const
 add Kind which tells what kind (P4XYZ) the underlying implementation has More...
 
virtual std::ostream & dump (std::ostream &out) const
 Print I4Momentum content. More...
 
virtual ParticleDataType::DataType dataType () const
 Return enum indicating real data, fast, or full simulation Return Type has a DataType enum with the following values: {Data = 0, Full = 1, FastShower = 2, Fast = 3, True = 4}
More...
 
virtual const Trk::RecVertexorigin () const
 Return a RecVertex corresponding to particle Origin
More...
 
virtual const ElementLink< VxContainer > & originLink () const
 Return an ElementLink corresponding to particle's Origin. More...
 
virtual bool hasCharge () const
 method to check if charge information is available More...
 
virtual ChargeType charge () const
 returns charge as a typedef ChargeType currently Charge Type is a double for jets this may be changed to an int and ask jets to extend this interface
More...
 
virtual bool hasPdgId () const
 method to check if particle id information is available More...
 
virtual int pdgId () const
 Return particle id. More...
 

Static Public Member Functions

static bool nullOp (const constituent_type *)
 defaul function for preProcessConstituent and postProcessConstituent More...
 

Static Public Attributes

static const AthenaBarCode_t UNDEFINEDBARCODE = (AthenaBarCode_t)(-1)
 
static const AthenaBarCode_t UNDEFINEDVERSION = UNDEFINEDBARCODE
 

Protected Member Functions

void setup (const hlv_t &v)
 
void copy_from_jet (const Jet *pjet, CopyDataMembers cdm0, CopyDataMembers cdm1=CopyNone, CopyDataMembers cdm2=CopyNone, CopyDataMembers cdm3=CopyNone)
 
const shape_map_tgetMomentMap (bool addIfMissing) const
 
void putElement (const collection_t *pColl, const constituent_t *pConst, double wght=1.0, size_t sizeHint=0)
 Add element with checking. More...
 
void putElement (const collection_t *pColl, index_t ind, double wght=1.0, size_t sizeHint=0)
 Add element with checking. More...
 
void insertElement (const collection_t *pColl, const constituent_t *pConst, double wght=1.0, size_t sizeHint=0)
 insert element without checking More...
 
void insertElement (const collection_t *pColl, index_t ind, double wght=1.0, size_t sizeHint=0)
 insert element without checking More...
 
bool remove (const constituent_t *pConst)
 Remove constituent. More...
 
bool remove (const collection_t *pColl, index_t ind)
 
bool remove ()
 
double getParameter (const constituent_t *pConst) const
 Retrieve weight. More...
 
double getParameter (const collection_t *pColl, index_t ind) const
 Retrieve weight. More...
 
double getParameter (const_iterator fConst) const
 Retrieve weight. More...
 
JetKeyDescriptorInstancekeyDesc () const
 
void setJetId (size_t id)
 
template<typename STORE >
bool checkKeyStore (const mcat_t &cat, const mkey_t &key, STORE *&store, size_t &aInd, bool createIfMissing) const
 Check key validity with automatic store generation. More...
 
bool checkKey (const mcat_t &cat, const mkey_t &key, size_t &aInd, bool createIfMissing) const
 
template<typename OBJ , class STORE >
const OBJ * getObject (const mkey_t &key, STORE *store, const mcat_t &cat, bool createIfMissing) const
 Get object from store with category and key. More...
 
template<typename DATA , class STORE >
bool getData (const mkey_t &key, STORE *store, const mcat_t &cat, DATA &data, bool createIfMissing) const
 Get data from store with category and key. More...
 
virtual bool setSignalState (state_t s)
 set the current signal state More...
 
virtual void resetSignalState ()
 reset the signal state More...
 
std::vector< P4ImplPxPyPzE > & momentumVector ()
 access the vector of momentum More...
 
int nStates ()
 access the number of state More...
 
void setNStates (int n)
 

Protected Attributes

numconstit_t m_constituentsN
 
size_t m_jetId
 the identifier of this jet within its collection. More...
 
const JetCollectionm_collection
 Shape store link. More...
 
size_t m_jetAuthor
 Jet author store. More...
 
assostore_tm_assocStore
 key descriptor for all jet stores More...
 
tagstore_tm_tagInfoStore
 Tag info store. More...
 
signalstate_t m_constituentSigState
 Constituent Signal State. More...
 
const fastjet::PseudoJet * m_pseudoJet
 Pointer to the fastjet object this jet is build from. More...
 

Static Protected Attributes

static const size_t s_defaultJetId = 0
 
static const size_t s_defaultJetAuthor = 0
 

Private Types

typedef ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE, ParticleEvent::Basebase_t
 Internally used base type mixes particle/navigable/four-momentum interfaces with correct implementation. More...
 
typedef base_t::navigable_type navigable_t
 Navigable implementation type
More...
 
typedef base_t::momentum_type momentum_t
 Four-momentum implementation type
More...
 
typedef base_t::particle_type particle_t
 Patricle implementation type
More...
 

Private Member Functions

void removeAssociation (size_t index)
 clear association at given index More...
 
void removeInfo (unsigned int index)
 Remove tag info for object located at index (internal) More...
 
virtual void updateKine (const constituent_t *pConst, double wght=1.0)
 Updates Jet kinematics. More...
 
virtual void updateKine (const hlv_t &pVec, double wght=1.0)
 Updates Jet kinematics. More...
 
virtual void updateKine ()
 Resummation of kinematics from constituents. More...
 

Private Attributes

unsigned int m_RoIword
 
size_t m_num_combinedLikelihood
 
Navigable< INavigable4MomentumCollection, double > m_nav
 The navigable part. More...
 
std::vector< P4ImplPxPyPzEm_mom
 The 4-momentum part Eventually, perhaps we can use a set since not all intermediate Signal States will be used by every object. More...
 
ParticleEvent::Base m_part
 The particle-id part. More...
 
int m_nStates
 Number of Signal States. More...
 
state_t m_currentState
 Current Signal State. More...
 

Static Private Attributes

static const double m_ignoreWeight = 1.0e-06
 Maximum difference up to which weights are considered equal. More...
 

Friends

template<class PERS >
class JetConverterBase
 
class JetCollection
 
class JetSignalStateHelper
 Set signal state through a friend. More...
 
class JetCollSigStateHelper
 
class JetAssociationBase
 
class JetTagInfoBase
 
class ParticleJetCnv_p1
 
class JetCnv_p1
 
class JetCnv_p2
 
class JetCnv_p3
 
class JetCnv_p4
 
class JetCollectionCnv_p6
 

Detailed Description

Basic data class defines behavior for all Jet objects
The Jet class is the principal data class for all reconstructed jets,
independent of the signal course. It describes a navigable composite
reconstruction objects with with a four-momentum representation consistent
with all other reconstruction objects. Its constituents are referenced as
generic INavigable4Momentum types.


All Jet objects hold stores for constituents, shape information,
tagging information, and general associations to other reconstruction
objects. These stores are constructed empty, except for the constituent
store if a (pointer) reference to a storable constituent object is given
to the Jet constructor.

The Jet can be constructed without constituents from just four-momentum
using the CLHEP::HepLorentzVector or the I4Momentum representation, or just
a sequence of four variables corresponding to the momentum components and
the energy.

The default signal state of a Jet depends on where it comes from. If the Jet is retreived from a persistent store (e.g, ESD or AOD), the default signal state is CALIBRATED. If the @ Jet is just constructed in transient memory, its initial (and default) signal state is UNCALIBRATED. If a Jet is a copy of another Jet, its default signal state is the same as the original.

Author
Peter Loch loch@.nosp@m.phys.nosp@m.ics.a.nosp@m.rizo.nosp@m.na.ed.nosp@m.u,
Ambreesh Gupta Ambre.nosp@m.esh..nosp@m.Gupta.nosp@m.@cer.nosp@m.n.ch,
Rolf Seuster Rolf..nosp@m.Seus.nosp@m.ter@c.nosp@m.ern..nosp@m.ch
Date
April 10, 2004 - first implementation after re-design meetings
May 24, 2004 - added constructors for Jets with 4-momentum and
no constitents
Feb. 11, 2008 - new EDM, new inheritance structure and
including information for b-tagging
Feb. 16, 2008 - added signal states and clean-up

Definition at line 45 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

Member Typedef Documentation

◆ assoc_t

Definition at line 125 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ assostore_t

typedef std::vector<const assoc_t*> Jet::assostore_t

Definition at line 126 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ base_t

Internally used base type mixes particle/navigable/four-momentum interfaces with correct implementation.

Definition at line 72 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ collection_t

Navigable object type.

Definition at line 104 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ collection_type

Navigable object collection type (obsolete)

Warning
Depreciated type, do not use anymore! Will be removed soon!

Definition at line 86 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ const_iterator

typedef navigable_t::object_iter Jet::const_iterator

Definition at line 108 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ constituent_coll_t

typedef navigable_t::constituent_coll Jet::constituent_coll_t

Definition at line 110 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ constituent_iterator

typedef navigable_t::object_iter Jet::constituent_iterator

Constituent iterator type (obsolete)

Warning
Depreciated type, do not use anymore! Will be removed soon!

Definition at line 96 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ constituent_t

Constituent iterator type.

Definition at line 106 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ constituent_type

Navigable object type (obsolete)

Warning
Depreciated type, do not use anymore! Will be removed soon!

Definition at line 91 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ fourmom_t

Definition at line 134 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ GET_VALUE

typedef double(Jet::* Jet::GET_VALUE) () const

Definition at line 138 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ hlv_t

typedef CLHEP::HepLorentzVector Jet::hlv_t

Definition at line 133 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ index_t

typedef navigable_t::external_index_type Jet::index_t

Definition at line 109 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ index_type

typedef navigable_t::external_index_type Jet::index_type

Constituent index type (obsolete)

Warning
Depreciated type, do not use anymore! Will be removed soon!

Navigable object collection type

Definition at line 101 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ mcat_t

Definition at line 116 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ mkey_t

Definition at line 115 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ momentum_t

Four-momentum implementation type

Definition at line 77 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ momentum_type

publish the type of the base class (ie: 'traits-itize' it)

Definition at line 55 of file ParticleSigStateImpl.h.

◆ navigable_t

Navigable implementation type

Definition at line 75 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ navigable_type

publish the type of the base class (ie: 'traits-itize' it)

Definition at line 51 of file ParticleSigStateImpl.h.

◆ numconstit_t

typedef size_t Jet::numconstit_t

Definition at line 112 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ particle_t

Patricle implementation type

Definition at line 79 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ particle_type

publish the type of the base class (ie: 'traits-itize' it)

Definition at line 59 of file ParticleSigStateImpl.h.

◆ self_type

publish the type of the base class (ie: 'traits-itize' it)

Definition at line 65 of file ParticleSigStateImpl.h.

◆ SET_VALUE

typedef void(Jet::* Jet::SET_VALUE) (double v)

Definition at line 139 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ shape_map_t

Definition at line 121 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ shape_t

Definition at line 120 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ signalstate_t

Definition at line 135 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ state_t

Definition at line 67 of file ParticleSigStateImpl.h.

◆ statename_t

Definition at line 136 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ taginfo_t

Definition at line 129 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ tagstore_t

typedef std::vector<const taginfo_t*> Jet::tagstore_t

Definition at line 130 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

Member Enumeration Documentation

◆ CopyDataMembers

@ brief fine control over what's copied in the various stores and constituents

Enumerator
CopyNone 
CopyMoments 
CopyTagInfos 
CopyAssociations 
CopyConstituents 
CopyAll 

Definition at line 145 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

145  { CopyNone = 0x0,
146  CopyMoments = 0x1,
147  CopyTagInfos = 0x2,
148  CopyAssociations = 0x4,
149  CopyConstituents = 0x8,
150  CopyAll = 0xF };

◆ Kind

enum I4Momentum::Kind
inherited
Enumerator
P4EETAPHIM 
P4IPTCOTTHPHIM 
P4PTETAPHIM 
P4PXPYPZE 
UNKNOWN 

Definition at line 33 of file I4Momentum.h.

Constructor & Destructor Documentation

◆ Jet() [1/11]

Jet::Jet ( )

Default constructor.

@detail Default constructor instantiates empty Jet object without any constituents and with \( P_{jet} = \left(p_x,p_y,p_z,E\right) = (0,0,0,0) \).

@detail Construct a Jet from a INavigable4Momentum object referenced by the pointer to the storable object collection and the pointer to the object.

Parameters
[in]pCollpointer to storable object collection of type INavigable4MomentumContainer
[in]pConstpointer to constituent object of type INavigable4Momentum
[in]wghtoptional kinematic weight of constituent, default 1 @detail Construct a Jet from a INavigable4Momentum object referenced by the pointer to the storable object collection and the index of the object in the collection.
[in]pCollpointer to storable object collection of type INavigable4MomentumContainer
[in]indindex of type size_t referencing the INavigable4Momentum object in its container.
[in]wghtoptional kinematic weight of constituent, default 1 @detail Constructs an empty Jet object without any constituents and with an initial four-momentum given by a $c I4Momentum (base) typed reconstruction object.
[in]pMompointer to an object with I4Momentum interface @detail Constructs an empty Jet object without any constituents and with an initial four-momentum given by a $c I4Momentum (base) typed reconstruction object.
[in]rMomreference to an object with I4Momentum interface @detail Constructs an empty Jet object without any constituents and with an initial four-momentum given by a $c CLHEP::HepLorentzVector typed reconstruction object.
[in]rVecreference to an object with CLHEP::HepLorentzVector interface @detail Constructs an empty Jet object without any constituents and with an initial four-momentum given by a list of numbers representing a four-momentum.
[in]px\( p_x \)
[in]py\( p_y \)
[in]pz\( p_z \)
[in]e\( e \) @detail Constructs a copy of a given Jet object.
[in]pJetpointer to a Jet object @detail Constructs a copy of a given Jet object.
[in]aJet object

Definition at line 98 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

99  : base_t(3, signalstate_t(1)),
101 
102 {
103  this->setup(hlv_t(0.,0.,0.,0.));
104 }
105 
106 
118 Jet::Jet(const collection_t* pColl,
119  const constituent_t* pConst,
120  double wght)
121  : base_t(3, signalstate_t(1)),
123 {
124 
125  this->setup(hlv_t(0.,0.,0.,0.));
126  this->addConstituent(pColl,pConst,wght);
127 }
128 
140 Jet::Jet(const collection_t* pColl,index_t ind,double wght)
141  : base_t(3, signalstate_t(1)),
143  this->setup(hlv_t(0.,0.,0.,0.));
144  this->addConstituent(pColl,ind,wght);
145 }
146 
147 
154 Jet::Jet(const fourmom_t* pMom)
155  : base_t(3, signalstate_t(1)),
157  this->setup(hlv_t(pMom->px(),pMom->py(),pMom->pz(),pMom->e()));
158 }
159 
166 Jet::Jet(const fourmom_t& rMom)
167  : base_t(3, signalstate_t(1)),
169  this->setup(hlv_t(rMom.px(),rMom.py(),rMom.pz(),rMom.e()));
170 }
177 Jet::Jet(const hlv_t& rVec)
178  : base_t(3, signalstate_t(1)),
180 {
181  this->setup(rVec);
182 }
192 Jet::Jet(double px, double py, double pz, double e)
193  : base_t(3, signalstate_t(1)),
195 {
196  this->setup(hlv_t(px,py,pz,e));
197 }
202 Jet::Jet(const Jet* pJet)
203  : base_t((const base_t) *pJet) ,
205 {
206 
207  copy_from_jet( pJet, CopyAll);
208 
209 }
210 
211 // constructor with arguements
212 Jet::Jet(const Jet* pJet, bool copyStores, bool copyConstituents)
213  : base_t( (const base_t) *pJet),
215 {
216 
217  CopyDataMembers cmd0 = CopyDataMembers ( copyStores ?
218  ( CopyMoments | CopyAssociations | CopyTagInfos ) : CopyNone ) ;
219 
220  CopyDataMembers cmd1 = CopyDataMembers ( copyConstituents ? CopyConstituents : CopyNone ) ;
221 
222  //std::cout <<"Jet copyStores:"<< copyStores << " "<< cmd0 << "| copyConstituents:"<<copyConstituents<< " "<< cmd1<< " size ="<< this->size() <<std::endl;
223 
224  copy_from_jet( pJet, cmd0 , cmd1);
225 }
226 
227 // constructor with arguements
228 Jet::Jet(const Jet* pJet,
229  CopyDataMembers cmd0, CopyDataMembers cmd1,
230  CopyDataMembers cmd2, CopyDataMembers cmd3)
231  : base_t( (const base_t) *pJet ),
233 {
234  copy_from_jet( pJet, cmd0 , cmd1, cmd2, cmd3 );
235 }
236 
242 Jet::Jet(const Jet& rJet)
243  : IAthenaBarCode(),
244  INavigable(),
245  I4Momentum(),
247  base_t(rJet),
249 {
250  copy_from_jet(&rJet, CopyAll);
251 }
252 
253 void Jet::setup(const hlv_t& v)
254 {
255 
256  this->setupKine(v);
257 
258 }

◆ Jet() [2/11]

Jet::Jet ( const collection_t pColl,
const constituent_t pConst,
double  wght = 1.0 
)

Construction from storable object.

◆ Jet() [3/11]

Jet::Jet ( const collection_t pColl,
index_t  ind,
double  wght = 1.0 
)

Construction from storable object.

◆ Jet() [4/11]

Jet::Jet ( const fourmom_t pMom)

Construction from I4Momentum type.

◆ Jet() [5/11]

Jet::Jet ( const fourmom_t rMom)

Construction from I4Momentum type.

◆ Jet() [6/11]

Jet::Jet ( const hlv_t rVec)

Construction from CLHEP::HepLorentzVector type.

◆ Jet() [7/11]

Jet::Jet ( double  px,
double  py,
double  pz,
double  e 
)

Construction from data.

◆ Jet() [8/11]

Jet::Jet ( const Jet pJet)

Copy constructor.

◆ Jet() [9/11]

Jet::Jet ( const Jet pJet,
bool  copyStores,
bool  copyConstituents 
)

Copy constructor, controlling copies of internals.

◆ Jet() [10/11]

Jet::Jet ( const Jet rJet)

Copy constructor using reference.

◆ Jet() [11/11]

Jet::Jet ( const Jet pJet,
CopyDataMembers  cdm0,
CopyDataMembers  cdm1 = CopyNone,
CopyDataMembers  cdm2 = CopyNone,
CopyDataMembers  cdm3 = CopyNone 
)

constructor, with finer controlling of copies of internals, two conventions possible, either do c-style bool | bool [ | bool ] or give [1-4] enums.

◆ ~Jet()

Jet::~Jet ( )
virtual

Destructor.

@detail The Jet destructor destroys the association and tag info stores, if they have ever been created.

It does not destroy the objects in these stores, though. These should be referenced through an @C ElementLink only, i.e, owned by their own collections, or owned by any other data object.

NOTE: Above is not true at the moment. Jet does own the referenced objects. This should change once split store is implemented.

Definition at line 368 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

369 {
370  // FIXME jet owns stores for right now
371 
372  if( m_jetId != s_defaultJetId){
373  // we may have an entry in a moment map
374  // and need to remove ourselves from the map
375  const shape_map_t *map = getMomentMap();
376  if(map) map->removeRecord( m_jetId );
377  }
378 
379  if ( m_assocStore != nullptr ) {
380  for (size_t i = 0; i < m_assocStore->size(); i++)
381  delete (*m_assocStore)[i];
382  delete m_assocStore;
383  }
384  if ( m_tagInfoStore != nullptr ) {
385  for (size_t i = 0; i < m_tagInfoStore->size(); i++)
386  delete (*m_tagInfoStore)[i];
387  delete m_tagInfoStore;
388  }
389 
390 }

Member Function Documentation

◆ addCalibTag()

void Jet::addCalibTag ( const std::string &  tag)

set calib tag tag must be of the form "AAA"

Definition at line 1159 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1159  {
1160  std::string full_auth = keyDesc()->getKey(JetKeyConstants::InfoCat,m_jetAuthor);
1161  full_auth +="_"+tag;
1162  m_jetAuthor = keyDesc()->getIndex(JetKeyConstants::InfoCat,full_auth,true);
1163 }

◆ addConstituent() [1/3]

bool Jet::addConstituent ( const collection_t pColl,
const constituent_t pConst,
double  wght = 1.0 
)

Add a constituent with optional kinematic weight.

@detail This method adds a constituent referenced by a pointer to its storable container and a pointer to itself to a Jet.

The Jet four-momentum is updated with the constituent four-momentum, taking into account an optional kinematic weight. If the constituent object was already a member of the Jet, the old and new weights are added.

Warning
There is no restriction on the numerical range for these weights when adding a constituent. Clients are responsible in their own algorithm implementations to make sure that the weights make sense in the context of their analysis.
Parameters
[in]pCollpointer to storable object collection of type INavigable4MomentumContainer
[in]pConstpointer to constituent object of type INavigable4Momentum
[in]wghtoptional kinematic weight of constituent, default 1

Definition at line 413 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

416 {
417  double w = this->contains(pConst) ? wght + this->getWeight(pConst) : wght;
418  this->putElement(pColl,pConst,w);
419  this->updateKine(pConst,wght);
420  return true;
421 }

◆ addConstituent() [2/3]

bool Jet::addConstituent ( const collection_t pColl,
index_t  ind,
double  wght = 1.0 
)

Add a constituent with optional kinematic weight.

@detail This method adds a constituent referenced by a pointer to its storable container and its index in this container, to a Jet.

The Jet four-momentum is updated with the constituent four-momentum, taking into account an optional kinematic weight. If the constituent object was already a member of the Jet, the old and new weights are added.

Warning
There is no restriction on the numerical range for these weights when adding a constituent. Clients are responsible in their own algorithm implementations to make sure that the weights make sense in the context of their analysis.
Parameters
[in]pCollpointer to storable object collection of type INavigable4MomentumContainer
[in]indindex of type size_t referencing the INavigable4Momentum object in its container.
[in]wghtoptional kinematic weight of constituent, default 1

Definition at line 439 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

440 {
441 
442  const constituent_t * constit = (pColl->operator[])(ind) ;
443  double w = this->contains(pColl,ind) ? wght + this->getWeight(pColl,ind) : wght;
444  this->putElement(pColl,ind,w);
445  this->updateKine(constit,wght);
446  return true;
447 }

◆ addConstituent() [3/3]

bool Jet::addConstituent ( const collection_t pColl,
index_t  ind,
size_t  sizeHint,
bool  noKine,
double  wght = 1.0 
)

Add a constituent with optional kinematic weight Also allows passing in a size hint, and disabling recalculation of kinematics.

@detail This method adds a constituent referenced by a pointer to its storable container and its index in this container, to a Jet.

The Jet four-momentum is updated with the constituent four-momentum, taking into account an optional kinematic weight. If the constituent object was already a member of the Jet, the old and new weights are added.

Warning
There is no restriction on the numerical range for these weights when adding a constituent. Clients are responsible in their own algorithm implementations to make sure that the weights make sense in the context of their analysis.
Parameters
[in]pCollpointer to storable object collection of type INavigable4MomentumContainer
[in]indindex of type size_t referencing the INavigable4Momentum object in its container.
[in]sizeHintIf nonzero, the expected final size of the jet.
[in]noKineif true, don't recalculate kinematics.
[in]wghtoptional kinematic weight of constituent, default 1

Definition at line 467 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

472 {
473  // Avoid multiple linear searches if we can.
474  // Unfortunately, we can't avoid it for the case in which
475  // the constituent is already in the jet (without changing
476  // the Navigable interface, anyway); but that should be the
477  // uncommon case anyway.
478  //std::cout << " adding constit. e="<< this->e() << " c_e="<< (pColl->operator[])(ind)->e() << " size "<< this->size()<< std::endl;
479  if (this->contains(pColl, ind))
480  this->reweight(pColl,ind, wght + this->getWeight(pColl, ind));
481  else
482  this->insertElement(pColl, ind, wght, sizeHint);
483 
484  if (!noKine)
485  this->updateKine(((pColl->operator[])(ind))->hlv(),wght);
486  return true;
487 }

◆ addInfo()

template<class TAGINFO >
void Jet::addInfo ( const TAGINFO *  tag)

Add tag info object.

◆ addJet()

bool Jet::addJet ( const Jet pJet,
double  wght = 1.0 
)

Add a jet.

Definition at line 504 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

505 {
506  const_iterator fC(pJet->begin());
507  const_iterator lC(pJet->end());
508  for ( ; fC != lC ; ++fC )
509  {
510  index_t ind(index_t(-1));
511  if ( pJet->getIndex(fC,ind) )
512  {
513  if ( !(this->contains(*fC)) )
514  {
515  this->addConstituent(pJet->getContainer(fC),
516  ind,
517  wght*(pJet->getWeight(fC)));
518  }
519  }
520  }
521  return pJet->size() > 0;
522 }

◆ begin()

const_iterator Jet::begin ( ) const

Begin iterator for constituent store.

◆ charge() [1/2]

returns charge as a typedef ChargeType currently Charge Type is a double for jets this may be changed to an int and ask jets to extend this interface

Definition at line 259 of file ParticleSigStateImpl.h.

900 {
901  return m_part.charge();
902 }

◆ charge() [2/2]

virtual ChargeType IParticle::charge ( ) const
pure virtualinherited

returns charge as a typedef ChargeType currently Charge Type is a double for jets this may be changed to an int and ask jets to extend this interface

Implemented in ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, Analysis::ParticleShallowClone, and ParticleBase.

◆ checkKey()

bool Jet::checkKey ( const mcat_t cat,
const mkey_t key,
size_t &  aInd,
bool  createIfMissing 
) const
protected

◆ checkKeyStore()

template<typename STORE >
bool Jet::checkKeyStore ( const mcat_t cat,
const mkey_t key,
STORE *&  store,
size_t &  aInd,
bool  createIfMissing 
) const
inlineprotected

Check key validity with automatic store generation.

Definition at line 754 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

759  {
760  // invalid store pointer
761  if ( store == 0 )
762  {
763  if ( !createIfMissing ) return false;
764  store = new STORE();
765  }
766 
767  // check index
768  aInd = keyDesc()->getIndex(cat,key,createIfMissing);
769  if ( keyDesc()->isValid(aInd) )
770  {
771  if ( aInd >= store->size() )
772  {
773  if ( ! createIfMissing ) return false;
774  store->resize(aInd+1);
775  }
776  return true;
777  }
778  else
779  {
780  return false;
781  }
782  }

◆ cleanUp()

bool Jet::cleanUp ( )

Remove all constituents with kinematic weight = 0.

Definition at line 529 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

530 {
531  unsigned int aCtr = 0;
532  // check content
533  if ( this->size() > 0 )
534  {
535  const_iterator fC(this->begin());
536  const_iterator lC(this->end());
537  for ( ; fC != lC; ++fC )
538  {
539  double weight(this->getWeight(fC));
540  if ( std::abs(weight)< m_ignoreWeight )
541  {
542  ++aCtr;
543  this->removeConstituent(*fC);
544  }
545  }
546  }
547  return aCtr > 0;
548 }

◆ clone() [1/2]

Jet * Jet::clone ( ) const
virtual

clone method : do not clone stores and constituent

Definition at line 776 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

777 {
778  Jet* jet = new Jet(this, false, false);
779  return jet;
780 }

◆ clone() [2/2]

Jet * Jet::clone ( bool  copyStores,
bool  copyConstituents = true 
) const
virtual

clone method : do not clone stores and constituent

Definition at line 782 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

783 {
784  Jet* jet = new Jet(this, copyStores,copyConstituents);
785  return jet;
786 }

◆ combinedLikelihood()

std::vector< double > Jet::combinedLikelihood ( ) const

(depreciated) Likelihood store access

Definition at line 966 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

967 {
968  std::vector<double> combinedLikelihood;
970  const std::string base="LikeLihood_";
971  for(unsigned int i=0; i<m_num_combinedLikelihood; i++){
973  }
974 
975  return combinedLikelihood;
976 }

◆ constituent_sum4Mom() [1/2]

Jet::hlv_t Jet::constituent_sum4Mom ( ) const

Sum of weighted constituent four-momentums.

Definition at line 702 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

703 {
704  hlv_t fmom(0.,0.,0.,0.);
707 
708  for (;fC!=lC;++fC)
709  {
710  if (! fC.get_real_constit()) continue; // constit may be invalid if broken EL
711  fmom += (fC.hlv() * this->getWeight(fC.get_real_constit()));
712  }
713  return fmom;
714 }

◆ constituent_sum4Mom() [2/2]

Jet::hlv_t Jet::constituent_sum4Mom ( Jet::signalstate_t  s) const

Sum of weighted constituent four-momentums, with SignalState.

Definition at line 716 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

717 {
718  hlv_t fmom(0.,0.,0.,0.);
721 
722  for (;fC!=lC;++fC)
723  {
724  if (! fC.get_real_constit()) continue; // constit may be invalid if broken EL
725  fmom += (fC.hlv() * this->getWeight(fC.get_real_constit()));
726  }
727  return fmom;
728 }

◆ constituentSignalState()

signalstate_t Jet::constituentSignalState ( ) const

Get the current Signal state of the jet constituents.

◆ constituentsN()

numconstit_t Jet::constituentsN ( ) const
inline

Number of constituents in jet.

Use this rather than size()

Definition at line 300 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

300 {return m_constituentsN;}

◆ contains() [1/2]

bool Jet::contains ( const collection_t pColl,
index_t  ind 
) const

Check on containment.

◆ contains() [2/2]

bool Jet::contains ( const constituent_t pConst) const

Check on containment.

◆ copy_from_jet()

void Jet::copy_from_jet ( const Jet pjet,
CopyDataMembers  cdm0,
CopyDataMembers  cdm1 = CopyNone,
CopyDataMembers  cdm2 = CopyNone,
CopyDataMembers  cdm3 = CopyNone 
)
protected

Definition at line 260 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

262 {
263  CopyDataMembers cdm = CopyDataMembers(cdm0 | cdm1 | cdm2 | cdm3);
264 
265 
266  //std::cout<<"Jet::copy_from_jet this="<< this->constit4MomGetter.empty() << " pjet="<< pJet->constit4MomGetter.empty() << std::endl;
267 
268  // copy all kinematics
270  this->set4Mom(pJet->hlv());
271 
273  this->set4Mom(pJet->hlv(P4SignalState::JETEMSCALE));
275  this->set4Mom(pJet->hlv(statename_t::JETCONSTITUENTSCALE));
277  this->setConstituentSignalState(pJet->constituentSignalState());
278 
279 
280  this->m_RoIword = pJet->m_RoIword;
281  m_jetAuthor = pJet->m_jetAuthor;
282  m_num_combinedLikelihood = pJet->m_num_combinedLikelihood;
283 
284  m_pseudoJet = pJet->m_pseudoJet;
285 
286  // copy members if requested
287  if ( cdm & CopyConstituents )
288  {
289  //std::cout<< "copy constituent "<< std::endl;
290  const_iterator firstConst = pJet->firstConstituent();
291  const_iterator lastConst = pJet->lastConstituent();
292  for ( ; firstConst != lastConst; ++firstConst )
293  {
294  Jet::index_type theIndex;
295  if ( pJet->getIndex(firstConst,theIndex) ) // getIndex by iterator more efficient ?
296  {
297  this->putElement(pJet->getContainer(firstConst),
298  theIndex,
299  pJet->getWeight(firstConst));
300  }
301  }
302  } else {
303  this->navigableBase().removeAll();
304  }
305 
306  // this line MUST stay after copyconstituents otherwise m_constituentsN will be double.
307  m_constituentsN = pJet->m_constituentsN;
308 
309  if ( cdm & CopyMoments )
310  {
311  const shape_map_t* oMap = pJet->getMomentMap();
312  //std::cout << " Copying moment other map "<< oMap<< " author="<< pJet->jetAuthor() <<" id="<< pJet->id()<< std::endl;
313  if ( oMap != nullptr ){
314 
315  const JetMomentMap::record_t *oldrec = oMap->getRecord( pJet->id() );
316  // copy the moments :
317  //std::cout << " oldrec = "<< oldrec << std::endl;
318  if( oldrec){
319  const shape_map_t* mMap = this->getMomentMap(true);
320  // this should guaranty we have a map.
321 
322  JetMomentMap::record_t *newrec =
323  new JetMomentMap::record_t( *oldrec );
324 
325  // assign them in the map
326  mMap->assignRecord(m_jetId, newrec);
327  }
328  }
329  }
330 
331 
332  if ( cdm & CopyAssociations )
333  if ( bool(pJet->m_assocStore) )
334  {
336 
337  const assostore_t& old = *pJet->m_assocStore;
338  m_assocStore->reserve (old.size());
339  for (size_t i = 0; i < old.size(); i++)
340  if (bool(old[i])) m_assocStore->push_back (old[i]->clone());
341  else m_assocStore->push_back ( nullptr );
342  }
343  if ( cdm & CopyTagInfos )
344  if ( bool(pJet->m_tagInfoStore) )
345  {
347 
348  const tagstore_t& old = *pJet->m_tagInfoStore;
349  m_tagInfoStore->reserve (old.size());
350  for (size_t i = 0; i < old.size(); i++)
351  if (bool(old[i])) m_tagInfoStore->push_back (old[i]->clone());
352  else m_tagInfoStore->push_back(nullptr);
353  }
354 
355 }

◆ cosPhi() [1/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::cosPhi
inlinevirtualinherited

cosinus phi

Definition at line 198 of file ParticleSigStateImpl.h.

784 {
785  return momentumBase().cosPhi();
786 }

◆ cosPhi() [2/3]

virtual double I4Momentum::cosPhi ( ) const
pure virtualinherited

◆ cosPhi() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::cosPhi ( state_t  s) const
inlinevirtualinherited

Definition at line 199 of file ParticleSigStateImpl.h.

607 {
608  return momentumBase(s).cosPhi();
609 }

◆ cosTh() [1/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::cosTh
inlinevirtualinherited

cosinus theta

Definition at line 210 of file ParticleSigStateImpl.h.

808 {
809  return momentumBase().cosTh();
810 }

◆ cosTh() [2/3]

virtual double I4Momentum::cosTh ( ) const
pure virtualinherited

◆ cosTh() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::cosTh ( state_t  s) const
inlinevirtualinherited

Definition at line 211 of file ParticleSigStateImpl.h.

631 {
632  return momentumBase(s).cosTh();
633 }

◆ cotTh() [1/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::cotTh
inlinevirtualinherited

cottan theta

Definition at line 218 of file ParticleSigStateImpl.h.

824 {
825  return momentumBase().cotTh();
826 }

◆ cotTh() [2/3]

virtual double I4Momentum::cotTh ( ) const
pure virtualinherited

◆ cotTh() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::cotTh ( state_t  s) const
inlinevirtualinherited

Definition at line 219 of file ParticleSigStateImpl.h.

647 {
648  return momentumBase(s).cotTh();
649 }

◆ dataType() [1/2]

Return enum indicating real data, fast, or full simulation Return Type has a DataType enum with the following values: {Data = 0, Full = 1, FastShower = 2, Fast = 3, True = 4}

IParticle interface forwarding

Definition at line 241 of file ParticleSigStateImpl.h.

868 {
869  return m_part.dataType();
870 }

◆ dataType() [2/2]

virtual ParticleDataType::DataType IParticle::dataType ( ) const
pure virtualinherited

Return enum indicating real data, fast, or full simulation Return Type has a DataType enum with the following values: {Data = 0, Full = 1, FastShower = 2, Fast = 3, True = 4}

Implemented in ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, Analysis::ParticleShallowClone, and ParticleBase.

◆ dump()

std::ostream & ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::dump ( std::ostream &  out) const
inlinevirtualinherited

Print I4Momentum content.

Implements I4Momentum.

Definition at line 232 of file ParticleSigStateImpl.h.

857 {
858  momentumBase().dump ( out );
859  out << "\n";
860  m_part.dump( out );
861  return out;
862 }

◆ e() [1/3]

energy

Definition at line 182 of file ParticleSigStateImpl.h.

752 {
753  return momentumBase().e();
754 }

◆ e() [2/3]

virtual double I4Momentum::e ( ) const
pure virtualinherited

◆ e() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::e ( state_t  s) const
inlinevirtualinherited

Definition at line 183 of file ParticleSigStateImpl.h.

575 {
576  return momentumBase(s).e();
577 }

◆ ei()

double Jet::ei ( ) const
virtual

Definition at line 943 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

943 { return this->e(); }

◆ end()

const_iterator Jet::end ( ) const

End iterator for constituent store.

◆ errors() [1/3]

Access to errors, if available; returns 0 if no errors.

Definition at line 225 of file ParticleSigStateImpl.h.

841 {
842  return momentumBase().errors();
843 }

◆ errors() [2/3]

virtual const I4MomentumError* I4Momentum::errors ( ) const
pure virtualinherited

◆ errors() [3/3]

Definition at line 226 of file ParticleSigStateImpl.h.

664 {
665  return momentumBase(s).errors();
666 }

◆ et() [1/3]

transverse energy defined to be e*sin(theta)

Definition at line 186 of file ParticleSigStateImpl.h.

760 {
761  return momentumBase().et();
762 }

◆ et() [2/3]

virtual double I4Momentum::et ( ) const
pure virtualinherited

◆ et() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::et ( state_t  s) const
inlinevirtualinherited

Definition at line 187 of file ParticleSigStateImpl.h.

583 {
584  return momentumBase(s).et();
585 }

◆ eta() [1/3]

pseudo rapidity

Definition at line 174 of file ParticleSigStateImpl.h.

736 {
737  return momentumBase().eta();
738 }

◆ eta() [2/3]

virtual double I4Momentum::eta ( ) const
pure virtualinherited

◆ eta() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::eta ( state_t  s) const
inlinevirtualinherited

Definition at line 175 of file ParticleSigStateImpl.h.

559 {
560  return momentumBase(s).eta();
561 }

◆ fastjetPtr()

const fastjet::PseudoJet* Jet::fastjetPtr ( ) const
inline

Access to the internal fastjet object. CAN RETURN NULL, see the description of m_pseudoJet.

Definition at line 850 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

850 {return m_pseudoJet;}

◆ fillToken() [1/2]

virtual void Jet::fillToken ( INavigationToken navToken) const
virtual

Object navigation support, no relational parameter.

Reimplemented from ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >.

◆ fillToken() [2/2]

virtual void Jet::fillToken ( INavigationToken navToken,
const std::any &  par 
) const
virtual

Object navigation support, relational parameter.

Reimplemented from ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >.

◆ finalScaleEqualsEMScale()

bool Jet::finalScaleEqualsEMScale ( ) const

True if JETFINAL state equals JETEMSCALE state within 0.1 MeV on each E,px,pypz components.

Definition at line 953 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

953  {
954  bool ok = jet_component_identity( getRawE() , getCalE() );
958  return ok;
959 }

◆ firstConstituent()

const_iterator Jet::firstConstituent ( ) const

(obsolete) begin iterator for constituent store

◆ get()

template<typename T >
T Jet::get ( const std::string &  mName) const

Compatibility with JetAnalysisEDM.

◆ get_scaled_copy()

Jet * Jet::get_scaled_copy ( double  scale_factor) const

return a NEW copy of this jet with 4mom scaled

Definition at line 578 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

578  {
579  Jet* newjet = new Jet(this,true,true);
580  newjet->scale_momentum(scale_factor);
581  return newjet;
582 }

◆ getAssociation()

template<typename ASSOC >
const ASSOC* Jet::getAssociation ( const mkey_t key,
bool  useLink = true 
) const

Retrieve association object.

◆ getAssociationBase()

const Jet::assoc_t * Jet::getAssociationBase ( const mkey_t key) const

Definition at line 1083 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1084 {
1085  return getObject<assoc_t,assostore_t>(key, m_assocStore, JetKeyConstants::AssoCat, false);
1086 }

◆ getAssociationKeys()

const std::vector< Jet::mkey_t > & Jet::getAssociationKeys ( ) const

Definition at line 1077 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1078 {
1080 }

◆ getAthenaBarCode() [1/2]

virtual AthenaBarCode_t IAthenaBarCode::getAthenaBarCode ( ) const
inlinevirtualinherited

◆ getAthenaBarCode() [2/2]

IAthenaBarCode interface forwarding

Definition at line 120 of file ParticleSigStateImpl.h.

929 {
931 }

◆ getCalE()

double Jet::getCalE ( ) const

Definition at line 938 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

938 { return e(P4SignalState::JETFINAL); }

◆ getCalibTag()

std::string Jet::getCalibTag ( int  i) const

retrieve calib tag number i (start at 1).

returns "" if non-existant

Definition at line 1145 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1145  {
1146  std::string full_auth = keyDesc()->getKey(JetKeyConstants::InfoCat,m_jetAuthor);
1147  size_t p = full_auth.find_first_of('_');
1148  int c=0;
1149  while(p != std::string::npos){
1150  c++;
1151  if( c==i ){
1152  return full_auth.substr(p+1,full_auth.find_first_of('_',p+1)-p-1);
1153  }
1154  p = full_auth.find_first_of('_',p+1);
1155  }
1156  return "";
1157 }

◆ getCalPx()

double Jet::getCalPx ( ) const

Definition at line 939 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

939 { return px(P4SignalState::JETFINAL); }

◆ getCalPy()

double Jet::getCalPy ( ) const

Definition at line 940 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

940 { return py(P4SignalState::JETFINAL); }

◆ getCalPz()

double Jet::getCalPz ( ) const

Definition at line 941 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

941 { return pz(P4SignalState::JETFINAL); }

◆ getContainer() [1/2]

const collection_t* Jet::getContainer ( const constituent_t pConst) const

Retrieve pointer to constituent object container.

◆ getContainer() [2/2]

const collection_t* Jet::getContainer ( const_iterator  fConst) const

Retrieve pointer to constituent object container.

◆ getCScaleE()

double Jet::getCScaleE ( ) const

◆ getCScalePx()

double Jet::getCScalePx ( ) const

◆ getCScalePy()

double Jet::getCScalePy ( ) const

◆ getCScalePz()

double Jet::getCScalePz ( ) const

◆ getData()

template<typename DATA , class STORE >
bool Jet::getData ( const mkey_t key,
STORE *  store,
const mcat_t cat,
DATA &  data,
bool  createIfMissing 
) const
inlineprotected

Get data from store with category and key.

Definition at line 807 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

812  {
813  size_t aInd(0);
814  if ( this->checkKeyStore(cat,key,store,aInd, createIfMissing) )
815  {
816  data = (store->operator[])(aInd);
817  return true;
818  }
819  else
820  {
821  return false;
822  }
823  }

◆ getFlavourTagWeight() [1/2]

double Jet::getFlavourTagWeight ( ) const

get the final b-tag result from the default tagger

Definition at line 989 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

990 {
991  double w = 0.;
992  if ( this->jetAuthor().find("Atlfast") != std::string::npos) {
993  // Fastsim
994  w = -30.;
995  const JetTagInfoBase* pos(this->tagInfo("SV1IP3D"));
996  if (pos != nullptr) {
997  std::vector<double> prob = pos->tagLikelihood();
998  if(prob.size()>1) {
999  double pb = prob[0];
1000  double pu = prob[1];
1001  if (pb != 0 && pu != 0)
1002  w = log(pb/pu);
1003  else
1004  w = 0.; //Hopefully a warning appears in the BTagger Tool
1005  }
1006  } else {
1007  // Use "binary" random b-tag only if no IP3D nor SV1 Info
1008  if (m_num_combinedLikelihood > 0) {
1009  std::vector<double> Likelihood = combinedLikelihood();
1010  if (Likelihood[0] > 0.9) w = 100;
1011  }
1012  }
1013  } else {
1014  // FullSim
1015  bool found = false;
1016  // get W from IP3D:
1017  const JetTagInfoBase* pos(this->tagInfo("IP3D"));
1018  if( pos != nullptr ) {
1019  found = true;
1020  std::vector<double> prob = pos->tagLikelihood();
1021  if(prob.size()>1) {
1022  double pb = prob[0];
1023  double pu = prob[1];
1024  if (pb > 0. && pu > 0.) {
1025  if(pb!=1.||pu!=1.e9) {
1026  w = log(pb/pu);
1027  }
1028  } else
1029  w = 0.; //Hopefully a warning appears in the BTagger Tool
1030  }
1031  }
1032  // get W from SV:
1033  pos = this->tagInfo("SV1");
1034  if( pos != nullptr ) {
1035  found = true;
1036  std::vector<double> prob = pos->tagLikelihood();
1037  if(prob.size()>1) {
1038  double pb = prob[0];
1039  double pu = prob[1];
1040  if (pb > 0. && pu > 0.) //Hopefully a warning appears in the BTagger Tool if not the case
1041  w += log(pb/pu);
1042  }
1043  }
1044  if (!found) w = -30.;
1045  }
1046  return w;
1047 }

◆ getFlavourTagWeight() [2/2]

double Jet::getFlavourTagWeight ( const std::string &  infoName) const

get the final b-tag result from a specific tagger

Definition at line 1049 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1050 {
1051  double w = -100.;
1052  const JetTagInfoBase* pos(this->tagInfo(infoName));
1053  if( pos != nullptr ) {
1054  std::vector<double> prob = pos->tagLikelihood();
1055  if(prob.size() == 1) {
1056  w = prob[0];
1057  } else {
1058  if(prob.size() > 1) {
1059  double pb = prob[0];
1060  double pu = prob[1];
1061  if(pb<=0.) { // A different protection than the above one... In any case, this is not OK and should be watched out !
1062  w = -30.;
1063  } else if (pu<=0.) {
1064  w = +100.;
1065  } else {
1066  w = log(pb/pu);
1067  }
1068  }
1069  }
1070  }
1071  return w;
1072 }

◆ getIndex() [1/2]

bool Jet::getIndex ( const constituent_t pConst,
index_t ind 
) const

Retrieve index of object in container.

◆ getIndex() [2/2]

bool Jet::getIndex ( const_iterator  fConst,
index_t ind 
) const

Retrieve index of object in container.

◆ getMoment()

shape_t Jet::getMoment ( const mkey_t shapeName,
bool  addIfMissing = false 
) const

Alias for getShape.

◆ getMomentKeys()

std::vector<mkey_t> Jet::getMomentKeys ( ) const

Alias for getShapeKeys.

◆ getMomentMap() [1/2]

const Jet::shape_map_t * Jet::getMomentMap ( ) const

Definition at line 1173 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1174 {
1175 
1176  // jets must be identified
1177  if(m_jetId == s_defaultJetId ) return nullptr;
1178 
1179  if( m_collection ){
1180  // This jet belongs to a JetCollection, ask the map
1181  return m_collection->getMomentMap();
1182  }
1183  // Else, this is an orphan jet, return the global instance :
1185 
1186 }

◆ getMomentMap() [2/2]

const Jet::shape_map_t * Jet::getMomentMap ( bool  addIfMissing) const
protected

Definition at line 1164 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1165 {
1166  if( (m_jetId == s_defaultJetId) && addIfMissing ){
1167  // we need an id to be registered in a map
1169  }
1170  return getMomentMap();
1171 }

◆ getMomentMapName()

std::string Jet::getMomentMapName ( ) const

Definition at line 1188 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1188  {
1189  std::string mapname = jetAuthor();
1190  mapname +="MomentMap";
1191  return mapname;
1192 }

◆ getObject()

template<typename OBJ , class STORE >
const OBJ* Jet::getObject ( const mkey_t key,
STORE *  store,
const mcat_t cat,
bool  createIfMissing 
) const
inlineprotected

Get object from store with category and key.

Definition at line 793 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

797  {
798  size_t aInd(0);
799  return this->checkKeyStore(cat,key,store,aInd,createIfMissing)
800  ? dynamic_cast<const OBJ*>((store->operator[])(aInd))
801  : (const OBJ*)0;
802  }

◆ getOverlap() [1/2]

Jet* Jet::getOverlap ( const Jet rJet,
bool  noKine = false 
) const

Retrieve constituent overlap between jets.

◆ getOverlap() [2/2]

Jet * Jet::getOverlap ( const Jet pJet,
bool  noKine = false 
) const

Retrieve constituent overlap between jets.

Definition at line 654 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

655 {
656  if ( pJet->size() == 0 || this->size() == 0 ) return (Jet*)nullptr;
657 
658  // Dereferencing ELs is a little expensive.
659  // Get the constituents into a vector so that we only
660  // need to do it once.
661  std::vector<const constituent_type*> constituents (this->begin(),
662  this->end());
663  //unused - fix warning
664  //size_t sz = std::min (this->size(), pJet->size());
665 
666  // Defer allocating the new jet until we know we have something
667  // to put into it.
668  Jet* newJet = nullptr;
669  // de-compose Jet
670  const_iterator fC(pJet->begin());
671  const_iterator lC(pJet->end());
672  for ( ; fC != lC; ++fC )
673  {
674  const constituent_type* c = *fC;
675  if ( std::find (constituents.begin(), constituents.end(), c) !=
676  constituents.end() )
677  {
678  if (!newJet){
679  newJet = new Jet(this, true, false); // we copy the stores, not the constituent
680  newJet->set4Mom(hlv_t(0. ,0. , 0., 0.)) ; //and reset its fourmom to nill
681  }
682  index_t index;
683 #ifndef NDEBUG
684  bool result =
685 #endif
686  this->getIndex (fC, index);
687  assert (result);
688  newJet->addConstituent(this->getContainer(fC),
689  index);
690 // sz,
691 // noKine);
692  //std::cout<< "getoverlap new e="<< newJet->e() << " / e1="<< e() << " e2="<< pJet->e()<<" | eta= "<< newJet->eta() << " f="<< newJet->pt()/pt() << std::endl;
693  }
694  }
695  return newJet;
696 }

◆ getParameter() [1/3]

double Jet::getParameter ( const collection_t pColl,
index_t  ind 
) const
protected

Retrieve weight.

◆ getParameter() [2/3]

double Jet::getParameter ( const constituent_t pConst) const
protected

Retrieve weight.

◆ getParameter() [3/3]

double Jet::getParameter ( const_iterator  fConst) const
protected

Retrieve weight.

◆ getRawE()

double Jet::getRawE ( ) const

Definition at line 928 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

928 { return e(P4SignalState::JETEMSCALE); }

◆ getRawPx()

double Jet::getRawPx ( ) const

Definition at line 929 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

929 { return px(P4SignalState::JETEMSCALE); }

◆ getRawPy()

double Jet::getRawPy ( ) const

Definition at line 930 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

930 { return py(P4SignalState::JETEMSCALE); }

◆ getRawPz()

double Jet::getRawPz ( ) const

Definition at line 931 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

931 { return pz(P4SignalState::JETEMSCALE); }

◆ getShape()

Jet::shape_t Jet::getShape ( const mkey_t shapeName,
bool  addIfMissing = false 
) const

Retrieve shape variable.

Definition at line 836 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

837 {
838 
839  size_t keyIndex;
840  if ( this->checkKey(JetKeyConstants::ShapeCat,shapeName,keyIndex,false) )
841  {
842  const shape_map_t* pMap = this->getMomentMap(addIfMissing);
843  return pMap != nullptr ? pMap->getMoment(m_jetId,keyIndex) : shape_t();
844  }
845  return shape_t();
846 }

◆ getShapeKeys()

std::vector< Jet::mkey_t > Jet::getShapeKeys ( ) const

Retrieve list of avalailable keys.

Definition at line 817 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

818 {
819  std::vector<Jet::mkey_t> keys;
820  const shape_map_t* pMap = this->getMomentMap();
821  if ( pMap != nullptr )
822  {
823  size_t n(pMap->numberOfMoments(m_jetId));
824  keys.reserve(n/2);
825  for ( size_t i(0); i < n; ++i )
826  {
827  float data(0.);
828  if ( pMap->getMoment(m_jetId,i,data) )
830  }
831  }
832 
833  return keys;
834 }

◆ getTagInfo()

template<typename TAGINFO >
const TAGINFO* Jet::getTagInfo ( const mkey_t key,
bool  useLink = true 
) const

Retrieve tag info object.

◆ getVersion() [1/2]

virtual AthenaBarCodeVersion_t IAthenaBarCode::getVersion ( ) const
inlinevirtualinherited

◆ getVersion() [2/2]

Definition at line 125 of file ParticleSigStateImpl.h.

962 {
964 }

◆ getWeight() [1/3]

double Jet::getWeight ( const collection_t pColl,
index_t  ind 
) const

Retrieve kinematic weight of constituent.

◆ getWeight() [2/3]

double Jet::getWeight ( const constituent_t pConst) const

Retrieve kinematic weight of constituent.

◆ getWeight() [3/3]

double Jet::getWeight ( const_iterator  fConst) const

Retrieve kinematic weight of constituent.

◆ has_calibrated_constit()

bool Jet::has_calibrated_constit ( ) const
inline

True if the jet constituent have a calibrated signal state.

Definition at line 533 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

533 {return int(constituentSignalState())>0;};

◆ hasCalibTag()

bool Jet::hasCalibTag ( const std::string &  tag) const

test if jet has calib tag tag

Definition at line 1128 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1128  {
1129  std::string full_auth = keyDesc()->getKey(JetKeyConstants::InfoCat,m_jetAuthor);
1130  std::string full_tag = ""; full_tag+="_"; full_tag+=tag;
1131  return ( full_auth.find(full_tag) != std::string::npos );
1132 }

◆ hasCharge() [1/2]

bool ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::hasCharge
inlinevirtualinherited

method to check if charge information is available

Definition at line 253 of file ParticleSigStateImpl.h.

892 {
893  return m_part.hasCharge();
894 }

◆ hasCharge() [2/2]

virtual bool IParticle::hasCharge ( ) const
pure virtualinherited

◆ hasPdgId() [1/2]

bool ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::hasPdgId
inlinevirtualinherited

method to check if particle id information is available

Definition at line 263 of file ParticleSigStateImpl.h.

908 {
909  return m_part.hasPdgId();
910 }

◆ hasPdgId() [2/2]

virtual bool IParticle::hasPdgId ( ) const
pure virtualinherited

◆ hasSameAthenaBarCode()

bool ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::hasSameAthenaBarCode ( const IAthenaBarCode bc) const
inlinevirtualinherited

Reimplemented from IAthenaBarCode.

Definition at line 123 of file ParticleSigStateImpl.h.

946 {
948 }

◆ hasSameAthenaBarCodeExceptVersion()

bool ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::hasSameAthenaBarCodeExceptVersion ( const IAthenaBarCode bc) const
inlinevirtualinherited

Reimplemented from IAthenaBarCode.

Definition at line 124 of file ParticleSigStateImpl.h.

◆ hasSignalState()

bool ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::hasSignalState ( state_t  s) const
inlinevirtualinherited

check if signal state exists for current implementation

Implements ISignalState.

Definition at line 313 of file ParticleSigStateImpl.h.

1172 {
1173  // UNKNOWN is not an actual SignalState!
1174  if(int(s)<0)
1175  return false;
1176 
1177  return (int(s) < m_nStates);
1178 }

◆ hlv() [1/3]

CLHEP::HepLorentzVector ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::hlv
inlinevirtualinherited

CLHEP HepLorentzVector.

Definition at line 222 of file ParticleSigStateImpl.h.

833 {
834  return momentumBase().hlv();
835 }

◆ hlv() [2/3]

virtual CLHEP::HepLorentzVector I4Momentum::hlv ( ) const
pure virtualinherited

◆ hlv() [3/3]

CLHEP::HepLorentzVector ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::hlv ( state_t  s) const
inlinevirtualinherited

obtain the CLHEP HepLorentzVector

Implements ISignalState.

Definition at line 223 of file ParticleSigStateImpl.h.

656 {
657  return momentumBase(s).hlv();
658 }

◆ id()

size_t Jet::id ( ) const

returns this jet unique identifier in its collection

Definition at line 1194 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1194 {return m_jetId;}

◆ infoKeys()

const std::vector<mkey_t> Jet::infoKeys ( ) const

(depreciated) list of tag info keys

◆ insertElement() [1/2]

void Jet::insertElement ( const collection_t pColl,
const constituent_t pConst,
double  wght = 1.0,
size_t  sizeHint = 0 
)
protected

insert element without checking

◆ insertElement() [2/2]

void Jet::insertElement ( const collection_t pColl,
index_t  ind,
double  wght = 1.0,
size_t  sizeHint = 0 
)
protected

insert element without checking

◆ iPt() [1/3]

inverse of transverse momentum

Definition at line 194 of file ParticleSigStateImpl.h.

776 {
777  return momentumBase().iPt();
778 }

◆ iPt() [2/3]

virtual double I4Momentum::iPt ( ) const
pure virtualinherited

◆ iPt() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::iPt ( state_t  s) const
inlinevirtualinherited

Definition at line 195 of file ParticleSigStateImpl.h.

599 {
600  return momentumBase(s).iPt();
601 }

◆ isAtSignalState()

bool ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::isAtSignalState ( state_t  s) const
inlinevirtualinherited

check if we are at the passed state

Implements ISignalState.

Definition at line 316 of file ParticleSigStateImpl.h.

1184 {
1185  return (s == m_currentState);
1186 }

◆ isIdentical() [1/2]

bool Jet::isIdentical ( const Jet rJet) const

Test if Jet is identical to given Jet.

◆ isIdentical() [2/2]

bool Jet::isIdentical ( const Jet pJet) const

Test if Jet is identical to given Jet.

Definition at line 589 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

590 {
591  // need to have same size (number of constituents)
592  if ( pJet->size() != this->size() ) return false;
593 
594  if( pJet->size() == 0 ){
595  // fall back on mometum comparison
596  bool isEqual = ( fabs( pJet->e() - e() )< m_ignoreWeight ) ;
597  isEqual = isEqual && ( fabs( pJet->px() - px() )< m_ignoreWeight) ;
598  isEqual = isEqual && ( fabs( pJet->py() - py() )< m_ignoreWeight) ;
599  isEqual = isEqual && ( fabs( pJet->pz() - pz() )< m_ignoreWeight) ;
600  return isEqual;
601  }
602 
603  bool isEqual = true;
604  const_iterator fC(pJet->begin());
605  const_iterator lC(pJet->end());
606 
607  while ( isEqual && fC != lC )
608  {
609  double wJ(pJet->getWeight(fC));
610  const_iterator fK(this->begin());
611  const_iterator lK(this->end());
612  while ( ( fK != lK ) && ((*fC) != (*fK) ||
613  fabs(this->getWeight(fK)-wJ) >= m_ignoreWeight) )
614 
615  { ++fK; }
616  isEqual = fK != lK;
617  ++fC;
618  }
619 
620  return isEqual;
621 }

◆ jetAuthor()

Jet::mkey_t Jet::jetAuthor ( ) const

Author and calibration history are encoded in a simple way inside the jet object.

This is done through a string of the form JetAuthor_AAAA_BB_CCC_ were AAAA , BBB, etc... are expected to tag calibration applied to this jet

Retrieve the author of this Jet (only the author, without tags)

Definition at line 1108 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1109 {
1110  std::string full_auth = keyDesc()->getKey(JetKeyConstants::InfoCat,m_jetAuthor);
1111  // return the first part in JetAuth_XXX_YYY
1112  size_t found=full_auth.find_first_of('_');
1113  return found != std::string::npos ? full_auth.substr(0 , found) : full_auth;
1114 }

◆ jetAuthorAndCalibTags()

std::string Jet::jetAuthorAndCalibTags ( ) const

Retrieve the full author-and-tag string of this Jet.

Definition at line 1118 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1118  {
1120 }

◆ jetTagInfoVector()

const tagstore_t Jet::jetTagInfoVector ( ) const

(depreciated) Retrieve vector of tag infos

◆ keyDesc()

JetKeyDescriptorInstance * Jet::keyDesc ( ) const
protected

Definition at line 788 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

788  {
789  if( m_collection ) return m_collection->keyDesc();
791 }

◆ kind() [1/2]

add Kind which tells what kind (P4XYZ) the underlying implementation has

Definition at line 229 of file ParticleSigStateImpl.h.

849 {
850  return momentumBase().kind();
851 }

◆ kind() [2/2]

virtual Kind I4Momentum::kind ( ) const
pure virtualinherited

◆ lastConstituent()

const_iterator Jet::lastConstituent ( ) const

(obsolere) end iterator for constituent store

◆ m() [1/3]

mass

Definition at line 154 of file ParticleSigStateImpl.h.

696 {
697  return momentumBase().m();
698 }

◆ m() [2/3]

virtual double I4Momentum::m ( ) const
pure virtualinherited

◆ m() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::m ( state_t  s) const
inlinevirtualinherited

Definition at line 155 of file ParticleSigStateImpl.h.

519 {
520  return momentumBase(s).m();
521 }

◆ m2() [1/3]

mass squared

Definition at line 158 of file ParticleSigStateImpl.h.

704 {
705  return momentumBase().m2();
706 }

◆ m2() [2/3]

virtual double I4Momentum::m2 ( ) const
pure virtualinherited

◆ m2() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::m2 ( state_t  s) const
inlinevirtualinherited

Definition at line 159 of file ParticleSigStateImpl.h.

527 {
528  return momentumBase(s).m2();
529 }

◆ momentumBase() [1/4]

Definition at line 283 of file ParticleSigStateImpl.h.

1013 {
1015  return m_mom[int(m_currentState)];
1016  else
1017  return m_mom[0];
1018 }

◆ momentumBase() [2/4]

Definition at line 101 of file ParticleSigStateImpl.h.

459 {
461  return m_mom[int(m_currentState)];
462  else
463  return m_mom[0];
464 }

◆ momentumBase() [3/4]

access to underlying base type (I4Momentum-like)

Definition at line 282 of file ParticleSigStateImpl.h.

1002 {
1003  if(hasSignalState(s))
1004  return m_mom[int(s)];
1005  else
1006  return m_mom[0];
1007 }

◆ momentumBase() [4/4]

access to underlying base type (I4Momentum-like)

Definition at line 100 of file ParticleSigStateImpl.h.

448 {
449  if(hasSignalState(s))
450  return m_mom[int(s)];
451  else
452  return m_mom[0];
453 }

◆ momentumVector()

std::vector<P4ImplPxPyPzE >& ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::momentumVector
inlineprotectedinherited

access the vector of momentum

Definition at line 330 of file ParticleSigStateImpl.h.

330 {return m_mom;}

◆ navigableBase() [1/2]

access to underlying base type (INavigable-like)

Definition at line 278 of file ParticleSigStateImpl.h.

994 {
995  return m_nav;
996 }

◆ navigableBase() [2/2]

access to underlying base type (INavigable-like)

Definition at line 96 of file ParticleSigStateImpl.h.

440 {
441  return m_nav;
442 }

◆ newVersion()

void ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::newVersion
inlinevirtualinherited

Reimplemented from IAthenaBarCode.

Definition at line 126 of file ParticleSigStateImpl.h.

970 {
972 }

◆ nStates()

int ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::nStates
inlineprotectedinherited

access the number of state

Definition at line 333 of file ParticleSigStateImpl.h.

333 {return m_nStates;}

◆ nullOp()

static bool Jet::nullOp ( const constituent_type )
inlinestatic

defaul function for preProcessConstituent and postProcessConstituent

Definition at line 636 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

637  { return true; };

◆ numCalibTag()

int Jet::numCalibTag ( ) const

number of calib tags for this jet

Definition at line 1134 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1134  {
1135  std::string full_auth = keyDesc()->getKey(JetKeyConstants::InfoCat,m_jetAuthor);
1136  size_t p = full_auth.find_first_of('_');
1137  int c=0;
1138  while(p != std::string::npos){
1139  c++;
1140  p = full_auth.find_first_of('_',p+1);
1141  }
1142  return c;
1143 }

◆ operator!=() [1/2]

bool Jet::operator!= ( const Jet rJet) const

Comparison operator.

◆ operator!=() [2/2]

bool Jet::operator!= ( const Jet pJet) const

Comparison operator.

◆ operator<<()

MsgStream& Jet::operator<< ( MsgStream &  out)

Output operator.

◆ operator=()

Jet& Jet::operator= ( const Jet rJet)

Assignment operator.

◆ operator==() [1/2]

bool Jet::operator== ( const Jet rJet) const

Comparison operator.

◆ operator==() [2/2]

bool Jet::operator== ( const Jet pJet) const

Comparison operator.

◆ origin() [1/2]

Return a RecVertex corresponding to particle Origin

Definition at line 245 of file ParticleSigStateImpl.h.

876 {
877  return m_part.origin();
878 }

◆ origin() [2/2]

virtual const Trk::RecVertex* IParticle::origin ( ) const
pure virtualinherited

◆ originLink() [1/2]

Return an ElementLink corresponding to particle's Origin.

Definition at line 249 of file ParticleSigStateImpl.h.

884 {
885  return m_part.originLink();
886 }

◆ originLink() [2/2]

virtual const ElementLink<VxContainer>& IParticle::originLink ( ) const
pure virtualinherited

◆ p() [1/3]

mass momentum magnitude

Definition at line 162 of file ParticleSigStateImpl.h.

712 {
713  return momentumBase().p();
714 }

◆ p() [2/3]

virtual double I4Momentum::p ( ) const
pure virtualinherited

◆ p() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::p ( state_t  s) const
inlinevirtualinherited

Definition at line 163 of file ParticleSigStateImpl.h.

535 {
536  return momentumBase(s).p();
537 }

◆ p2() [1/3]

square of momentum magnitude

Definition at line 166 of file ParticleSigStateImpl.h.

720 {
721  return momentumBase().p2();
722 }

◆ p2() [2/3]

virtual double I4Momentum::p2 ( ) const
pure virtualinherited

◆ p2() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::p2 ( state_t  s) const
inlinevirtualinherited

Definition at line 167 of file ParticleSigStateImpl.h.

543 {
544  return momentumBase(s).p2();
545 }

◆ parentCollection()

const JetCollection * Jet::parentCollection ( ) const

a pointer to the collection this jet belongs to (can be NULL)

Definition at line 1196 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1196  {
1197  return m_collection;
1198 }

◆ particleBase() [1/2]

access to underlying base type (IParticle-like)

Definition at line 287 of file ParticleSigStateImpl.h.

1024 {
1025  return m_part;
1026 }

◆ particleBase() [2/2]

access to underlying base type (IParticle-like)

Definition at line 105 of file ParticleSigStateImpl.h.

470 {
471  return m_part;
472 }

◆ pdgId() [1/2]

Return particle id.

Definition at line 267 of file ParticleSigStateImpl.h.

916 {
917  return m_part.pdgId();
918 }

◆ pdgId() [2/2]

virtual int IParticle::pdgId ( ) const
pure virtualinherited

Return enum indicating particle id the enum file is available in Event/EventKernel/PdtPdg.h

Implemented in ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, Analysis::ParticleShallowClone, and ParticleBase.

◆ phi() [1/3]

phi in [-pi,pi[

Definition at line 178 of file ParticleSigStateImpl.h.

744 {
745  return momentumBase().phi();
746 }

◆ phi() [2/3]

virtual double I4Momentum::phi ( ) const
pure virtualinherited

◆ phi() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::phi ( state_t  s) const
inlinevirtualinherited

Definition at line 179 of file ParticleSigStateImpl.h.

567 {
568  return momentumBase(s).phi();
569 }

◆ pt() [1/3]

transverse momentum

Definition at line 190 of file ParticleSigStateImpl.h.

768 {
769  return momentumBase().pt();
770 }

◆ pt() [2/3]

virtual double I4Momentum::pt ( ) const
pure virtualinherited

◆ pt() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::pt ( state_t  s) const
inlinevirtualinherited

Definition at line 191 of file ParticleSigStateImpl.h.

591 {
592  return momentumBase(s).pt();
593 }

◆ pti()

double Jet::pti ( ) const
virtual

Definition at line 951 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

951 { return this->pt(); }

◆ putElement() [1/2]

void Jet::putElement ( const collection_t pColl,
const constituent_t pConst,
double  wght = 1.0,
size_t  sizeHint = 0 
)
protected

Add element with checking.

◆ putElement() [2/2]

void Jet::putElement ( const collection_t pColl,
index_t  ind,
double  wght = 1.0,
size_t  sizeHint = 0 
)
protected

Add element with checking.

◆ px() [1/3]

We re-define here extra class routines that will allow direct access to signal state kinematics without changing the current state.

I4Momentum interface forwarding x component of momentum

Definition at line 142 of file ParticleSigStateImpl.h.

672 {
673  return momentumBase().px();
674 }

◆ px() [2/3]

virtual double I4Momentum::px ( ) const
pure virtualinherited

◆ px() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::px ( state_t  s) const
inlinevirtualinherited

Definition at line 143 of file ParticleSigStateImpl.h.

495 {
496  return momentumBase(s).px();
497 }

◆ pxi()

double Jet::pxi ( ) const
virtual

Definition at line 945 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

945 { return this->px(); }

◆ py() [1/3]

y component of momentum

Definition at line 146 of file ParticleSigStateImpl.h.

680 {
681  return momentumBase().py();
682 }

◆ py() [2/3]

virtual double I4Momentum::py ( ) const
pure virtualinherited

◆ py() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::py ( state_t  s) const
inlinevirtualinherited

Definition at line 147 of file ParticleSigStateImpl.h.

503 {
504  return momentumBase(s).py();
505 }

◆ pyi()

double Jet::pyi ( ) const
virtual

Definition at line 947 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

947 { return this->py(); }

◆ pz() [1/3]

z component of momentum

Definition at line 150 of file ParticleSigStateImpl.h.

688 {
689  return momentumBase().pz();
690 }

◆ pz() [2/3]

virtual double I4Momentum::pz ( ) const
pure virtualinherited

◆ pz() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::pz ( state_t  s) const
inlinevirtualinherited

Definition at line 151 of file ParticleSigStateImpl.h.

511 {
512  return momentumBase(s).pz();
513 }

◆ pzi()

double Jet::pzi ( ) const
virtual

Definition at line 949 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

949 { return this->pz(); }

◆ rapidity() [1/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::rapidity
inlinevirtualinherited

rapidity

Definition at line 170 of file ParticleSigStateImpl.h.

728 {
729  return momentumBase().rapidity();
730 }

◆ rapidity() [2/3]

virtual double I4Momentum::rapidity ( ) const
pure virtualinherited

◆ rapidity() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::rapidity ( state_t  s) const
inlinevirtualinherited

Definition at line 171 of file ParticleSigStateImpl.h.

551 {
552  return momentumBase(s).rapidity();
553 }

◆ remove() [1/3]

bool Jet::remove ( )
protected

◆ remove() [2/3]

bool Jet::remove ( const collection_t pColl,
index_t  ind 
)
protected

◆ remove() [3/3]

bool Jet::remove ( const constituent_t pConst)
protected

Remove constituent.

◆ removeAssociation() [1/2]

void Jet::removeAssociation ( const mkey_t key)

remove and DELETE association object.

◆ removeAssociation() [2/2]

void Jet::removeAssociation ( size_t  index)
private

clear association at given index

◆ removeConstituent() [1/3]

bool Jet::removeConstituent ( bool  reset = false)

Remove all constituents.

◆ removeConstituent() [2/3]

bool Jet::removeConstituent ( const collection_t pColl,
index_t  ind 
)

Remove a constituent.

◆ removeConstituent() [3/3]

bool Jet::removeConstituent ( const constituent_t pConst)

Remove a constituent.

Definition at line 490 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

491 {
492  if ( this->contains(pConst) )
493  {
494  double w(this->getWeight(pConst));
495  //this->updateKine(pConst->hlv(),-w);
496  this->updateKine(pConst,-w);
497  this->remove(pConst);
498  return true;
499  }
500  return false;
501 }

◆ removeInfo() [1/2]

void Jet::removeInfo ( const mkey_t key)

(depreciated) Remove tag info object

Definition at line 878 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

879 {
880  if ( bool(m_tagInfoStore) ) {
881  size_t aInd;
882  if ( this->checkKeyStore(JetKeyConstants::TagCat,key,m_tagInfoStore,aInd, false) ) {
883  removeInfo(aInd);
884  }
885  }
886 }

◆ removeInfo() [2/2]

void Jet::removeInfo ( unsigned int  index)
private

Remove tag info for object located at index (internal)

Definition at line 872 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

873 {
874  delete (m_tagInfoStore->operator[])(index);
875  (m_tagInfoStore->operator[])(index) = nullptr;
876 }

◆ resetSignalState()

void ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::resetSignalState
inlineprotectedvirtualinherited

reset the signal state

Implements ISignalState.

Definition at line 327 of file ParticleSigStateImpl.h.

1192 {
1193  m_currentState = state_t(0);
1194 }

◆ reweight() [1/2]

bool Jet::reweight ( const collection_t pColl,
index_t  ind,
double  wght 
)

Change kinematic weight of constituent.

Definition at line 562 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

563 {
564  // std::cout << "reweighting "<< wght << std::endl;
565  return this->removeConstituent(pColl,ind)
566  ? this->addConstituent(pColl,ind,wght)
567  : false;
568 }

◆ reweight() [2/2]

bool Jet::reweight ( const constituent_t pConst,
double  wght 
)

Change kinematic weight of constituent.

Definition at line 551 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

552 {
553  if ( this->contains(pConst) )
554  {
555  const collection_t* pColl = this->getContainer(pConst);
556  this->removeConstituent(pConst);
557  return this->addConstituent(pColl,pConst,wght);
558  }
559  return false;
560 }

◆ RoIword()

unsigned int Jet::RoIword ( ) const
inline

Return the RoI Word.

Definition at line 544 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

544 {return m_RoIword;};

◆ scale_momentum()

void Jet::scale_momentum ( double  scale_factor)

scale the jet 4mom by scale_factor

Definition at line 574 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

574  {
575  this->set4Mom(this->hlv()*scale_factor);
576 }

◆ set()

template<typename T >
void Jet::set ( const std::string &  mName,
const T &  v 
) const

◆ set4Mom() [1/6]

void ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::set4Mom ( const CLHEP::HepLorentzVector &  hlv)
inlinevirtualinherited

set 4Momentum (will throw exception if cannot be implemented)

Implements I4Momentum.

Definition at line 293 of file ParticleSigStateImpl.h.

1077 {
1078  return momentumBase().set4Mom( hlv );
1079 }

◆ set4Mom() [2/6]

void ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::set4Mom ( const CLHEP::HepLorentzVector &  hlv,
state_t  s 
)
inlinevirtualinherited

Definition at line 296 of file ParticleSigStateImpl.h.

1052 {
1053  return momentumBase(s).set4Mom( hlv );
1054 }

◆ set4Mom() [3/6]

void ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::set4Mom ( const I4Momentum p4)
inlinevirtualinherited

set 4Momentum (will throw exception if cannot be implemented)

Implements I4Momentum.

Definition at line 291 of file ParticleSigStateImpl.h.

1060 {
1061  return momentumBase().set4Mom( p4 );
1062 }

◆ set4Mom() [4/6]

void ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::set4Mom ( const I4Momentum p4,
state_t  s 
)
inlinevirtualinherited

Definition at line 294 of file ParticleSigStateImpl.h.

1035 {
1036  return momentumBase(s).set4Mom( p4 );
1037 }

◆ set4Mom() [5/6]

set 4Momentum (will throw exception if cannot be implemented)

Implements I4Momentum.

Definition at line 292 of file ParticleSigStateImpl.h.

1068 {
1069  return momentumBase().set4Mom( p4 );
1070 }

◆ set4Mom() [6/6]

void ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::set4Mom ( const I4Momentum *const  p4,
state_t  s 
)
inlinevirtualinherited

Definition at line 295 of file ParticleSigStateImpl.h.

1043 {
1044  return momentumBase(s).set4Mom( p4 );
1045 }

◆ set_charge()

void ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::set_charge ( ChargeType  x)
inlinevirtualinherited

Definition at line 300 of file ParticleSigStateImpl.h.

1093 {
1094  m_part.set_charge(x);
1095 }

◆ set_dataType()

Definition at line 299 of file ParticleSigStateImpl.h.

1085 {
1087 }

◆ set_origin() [1/3]

void ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::set_origin ( const ElementLink< VxContainer > &  origin)
inlinevirtualinherited

Definition at line 305 of file ParticleSigStateImpl.h.

1127 {
1129 }

◆ set_origin() [2/3]

void ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::set_origin ( const VxContainer theContainer,
const Trk::VxCandidate vertex 
)
inlinevirtualinherited

Definition at line 303 of file ParticleSigStateImpl.h.

1119 {
1120  m_part.set_origin(theContainer, vertex);
1121 }

◆ set_origin() [3/3]

void ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::set_origin ( const VxContainer theContainer,
int  index 
)
inlinevirtualinherited

Definition at line 302 of file ParticleSigStateImpl.h.

1110 {
1111  m_part.set_origin(theContainer, index);
1112 }

◆ set_pdgId()

void ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::set_pdgId ( int  x)
inlinevirtualinherited

Definition at line 301 of file ParticleSigStateImpl.h.

1101 {
1102  m_part.set_pdgId(x);
1103 }

◆ set_RoIword()

bool Jet::set_RoIword ( unsigned int  word)
inline

set RoI Word

Definition at line 547 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

547 {m_RoIword = word; return true;};

◆ setAssociation()

template<class T >
void Jet::setAssociation ( const T *  pAssoc,
bool  useLink = false 
)

Set association object.

◆ setAthenaBarCode()

void ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::setAthenaBarCode ( AthenaBarCode_t  id)
inlinevirtualinherited

Reimplemented from IAthenaBarCode.

Definition at line 121 of file ParticleSigStateImpl.h.

937 {
939 }

◆ setCalE()

void Jet::setCalE ( double  e)

Sets calibrated \( E \)

Definition at line 919 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

◆ setCalPx()

void Jet::setCalPx ( double  px)

Sets calibrated \( p_x \).

Definition at line 921 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

◆ setCalPy()

void Jet::setCalPy ( double  py)

Sets calibrated \( p_y \).

Definition at line 923 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

◆ setCalPz()

void Jet::setCalPz ( double  pz)

Sets calibrated \( p_z \).

Definition at line 925 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

◆ setCombinedLikelihood()

void Jet::setCombinedLikelihood ( const std::vector< double > &  combinedLikelihood)

(depreciated) Likelihood store setter

Definition at line 978 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

980 {
981  const std::string base="LikeLihood_";
982  for(unsigned int i=0; i<combinedLikelihood.size(); i++){
984  }
986 }

◆ setConstituentSignalState()

void Jet::setConstituentSignalState ( signalstate_t  s)

Set the current Signal state of the jet constituents.

◆ setConstituentsN()

void Jet::setConstituentsN ( numconstit_t  n)
inline

Set number of constituents in jet.

this just sets a number, no actual effect on constituents. Used when constituents are physically removed when jet is saved on disk.

Definition at line 306 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

306 {m_constituentsN = n;}

◆ setCScaleE()

void Jet::setCScaleE ( double  e)

Sets uncalibrated \( E \)

Definition at line 910 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

◆ setCScalePx()

void Jet::setCScalePx ( double  px)

Sets uncalibrated \( p_x \).

Definition at line 912 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

◆ setCScalePy()

void Jet::setCScalePy ( double  py)

Sets uncalibrated \( p_y \).

Definition at line 914 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

◆ setCScalePz()

void Jet::setCScalePz ( double  pz)

Sets uncalibrated \( p_z \).

Definition at line 916 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

◆ setE() [1/2]

virtual void Jet::setE ( double  e)
virtual

Kinematics are now handled by the base class, except for the following.

◆ setE() [2/2]

virtual void Jet::setE ( double  e,
signalstate_t  s 
)
virtual

◆ setEEtaPhiM()

void Jet::setEEtaPhiM ( double  a,
double  b,
double  c,
double  d 
)

Definition at line 1214 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1214  {
1215  set4Mom( P4EEtaPhiM(a,b,c,d) );
1216 }

◆ setFastjetPtr()

void Jet::setFastjetPtr ( const fastjet::PseudoJet *  fj)
inline

Definition at line 851 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

851 { m_pseudoJet = fj;}

◆ setJetAuthor()

void Jet::setJetAuthor ( const std::string &  author)

Set author of this Jet (only the author, tags unchanged)

Definition at line 1094 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1095 {
1097 
1098  std::string full_auth = keyDesc()->getKey(JetKeyConstants::InfoCat,m_jetAuthor);
1099  size_t pos = full_auth.find_first_of('_');
1100 
1101  if( pos != std::string::npos) // we add the _XXX_YYY part to author
1102  m_jetAuthor = keyDesc()->getIndex(JetKeyConstants::InfoCat,author+full_auth.substr(pos),true);
1103  else
1105 }

◆ setJetAuthorAndCalibTags()

void Jet::setJetAuthorAndCalibTags ( const std::string &  author)

Set the full author-and-tag string.

Definition at line 1122 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1122  {
1124 }

◆ setJetId()

void Jet::setJetId ( size_t  id)
protected

Definition at line 1200 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1200 { m_jetId = id ; }

◆ setMoment()

void Jet::setMoment ( const mkey_t shapeName,
shape_t  shape,
bool  addIfMissing = true 
) const

Alias for setShape.

◆ setNStates()

void ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::setNStates ( int  n)
inlineprotectedinherited

Definition at line 334 of file ParticleSigStateImpl.h.

334 {m_nStates = n;}

◆ setP()

void Jet::setP ( const hlv_t rVec)

(obsolete) set all 4-mom from CLHEP CLHEP::HepLorentzVector

◆ setPtEtaPhiE()

void Jet::setPtEtaPhiE ( double  a,
double  b,
double  c,
double  d 
)

Definition at line 1205 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1205  {
1206  double pz = pt*std::sinh( eta) ;
1207  double px = pt*std::cos(phi);
1208  double py = pt*std::sin(phi);
1209  setPx(px);setPy(py);setPz(pz);setE(e);
1210 }

◆ setPtEtaPhiM()

void Jet::setPtEtaPhiM ( double  a,
double  b,
double  c,
double  d 
)

Definition at line 1211 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1211  {
1212  set4Mom( P4PtEtaPhiM(a,b,c,d) );
1213 }

◆ setPx() [1/2]

virtual void Jet::setPx ( double  Px)
virtual

◆ setPx() [2/2]

virtual void Jet::setPx ( double  Px,
signalstate_t  s 
)
virtual

◆ setPxPyPzE()

void Jet::setPxPyPzE ( double  px,
double  py,
double  pz,
double  e 
)

compatibility with analysis EDM

Definition at line 1202 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

1202  {
1203  setPx(px);setPy(py);setPz(pz);setE(e);
1204 }

◆ setPy() [1/2]

virtual void Jet::setPy ( double  py)
virtual

◆ setPy() [2/2]

virtual void Jet::setPy ( double  py,
signalstate_t  s 
)
virtual

◆ setPz() [1/2]

virtual void Jet::setPz ( double  pz)
virtual

◆ setPz() [2/2]

virtual void Jet::setPz ( double  pz,
signalstate_t  s 
)
virtual

◆ setRawE()

void Jet::setRawE ( double  e)

Sets uncalibrated \( E \)

Definition at line 901 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

◆ setRawPx()

void Jet::setRawPx ( double  px)

Sets uncalibrated \( p_x \).

Definition at line 903 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

◆ setRawPy()

void Jet::setRawPy ( double  py)

Sets uncalibrated \( p_y \).

Definition at line 905 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

◆ setRawPz()

void Jet::setRawPz ( double  pz)

Sets uncalibrated \( p_z \).

Definition at line 907 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

◆ setShape()

void Jet::setShape ( const mkey_t shapeName,
shape_t  shape,
bool  addIfMissing = true 
) const

Set shape variable.

Definition at line 797 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

799 {
800  // use check function to find index of moment - index is generated if
801  // not yet in key descriptor store
802  size_t keyIndex;
803  if ( this->checkKey(JetKeyConstants::ShapeCat,shapeName,keyIndex,true) )
804  {
805  // access jet moment map
806  const shape_map_t* map = this->getMomentMap(createIfMissing);
807  // store data
808  if ( map != nullptr )
809  {
810  map->setMoment(m_jetId,keyIndex,shapeValue);
811  // m_newMomKeys = true;
812  }
813  }
814 }

◆ setSignalState()

bool ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::setSignalState ( state_t  s)
inlineprotectedvirtualinherited

set the current signal state

Implements ISignalState.

Definition at line 324 of file ParticleSigStateImpl.h.

1158 {
1159  if(!hasSignalState(s))
1160  {
1161  return false;
1162  } else {
1163  m_currentState = s;
1164  return true;
1165  }
1166 }

◆ setTagInfo()

void Jet::setTagInfo ( const mkey_t key,
const taginfo_t pTagInfo,
bool  useLink = false 
)

Set tag info object.

Definition at line 853 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

856 {
857  // use check function
858  size_t aInd;
859  //
860  if ( ! bool(m_tagInfoStore) )
861  {
862  // checkKey automatically build new store !!!
863  m_tagInfoStore = new tagstore_t();
864  }
866  {
867  removeInfo(aInd);
868  (m_tagInfoStore->operator[])(aInd) = pTagInfo;
869  }
870 }

◆ setup()

void Jet::setup ( const hlv_t v)
protected

◆ setupKine()

void Jet::setupKine ( const hlv_t v)
virtual

Definition at line 889 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

890 {
891  this->set4Mom(vIn, statename_t::JETEMSCALE);
893  this->set4Mom(vIn, statename_t::JETFINAL);
894 }

◆ setVersion()

void ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::setVersion ( AthenaBarCodeVersion_t  newversion)
inlinevirtualinherited

Reimplemented from IAthenaBarCode.

Definition at line 127 of file ParticleSigStateImpl.h.

978 {
980 }

◆ signalState() [1/2]

Retrieve current signal state.

Definition at line 310 of file ParticleSigStateImpl.h.

1150 {
1151  return m_currentState;
1152 }

◆ signalState() [2/2]

virtual P4SignalState::State ISignalState::signalState ( ) const
pure virtualinherited

obtain the current signal state

Implemented in CaloCluster, and ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >.

◆ sinPhi() [1/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::sinPhi
inlinevirtualinherited

sinus phi

Definition at line 202 of file ParticleSigStateImpl.h.

792 {
793  return momentumBase().sinPhi();
794 }

◆ sinPhi() [2/3]

virtual double I4Momentum::sinPhi ( ) const
pure virtualinherited

◆ sinPhi() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::sinPhi ( state_t  s) const
inlinevirtualinherited

Definition at line 203 of file ParticleSigStateImpl.h.

615 {
616  return momentumBase(s).sinPhi();
617 }

◆ sinTh() [1/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::sinTh
inlinevirtualinherited

sinus theta

Definition at line 214 of file ParticleSigStateImpl.h.

816 {
817  return momentumBase().sinTh();
818 }

◆ sinTh() [2/3]

virtual double I4Momentum::sinTh ( ) const
pure virtualinherited

◆ sinTh() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::sinTh ( state_t  s) const
inlinevirtualinherited

Definition at line 215 of file ParticleSigStateImpl.h.

639 {
640  return momentumBase(s).sinTh();
641 }

◆ size()

size_t Jet::size ( ) const

Size of constituent store.

◆ str()

std::string Jet::str ( )

Jet print-out function.

Definition at line 624 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

624  {
625  std::ostringstream out;
626  out << jetAuthor() << ": NConstituents: " << size() << "; Eta: " << eta() << "; Phi: " << phi() << "; Pt: " << pt();
627  return out.str();
628 }

◆ tagInfo() [1/2]

const taginfo_t* Jet::tagInfo ( const mkey_t key) const

Retrieve tag info object.

◆ tagInfo() [2/2]

template<class TAGINFO >
const TAGINFO* Jet::tagInfo ( const mkey_t key) const

Retrieve a concrete tag info object.

◆ tanTh() [1/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::tanTh
inlinevirtualinherited

tan theta

Definition at line 206 of file ParticleSigStateImpl.h.

800 {
801  return momentumBase().tanTh();
802 }

◆ tanTh() [2/3]

virtual double I4Momentum::tanTh ( ) const
pure virtualinherited

◆ tanTh() [3/3]

double ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double > , P4ImplPxPyPzE , ParticleEvent::Base >::tanTh ( state_t  s) const
inlinevirtualinherited

Definition at line 207 of file ParticleSigStateImpl.h.

623 {
624  return momentumBase(s).tanTh();
625 }

◆ updateKine() [1/3]

void Jet::updateKine ( )
privatevirtual

Resummation of kinematics from constituents.

Recalculate overall jet kinematics from all constituents.

This method removes all corrections or calibrations applied and sets the overall Jet kinematics to the (weighted) sum of constituent four-momentums.

Definition at line 735 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

736 {
737  // reset four momentum
738  this->setPx(0.);
739  this->setPy(0.);
740  this->setPz(0.);
741  this->setE(0.);
742 
743  // loop children
744 
747  for (;fC!=lC;++fC)
748  {
749  if (! fC.get_real_constit()) continue; // constit may be invalid if broken EL
750  this->updateKine(fC.hlv(),this->getWeight(fC.get_real_constit()));
751  }
752 }

◆ updateKine() [2/3]

void Jet::updateKine ( const constituent_t pConst,
double  wght = 1.0 
)
privatevirtual

Updates Jet kinematics.

Definition at line 762 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

763 {
764 
765  // Attempt to cast into an ISignalState object
766  const ISignalState* pSigState = dynamic_cast<const ISignalState*>(pConst);
767 
768  if(bool(pSigState) && m_constituentSigState != P4SignalState::UNKNOWN)
769  {
770  // Copy kinematics for the chosen Signal State
771  this->updateKine(pSigState->hlv(m_constituentSigState),wght);
772  } else
773  this->updateKine(pConst->hlv(),wght);
774 }

◆ updateKine() [3/3]

void Jet::updateKine ( const hlv_t pVec,
double  wght = 1.0 
)
privatevirtual

Updates Jet kinematics.

Update the Jet four-momentum by adding another four-vector with a weight.

Definition at line 757 of file Reconstruction/Jet/JetEvent/src/Jet.cxx.

758 {
759  this->set4Mom(this->hlv()+rVec*wght);
760 }

Friends And Related Function Documentation

◆ JetAssociationBase

friend class JetAssociationBase
friend

Definition at line 583 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ JetCnv_p1

friend class JetCnv_p1
friend

Definition at line 717 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ JetCnv_p2

friend class JetCnv_p2
friend

Definition at line 718 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ JetCnv_p3

friend class JetCnv_p3
friend

Definition at line 719 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ JetCnv_p4

friend class JetCnv_p4
friend

Definition at line 720 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ JetCollection

friend class JetCollection
friend

Definition at line 53 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ JetCollectionCnv_p6

friend class JetCollectionCnv_p6
friend

Definition at line 721 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ JetCollSigStateHelper

friend class JetCollSigStateHelper
friend

Definition at line 581 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ JetConverterBase

template<class PERS >
friend class JetConverterBase
friend

Definition at line 50 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ JetSignalStateHelper

friend class JetSignalStateHelper
friend

Set signal state through a friend.

Definition at line 580 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ JetTagInfoBase

friend class JetTagInfoBase
friend

Definition at line 584 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ ParticleJetCnv_p1

friend class ParticleJetCnv_p1
friend

Definition at line 716 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

Member Data Documentation

◆ m_assocStore

assostore_t* Jet::m_assocStore
protected

key descriptor for all jet stores

Association store

Definition at line 738 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ m_collection

const JetCollection* Jet::m_collection
protected

Shape store link.

Definition at line 676 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ m_constituentSigState

signalstate_t Jet::m_constituentSigState
protected

Constituent Signal State.

Definition at line 744 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ m_constituentsN

numconstit_t Jet::m_constituentsN
protected

Definition at line 310 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ m_currentState

Current Signal State.

Definition at line 357 of file ParticleSigStateImpl.h.

◆ m_ignoreWeight

const double Jet::m_ignoreWeight = 1.0e-06
staticprivate

Maximum difference up to which weights are considered equal.

Definition at line 620 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ m_jetAuthor

size_t Jet::m_jetAuthor
protected

Jet author store.

Definition at line 725 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ m_jetId

size_t Jet::m_jetId
mutableprotected

the identifier of this jet within its collection.

(can be 0 if jet is orphan)

Definition at line 672 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ m_mom

The 4-momentum part Eventually, perhaps we can use a set since not all intermediate Signal States will be used by every object.

Definition at line 348 of file ParticleSigStateImpl.h.

◆ m_nav

The navigable part.

Definition at line 342 of file ParticleSigStateImpl.h.

◆ m_nStates

Number of Signal States.

Definition at line 354 of file ParticleSigStateImpl.h.

◆ m_num_combinedLikelihood

size_t Jet::m_num_combinedLikelihood
private

Definition at line 833 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ m_part

The particle-id part.

Definition at line 351 of file ParticleSigStateImpl.h.

◆ m_pseudoJet

const fastjet::PseudoJet* Jet::m_pseudoJet
protected

Pointer to the fastjet object this jet is build from.

WARNING : this pointer is meant to be used in reco flow only. It is transient only, provided only to ease calculation of some jet quantities, and will be invalid for jets read from files.

Definition at line 846 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ m_RoIword

unsigned int Jet::m_RoIword
private

Definition at line 540 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ m_tagInfoStore

tagstore_t* Jet::m_tagInfoStore
protected

Tag info store.

Definition at line 741 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ s_defaultJetAuthor

const size_t Jet::s_defaultJetAuthor = 0
staticprotected

Definition at line 723 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ s_defaultJetId

const size_t Jet::s_defaultJetId = 0
staticprotected

Definition at line 670 of file Reconstruction/Jet/JetEvent/JetEvent/Jet.h.

◆ UNDEFINEDBARCODE

const AthenaBarCode_t IAthenaBarCode::UNDEFINEDBARCODE = (AthenaBarCode_t)(-1)
staticinherited

Definition at line 52 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.

◆ UNDEFINEDVERSION

const AthenaBarCode_t IAthenaBarCode::UNDEFINEDVERSION = UNDEFINEDBARCODE
staticinherited

Definition at line 53 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.


The documentation for this class was generated from the following files:
Jet::setE
virtual void setE(double e)
Kinematics are now handled by the base class, except for the following.
Jet::getCalPy
double getCalPy() const
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:940
base
std::string base
Definition: hcg.cxx:78
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::m_mom
std::vector< P4ImplPxPyPzE > m_mom
The 4-momentum part Eventually, perhaps we can use a set since not all intermediate Signal States wil...
Definition: ParticleSigStateImpl.h:348
store
StoreGateSvc * store
Definition: fbtTestBasics.cxx:69
Jet::base_t
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE, ParticleEvent::Base > base_t
Internally used base type mixes particle/navigable/four-momentum interfaces with correct implementati...
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:72
Jet::end
const_iterator end() const
End iterator for constituent store.
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::py
virtual double py() const
y component of momentum
Definition: ParticleSigStateImpl.h:679
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::momentumBase
const momentum_type & momentumBase() const
Definition: ParticleSigStateImpl.h:458
Jet::m_num_combinedLikelihood
size_t m_num_combinedLikelihood
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:833
I4Momentum
Definition: I4Momentum.h:31
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::hlv
virtual CLHEP::HepLorentzVector hlv() const
CLHEP HepLorentzVector.
Definition: ParticleSigStateImpl.h:832
ISignalState::hlv
virtual CLHEP::HepLorentzVector hlv(P4SignalState::State s) const =0
obtain the CLHEP HepLorentzVector
Jet::setPz
virtual void setPz(double pz)
Jet::getCalPz
double getCalPz() const
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:941
Jet::m_ignoreWeight
static const double m_ignoreWeight
Maximum difference up to which weights are considered equal.
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:620
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::m_nStates
int m_nStates
Number of Signal States.
Definition: ParticleSigStateImpl.h:354
IAthenaBarCode::UNDEFINEDBARCODE
static const AthenaBarCode_t UNDEFINEDBARCODE
Definition: AthenaKernel/AthenaKernel/IAthenaBarCode.h:52
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
get_generator_info.result
result
Definition: get_generator_info.py:21
test_pyathena.px
px
Definition: test_pyathena.py:18
JetConstituentIterator::first
static JetConstituentIterator first(const Jet *jet)
get a default iterator
Definition: JetConstituentIterator.h:81
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::eta
virtual double eta() const
pseudo rapidity
Definition: ParticleSigStateImpl.h:735
ParticleEvent::Base::set_dataType
void set_dataType(ParticleDataType::DataType x)
Definition: Base.h:247
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::e
virtual double e() const
energy
Definition: ParticleSigStateImpl.h:751
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::hasSignalState
virtual bool hasSignalState(state_t s) const
check if signal state exists for current implementation
Definition: ParticleSigStateImpl.h:1171
keylayer_zslicemap.pb
pb
Definition: keylayer_zslicemap.py:188
Jet::getShape
shape_t getShape(const mkey_t &shapeName, bool addIfMissing=false) const
Retrieve shape variable.
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:836
JetCollection::keyDesc
JetKeyDescriptorInstance * keyDesc() const
Definition: JetCollection.cxx:43
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
Jet
Basic data class defines behavior for all Jet objects The Jet class is the principal data class for...
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:47
Jet::index_t
navigable_t::external_index_type index_t
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:109
Jet::CopyNone
@ CopyNone
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:145
Navigable::removeAll
bool removeAll()
Definition: Navigable.h:237
Jet::removeConstituent
bool removeConstituent(const constituent_t *pConst)
Remove a constituent.
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:490
index
Definition: index.py:1
Jet::setPx
virtual void setPx(double Px)
ISignalState
Definition: ISignalState.h:42
Jet::setup
void setup(const hlv_t &v)
hist_file_dump.d
d
Definition: hist_file_dump.py:137
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::px
virtual double px() const
We re-define here extra class routines that will allow direct access to signal state kinematics witho...
Definition: ParticleSigStateImpl.h:671
JetKeyConstants::ShapeCat
static const key_t ShapeCat
Index category for jet shapes.
Definition: JetKeyDescriptor.h:88
jet_component_identity
bool jet_component_identity(double p1, double p2, double epsilon=0.1)
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:73
Jet::shape_map_t
JetMomentMap shape_map_t
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:121
I4Momentum::P4IPTCOTTHPHIM
@ P4IPTCOTTHPHIM
Definition: I4Momentum.h:33
P4EEtaPhiM
Definition: P4EEtaPhiM.h:25
P4SignalState::JETEMSCALE
@ JETEMSCALE
Definition: ISignalState.h:33
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::state_t
P4SignalState::State state_t
Definition: ParticleSigStateImpl.h:67
ParticleEvent::Base::hasCharge
bool hasCharge() const
method to check if charge information is available
Definition: Base.h:218
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::particleBase
const particle_type & particleBase() const
access to underlying base type (IParticle-like)
Definition: ParticleSigStateImpl.h:469
Jet::scale_momentum
void scale_momentum(double scale_factor)
scale the jet 4mom by scale_factor
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:574
Jet::tagInfo
const taginfo_t * tagInfo(const mkey_t &key) const
Retrieve tag info object.
JetKeyConstants::TagCat
static const key_t TagCat
Index category for jet tag info.
Definition: JetKeyDescriptor.h:92
Jet::index_type
navigable_t::external_index_type index_type
Constituent index type (obsolete)
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:101
Jet::getCalE
double getCalE() const
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:938
P4ImplPxPyPzE::py
double py() const
get py data member
Definition: P4ImplPxPyPzE.h:204
P4BasePxPyPzE::tanTh
double tanTh() const
Definition: P4BasePxPyPzE.h:207
Jet::clone
virtual Jet * clone() const
clone method : do not clone stores and constituent
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:776
Jet::CopyMoments
@ CopyMoments
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:146
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
P4BasePxPyPzE::hlv
CLHEP::HepLorentzVector hlv() const
Definition: P4BasePxPyPzE.h:219
Jet::remove
bool remove()
isValid
bool isValid(const T &p)
Definition: AtlasPID.h:214
ParticleEvent::Base::charge
ChargeType charge() const
returns charge as a typedef ChargeType currently Charge Type is a double for jets this may be changed...
Definition: Base.h:224
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
P4BasePxPyPzE::p
double p() const
Definition: P4BasePxPyPzE.h:109
AthenaBarCodeImpl::setAthenaBarCode
void setAthenaBarCode(AthenaBarCode_t id)
Definition: AthenaBarCodeImpl.cxx:211
Jet::getCalPx
double getCalPx() const
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:939
covarianceTool.prob
prob
Definition: covarianceTool.py:678
x
#define x
P4SignalState::UNKNOWN
@ UNKNOWN
Definition: ISignalState.h:29
Jet::getRawPz
double getRawPz() const
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:931
Jet::assostore_t
std::vector< const assoc_t * > assostore_t
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:126
Jet::setShape
void setShape(const mkey_t &shapeName, shape_t shape, bool addIfMissing=true) const
Set shape variable.
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:797
P4BasePxPyPzE::phi
double phi() const
Definition: P4BasePxPyPzE.h:152
JetTagInfoBase
Definition: JetTagInfoBase.h:56
P4BasePxPyPzE::rapidity
double rapidity() const
Definition: P4BasePxPyPzE.h:185
ParticleEvent::Base::set_charge
void set_charge(ChargeType x)
Definition: Base.h:254
OrphanJetMomentMap::instance
static OrphanJetMomentMap instance
Definition: JetMomentMap.h:59
P4BasePxPyPzE::sinTh
double sinTh() const
Definition: P4BasePxPyPzE.h:201
P4BasePxPyPzE::sinPhi
double sinPhi() const
Definition: P4BasePxPyPzE.h:145
Jet::checkKey
bool checkKey(const mcat_t &cat, const mkey_t &key, size_t &aInd, bool createIfMissing) const
Jet::getMomentMap
const shape_map_t * getMomentMap() const
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:1173
JetKeyDescriptorInstance::instance
static JetKeyDescriptorInstance * instance()
Definition: JetKeyDescriptor.h:123
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:200
Jet::const_iterator
navigable_t::object_iter const_iterator
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:108
P4ImplPxPyPzE::errors
virtual const I4MomentumError * errors() const
Definition: P4ImplPxPyPzE.h:219
Jet::tagstore_t
std::vector< const taginfo_t * > tagstore_t
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:130
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::p
virtual double p() const
mass momentum magnitude
Definition: ParticleSigStateImpl.h:711
P4BasePxPyPzE::et
double et() const
Definition: P4BasePxPyPzE.h:162
P4ImplPxPyPzE::px
double px() const
{@ a la I4Momentum -like interface
Definition: P4ImplPxPyPzE.h:199
Jet::removeInfo
void removeInfo(const mkey_t &key)
(depreciated) Remove tag info object
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:878
Jet::id
size_t id() const
returns this jet unique identifier in its collection
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:1194
P4BasePxPyPzE::iPt
double iPt() const
Definition: P4BasePxPyPzE.h:177
Jet::CopyTagInfos
@ CopyTagInfos
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:147
JetKeyConstants::AssoCat
static const key_t AssoCat
Index category for jet associations.
Definition: JetKeyDescriptor.h:90
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
Jet::Jet
Jet()
Default constructor.
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:98
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::m_nav
Navigable< INavigable4MomentumCollection, double > m_nav
The navigable part.
Definition: ParticleSigStateImpl.h:342
Jet::setupKine
virtual void setupKine(const hlv_t &v)
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:889
Jet::signalstate_t
P4SignalState::State signalstate_t
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:135
ParticleEvent::Base::pdgId
int pdgId() const
Return enum indicating particle id the enum file is available in Event/EventKernel/PdtPdg....
Definition: Base.h:236
AthenaBarCodeImpl::newVersion
void newVersion()
Definition: AthenaBarCodeImpl.cxx:138
P4SignalState::JETCONSTITUENTSCALE
@ JETCONSTITUENTSCALE
Definition: ISignalState.h:35
lumiFormat.i
int i
Definition: lumiFormat.py:92
Jet::shape_t
JetMoment::float_t shape_t
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:120
beamspotman.n
n
Definition: beamspotman.py:731
OrphanJetCounter::getNewId
size_t getNewId()
Definition: JetMapBase.h:173
Jet::size
size_t size() const
Size of constituent store.
P4BasePxPyPzE::p2
double p2() const
Definition: P4BasePxPyPzE.h:114
Athena_test::isEqual
bool isEqual(double x1, double x2, double thresh=1e-6)
Definition: FLOATassert.h:26
Jet::getIndex
bool getIndex(const constituent_t *pConst, index_t &ind) const
Retrieve index of object in container.
Amg::pz
@ pz
Definition: GeoPrimitives.h:40
AthenaBarCodeImpl::hasSameAthenaBarCodeExceptVersion
bool hasSameAthenaBarCodeExceptVersion(const IAthenaBarCode &obj) const
Definition: AthenaBarCodeImpl.cxx:120
JetMomentMap::record_t
base_t::record_t record_t
Definition: JetMomentMap.h:32
Jet::getRawPy
double getRawPy() const
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:930
Jet::jetAuthor
std::string jetAuthor() const
Author and calibration history are encoded in a simple way inside the jet object.
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:1108
Jet::m_tagInfoStore
tagstore_t * m_tagInfoStore
Tag info store.
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:741
P4SignalState::UNCALIBRATED
@ UNCALIBRATED
Definition: ISignalState.h:30
Jet::getContainer
const collection_t * getContainer(const constituent_t *pConst) const
Retrieve pointer to constituent object container.
JetKeyDescriptorInstance::getKey
const key_t & getKey(const category_t &cat, size_t index) const
Definition: JetKeyDescriptor.cxx:161
INavigable
Definition: INavigable.h:18
Jet::insertElement
void insertElement(const collection_t *pColl, const constituent_t *pConst, double wght=1.0, size_t sizeHint=0)
insert element without checking
Jet::m_collection
const JetCollection * m_collection
Shape store link.
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:676
Jet::setConstituentSignalState
void setConstituentSignalState(signalstate_t s)
Set the current Signal state of the jet constituents.
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::navigableBase
const navigable_type & navigableBase() const
access to underlying base type (INavigable-like)
Definition: ParticleSigStateImpl.h:439
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::phi
virtual double phi() const
phi in [-pi,pi[
Definition: ParticleSigStateImpl.h:743
P4BasePxPyPzE::pt
double pt() const
Definition: P4BasePxPyPzE.h:169
P4ImplPxPyPzE::kind
I4Momentum::Kind kind() const
Definition: P4ImplPxPyPzE.h:92
IAthenaBarCode
Definition: AthenaKernel/AthenaKernel/IAthenaBarCode.h:48
Jet::combinedLikelihood
std::vector< double > combinedLikelihood() const
(depreciated) Likelihood store access
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:966
MVAUtils::index_t
int32_t index_t
The index type of the node in the vector.
Definition: MVAUtilsDefs.h:12
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::m_currentState
state_t m_currentState
Current Signal State.
Definition: ParticleSigStateImpl.h:357
P4ImplPxPyPzE::e
double e() const
get energy data member
Definition: P4ImplPxPyPzE.h:214
I4Momentum::P4PTETAPHIM
@ P4PTETAPHIM
Definition: I4Momentum.h:33
JetKeyConstants::InfoCat
static const key_t InfoCat
Index category for general jet info.
Definition: JetKeyDescriptor.h:94
JetKeyDescriptorInstance::getKeys
const std::vector< key_t > & getKeys(const category_t &cat) const
Definition: JetKeyDescriptor.cxx:178
Jet::addConstituent
bool addConstituent(const collection_t *pColl, const constituent_t *pConst, double wght=1.0)
Add a constituent with optional kinematic weight.
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:413
Amg::py
@ py
Definition: GeoPrimitives.h:39
Jet::m_jetAuthor
size_t m_jetAuthor
Jet author store.
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:725
Jet::begin
const_iterator begin() const
Begin iterator for constituent store.
P4BasePxPyPzE::cosPhi
double cosPhi() const
Definition: P4BasePxPyPzE.h:138
I4Momentum::UNKNOWN
@ UNKNOWN
Definition: I4Momentum.h:33
ParticleEvent::Base::getAthenaBarCodeImpl
const AthenaBarCodeImpl & getAthenaBarCodeImpl() const
Definition: Base.h:96
Jet::CopyConstituents
@ CopyConstituents
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:149
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::origin
virtual const Trk::RecVertex * origin() const
Return a RecVertex corresponding to particle Origin
Definition: ParticleSigStateImpl.h:875
Jet::collection_t
INavigable4MomentumCollection collection_t
Navigable object type.
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:104
Jet::putElement
void putElement(const collection_t *pColl, const constituent_t *pConst, double wght=1.0, size_t sizeHint=0)
Add element with checking.
Jet::hlv_t
CLHEP::HepLorentzVector hlv_t
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:133
test_pythinning.out
out
Definition: test_pythinning.py:94
JetConstituentIterator::get_real_constit
const Jet::constituent_t * get_real_constit()
access to the real constituent pointer
Definition: JetConstituentIterator.h:70
AthenaBarCodeImpl::getAthenaBarCode
AthenaBarCode_t getAthenaBarCode() const
Definition: AthenaBarCodeImpl.cxx:203
Jet::constituent_t
INavigable4Momentum constituent_t
Constituent iterator type.
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:106
ParticleEvent::Base::hasPdgId
bool hasPdgId() const
method to check if particle id information is available
Definition: Base.h:230
Jet::m_constituentSigState
signalstate_t m_constituentSigState
Constituent Signal State.
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:744
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
CheckAppliedSFs.pu
pu
Definition: CheckAppliedSFs.py:311
JetCollection::getMomentMap
const JetMomentMap * getMomentMap() const
Definition: JetCollection.cxx:53
python.PyAthena.v
v
Definition: PyAthena.py:157
Jet::keyDesc
JetKeyDescriptorInstance * keyDesc() const
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:788
P4SignalState::JETFINAL
@ JETFINAL
Definition: ISignalState.h:34
Jet::m_assocStore
assostore_t * m_assocStore
key descriptor for all jet stores
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:738
Jet::constituentSignalState
signalstate_t constituentSignalState() const
Get the current Signal state of the jet constituents.
Trk::vertex
@ vertex
Definition: MeasurementType.h:21
DeMoScan.index
string index
Definition: DeMoScan.py:362
Jet::getRawPx
double getRawPx() const
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:929
readCCLHist.int
int
Definition: readCCLHist.py:84
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
a
TList * a
Definition: liststreamerinfos.cxx:10
P4BasePxPyPzE::cotTh
double cotTh() const
Definition: P4BasePxPyPzE.h:213
Jet::getWeight
double getWeight(const constituent_t *pConst) const
Retrieve kinematic weight of constituent.
Jet::m_RoIword
unsigned int m_RoIword
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:540
CondAlgsOpts.found
int found
Definition: CondAlgsOpts.py:101
JetConstituentIterator
A safe iterator on jet constituents.
Definition: JetConstituentIterator.h:31
P4PxPyPzEBase::hlv
virtual CLHEP::HepLorentzVector hlv() const
CLHEP HepLorentzVector.
Definition: P4PxPyPzEBase.cxx:147
CSV_InDetExporter.old
old
Definition: CSV_InDetExporter.py:141
xAOD::TauJetParameters::Likelihood
@ Likelihood
needed by TauJet_v1/2
Definition: TauDefs.h:52
AthenaBarCodeImpl::hasSameAthenaBarCode
bool hasSameAthenaBarCode(const IAthenaBarCode &obj) const
Definition: AthenaBarCodeImpl.cxx:110
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::setSignalState
virtual bool setSignalState(state_t s)
set the current signal state
Definition: ParticleSigStateImpl.h:1157
P4BasePxPyPzE::m2
double m2() const
Definition: P4BasePxPyPzE.h:98
P4BasePxPyPzE::m
double m() const
Definition: P4BasePxPyPzE.h:92
INavigable4Momentum
Definition: INavigable4Momentum.h:21
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::pt
virtual double pt() const
transverse momentum
Definition: ParticleSigStateImpl.h:767
CaloCondBlobAlgs_fillNoiseFromASCII.author
string author
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:26
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Jet::m_jetId
size_t m_jetId
the identifier of this jet within its collection.
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:672
JetMapBase::getRecord
virtual const record_t * getRecord(size_t jetIndex) const
get the full record for a given jet
P4ImplPxPyPzE::set4Mom
void set4Mom(const I4Momentum &theI4Mom)
set all 4-mom from another I4Momentum reference
Definition: P4ImplPxPyPzE.h:245
Jet::s_defaultJetId
static const size_t s_defaultJetId
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:670
Jet::reweight
bool reweight(const constituent_t *pConst, double wght)
Change kinematic weight of constituent.
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:551
JET_CONSTRUCTOR_BASE
#define JET_CONSTRUCTOR_BASE
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:82
Jet::updateKine
virtual void updateKine()
Resummation of kinematics from constituents.
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:735
ParticleEvent::Base::dataType
ParticleDataType::DataType dataType() const
Return enum indicating real data, fast, or full simulation Return Type has a DataType enum with the f...
Definition: Base.h:204
setup
bool setup(asg::AnaToolHandle< Interface > &tool, const std::string &type)
mostly useful for athena, which will otherwise re-use the previous tool
Definition: fbtTestBasics.cxx:193
Jet::getRawE
double getRawE() const
Definition: Reconstruction/Jet/JetEvent/src/Jet.cxx:928
ParticleEvent::Base::dump
std::ostream & dump(std::ostream &out) const
Print IParticle content.
Definition: Base.cxx:44
Jet::setPy
virtual void setPy(double py)
JetConstituentIterator::last
static JetConstituentIterator last(const Jet *jet)
get the end iterator
Definition: JetConstituentIterator.h:96
P4ImplPxPyPzE::pz
double pz() const
get pz data member
Definition: P4ImplPxPyPzE.h:209
ParticleEvent::Base::set_origin
void set_origin(const VxContainer *theContainer, int index)
Definition: Base.h:284
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
JetKeyDescriptorInstance::getIndex
size_t getIndex(const category_t &cat, const key_t &key, bool createIfMissing=true)
Definition: JetKeyDescriptor.cxx:47
Jet::contains
bool contains(const constituent_t *pConst) const
Check on containment.
pool::getKey
std::string getKey(const std::string &key, const std::string &encoded)
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24
P4PtEtaPhiM
Definition: P4PtEtaPhiM.h:25
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
IAthenaBarCode::UNDEFINEDVERSION
static const AthenaBarCode_t UNDEFINEDVERSION
Definition: AthenaKernel/AthenaKernel/IAthenaBarCode.h:53
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::pz
virtual double pz() const
z component of momentum
Definition: ParticleSigStateImpl.h:687
P4BasePxPyPzE::cosTh
double cosTh() const
Definition: P4BasePxPyPzE.h:195
Jet::m_pseudoJet
const fastjet::PseudoJet * m_pseudoJet
Pointer to the fastjet object this jet is build from.
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:846
P4BasePxPyPzE::dump
std::ostream & dump(std::ostream &out) const
Print I4Momentum content.
Definition: P4BasePxPyPzE.h:224
ParticleEvent::Base::origin
const Trk::RecVertex * origin() const
Return a RecVertex corresponding to particle Origin
Definition: Base.h:210
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::m_part
ParticleEvent::Base m_part
The particle-id part.
Definition: ParticleSigStateImpl.h:351
Jet::constituent_type
INavigable4Momentum constituent_type
Navigable object type (obsolete)
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:91
python.compressB64.c
def c
Definition: compressB64.py:93
Jet::CopyAll
@ CopyAll
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:150
I4Momentum::P4EETAPHIM
@ P4EETAPHIM
Definition: I4Momentum.h:33
Jet::m_constituentsN
numconstit_t m_constituentsN
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:310
AthenaBarCodeImpl::setVersion
void setVersion(AthenaBarCodeVersion_t newversion)
Definition: AthenaBarCodeImpl.cxx:157
P4BasePxPyPzE::eta
double eta() const
Definition: P4BasePxPyPzE.h:123
Jet::checkKeyStore
bool checkKeyStore(const mcat_t &cat, const mkey_t &key, STORE *&store, size_t &aInd, bool createIfMissing) const
Check key validity with automatic store generation.
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:754
checkFileSG.ind
list ind
Definition: checkFileSG.py:118
ParticleEvent::Base::set_pdgId
void set_pdgId(int x)
Definition: Base.h:262
Jet::CopyAssociations
@ CopyAssociations
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:148
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
ParticleEvent::Base::originLink
const ElementLink< VxContainer > & originLink() const
Return the ElementLink to particle Origin
Definition: Base.cxx:38
AthenaBarCodeImpl::getVersion
AthenaBarCodeVersion_t getVersion() const
Definition: AthenaBarCodeImpl.cxx:131
Jet::CopyDataMembers
CopyDataMembers
@ brief fine control over what's copied in the various stores and constituents
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:145
I4Momentum::P4PXPYPZE
@ P4PXPYPZE
Definition: I4Momentum.h:33
ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >::set4Mom
virtual void set4Mom(const I4Momentum &p4)
Definition: ParticleSigStateImpl.h:1059