CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes | Friends

TrackInformation Class Reference

#include <TrackInformation.h>

List of all members.

Public Member Functions

bool caloIDChecked () const
double caloSurfaceParticleP () const
int caloSurfaceParticlePID () const
double genParticleP () const
int genParticlePID () const
int getIDCaloVolume () const
int getIDLastVolume () const
int getIDonCaloSurface () const
bool hasHits () const
void hasHits (bool v)
bool isAncestor () const
bool isGeneratedSecondary () const
void isGeneratedSecondary (bool v)
bool isInHistory () const
bool isPrimary () const
void isPrimary (bool v)
void operator delete (void *TrackInformation)
void * operator new (size_t)
virtual void Print () const
void putInHistory ()
void setAncestor ()
void setCaloIDChecked (bool f)
void setCaloSurfaceParticleP (double p)
void setCaloSurfaceParticlePID (int id)
void setGenParticleP (double p)
void setGenParticlePID (int id)
void setIDonCaloSurface (int id, int ical, int last, int pdgID, double p)
bool storeTrack () const
void storeTrack (bool v)
 can only be set to true, cannot be reset to false!
virtual ~TrackInformation ()

Private Member Functions

 TrackInformation ()

Private Attributes

bool caloIDChecked_
double caloSurfaceParticleP_
int caloSurfaceParticlePID_
bool flagAncestor_
double genParticleP_
int genParticlePID_
bool hasHits_
int idCaloVolume_
int idLastVolume_
int idOnCaloSurface_
bool isGeneratedSecondary_
bool isInHistory_
bool isPrimary_
bool storeTrack_

Friends

class NewTrackAction

Detailed Description

Definition at line 8 of file TrackInformation.h.


Constructor & Destructor Documentation

virtual TrackInformation::~TrackInformation ( ) [inline, virtual]

Definition at line 11 of file TrackInformation.h.

{}
TrackInformation::TrackInformation ( ) [inline, private]

Definition at line 71 of file TrackInformation.h.


Member Function Documentation

bool TrackInformation::caloIDChecked ( ) const [inline]

Definition at line 42 of file TrackInformation.h.

References caloIDChecked_.

Referenced by Print(), and CaloTrkProcessing::update().

{ return caloIDChecked_; }
double TrackInformation::caloSurfaceParticleP ( ) const [inline]

Definition at line 46 of file TrackInformation.h.

References caloSurfaceParticleP_.

Referenced by NewTrackAction::addUserInfoToSecondary().

int TrackInformation::caloSurfaceParticlePID ( ) const [inline]

Definition at line 44 of file TrackInformation.h.

References caloSurfaceParticlePID_.

Referenced by NewTrackAction::addUserInfoToSecondary().

double TrackInformation::genParticleP ( ) const [inline]

Definition at line 52 of file TrackInformation.h.

References genParticleP_.

Referenced by NewTrackAction::addUserInfoToSecondary(), and CaloSD::getResponseWt().

{ return genParticleP_; }
int TrackInformation::genParticlePID ( ) const [inline]

Definition at line 50 of file TrackInformation.h.

References genParticlePID_.

Referenced by NewTrackAction::addUserInfoToSecondary(), and CaloSD::getResponseWt().

{ return genParticlePID_; }
int TrackInformation::getIDCaloVolume ( ) const [inline]

Definition at line 40 of file TrackInformation.h.

References idCaloVolume_.

Referenced by NewTrackAction::addUserInfoToSecondary(), and CaloTrkProcessing::update().

{ return idCaloVolume_; }
int TrackInformation::getIDLastVolume ( ) const [inline]

Definition at line 41 of file TrackInformation.h.

References idLastVolume_.

Referenced by NewTrackAction::addUserInfoToSecondary(), and CaloTrkProcessing::update().

{ return idLastVolume_; }
int TrackInformation::getIDonCaloSurface ( ) const [inline]
void TrackInformation::hasHits ( bool  v) [inline]

Definition at line 24 of file TrackInformation.h.

References hasHits_, and v.

{ hasHits_ = v; }
bool TrackInformation::hasHits ( ) const [inline]

Definition at line 23 of file TrackInformation.h.

References hasHits_.

{ return hasHits_; }
bool TrackInformation::isAncestor ( ) const [inline]

Definition at line 32 of file TrackInformation.h.

References flagAncestor_.

{ return flagAncestor_; }
bool TrackInformation::isGeneratedSecondary ( ) const [inline]

Definition at line 26 of file TrackInformation.h.

References isGeneratedSecondary_.

void TrackInformation::isGeneratedSecondary ( bool  v) [inline]

Definition at line 27 of file TrackInformation.h.

References isGeneratedSecondary_, and v.

bool TrackInformation::isInHistory ( ) const [inline]

Definition at line 29 of file TrackInformation.h.

References isInHistory_.

{ return isInHistory_; }
bool TrackInformation::isPrimary ( ) const [inline]
void TrackInformation::isPrimary ( bool  v) [inline]

Definition at line 21 of file TrackInformation.h.

References isPrimary_, and v.

{ isPrimary_ = v; }
void TrackInformation::operator delete ( void *  TrackInformation) [inline]

Definition at line 88 of file TrackInformation.h.

References TrackInformationAllocator.

{  TrackInformationAllocator.FreeSingle((TrackInformation*) trkInfo); }
void * TrackInformation::operator new ( size_t  ) [inline]

Definition at line 81 of file TrackInformation.h.

References TrackInformationAllocator.

{
    void * trkInfo;
    trkInfo = (void *) TrackInformationAllocator.MallocSingle();
    return trkInfo;
}
void TrackInformation::Print ( void  ) const [virtual]

Definition at line 8 of file TrackInformation.cc.

References caloIDChecked(), getIDonCaloSurface(), hasHits_, idCaloVolume_, idLastVolume_, isGeneratedSecondary_, isInHistory_, isPrimary_, LogDebug, and storeTrack_.

                                   {
  LogDebug("TrackInformation") << " TrackInformation : storeTrack = " << storeTrack_ << "\n"
                               << "                    hasHits = "    << hasHits_ << "\n"
                               << "                    isPrimary = "  << isPrimary_ << "\n"
                               << "                    isGeneratedSecondary = "  << isGeneratedSecondary_ << "\n"
                               << "                    isInHistory = "  << isInHistory_ << "\n"
                               << "                    idOnCaloSurface = "  << getIDonCaloSurface() << "\n"
                               << "                    caloIDChecked = "  << caloIDChecked() << "\n"
                               << "                    idCaloVolume = " << idCaloVolume_ << "\n"
                               << "                    idLastVolume = " << idLastVolume_;
}
void TrackInformation::putInHistory ( ) [inline]
void TrackInformation::setAncestor ( ) [inline]

Definition at line 33 of file TrackInformation.h.

References flagAncestor_.

{ flagAncestor_ = true; }
void TrackInformation::setCaloIDChecked ( bool  f) [inline]

Definition at line 43 of file TrackInformation.h.

References caloIDChecked_, and f.

Referenced by CaloTrkProcessing::update().

void TrackInformation::setCaloSurfaceParticleP ( double  p) [inline]

Definition at line 47 of file TrackInformation.h.

References caloSurfaceParticleP_, and L1TEmulatorMonitor_cff::p.

void TrackInformation::setCaloSurfaceParticlePID ( int  id) [inline]

Definition at line 45 of file TrackInformation.h.

References caloSurfaceParticlePID_.

void TrackInformation::setGenParticleP ( double  p) [inline]
void TrackInformation::setGenParticlePID ( int  id) [inline]
void TrackInformation::setIDonCaloSurface ( int  id,
int  ical,
int  last,
int  pdgID,
double  p 
) [inline]
void TrackInformation::storeTrack ( bool  v) [inline]

can only be set to true, cannot be reset to false!

Definition at line 17 of file TrackInformation.h.

References putInHistory(), storeTrack_, and v.

  { if (v) storeTrack_ = v; if (v == true) putInHistory(); }
bool TrackInformation::storeTrack ( ) const [inline]

Friends And Related Function Documentation

friend class NewTrackAction [friend]

Definition at line 76 of file TrackInformation.h.


Member Data Documentation

Definition at line 66 of file TrackInformation.h.

Referenced by caloIDChecked(), and setCaloIDChecked().

Definition at line 62 of file TrackInformation.h.

Referenced by isAncestor(), and setAncestor().

Definition at line 68 of file TrackInformation.h.

Referenced by genParticleP(), and setGenParticleP().

Definition at line 67 of file TrackInformation.h.

Referenced by genParticlePID(), and setGenParticlePID().

Definition at line 59 of file TrackInformation.h.

Referenced by hasHits(), and Print().

Definition at line 64 of file TrackInformation.h.

Referenced by getIDCaloVolume(), Print(), and setIDonCaloSurface().

Definition at line 65 of file TrackInformation.h.

Referenced by getIDLastVolume(), Print(), and setIDonCaloSurface().

Definition at line 63 of file TrackInformation.h.

Referenced by getIDonCaloSurface(), and setIDonCaloSurface().

Definition at line 60 of file TrackInformation.h.

Referenced by isGeneratedSecondary(), and Print().

Definition at line 61 of file TrackInformation.h.

Referenced by isInHistory(), Print(), and putInHistory().

Definition at line 58 of file TrackInformation.h.

Referenced by isPrimary(), and Print().

Definition at line 57 of file TrackInformation.h.

Referenced by Print(), and storeTrack().