StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Attributes | List of all members
StMcTrack Class Reference

Monte Carlo Track class All information on a simulated track is stored in this class: kinematics, particle identificiation, hits left in the detector and start/stop vertices. More...

#include <StMcTrack.hh>

Inheritance diagram for StMcTrack:
StObject

Public Member Functions

 StMcTrack (g2t_track_st *trk)
 
 StMcTrack (particle_st *trk)
 
int operator== (const StMcTrack &) const
 
int operator!= (const StMcTrack &) const
 
void initToZero ()
 
const StLorentzVectorFfourMomentum () const
 
const StThreeVectorFmomentum () const
 
float energy () const
 
float pt () const
 
float rapidity () const
 
float pseudoRapidity () const
 
StMcVertexstartVertex ()
 
const StMcVertexstartVertex () const
 
StMcVertexstopVertex ()
 
const StMcVertexstopVertex () const
 
StMcTrackparent ()
 
const StMcTrackparent () const
 
StPtrVecMcVertex & intermediateVertices ()
 
const StPtrVecMcVertex & intermediateVertices () const
 
StPtrVecMcTpcHit & tpcHits ()
 
const StPtrVecMcTpcHit & tpcHits () const
 
StPtrVecMcSvtHit & svtHits ()
 
const StPtrVecMcSvtHit & svtHits () const
 
StPtrVecMcSsdHit & ssdHits ()
 
const StPtrVecMcSsdHit & ssdHits () const
 
StPtrVecMcFtpcHit & ftpcHits ()
 
const StPtrVecMcFtpcHit & ftpcHits () const
 
StPtrVecMcRichHit & richHits ()
 
const StPtrVecMcRichHit & richHits () const
 
StPtrVecMcCtbHit & ctbHits ()
 
const StPtrVecMcCtbHit & ctbHits () const
 
StPtrVecMcCalorimeterHit & bemcHits ()
 
const StPtrVecMcCalorimeterHit & bemcHits () const
 
StPtrVecMcCalorimeterHit & bprsHits ()
 
const StPtrVecMcCalorimeterHit & bprsHits () const
 
StPtrVecMcCalorimeterHit & bsmdeHits ()
 
const StPtrVecMcCalorimeterHit & bsmdeHits () const
 
StPtrVecMcCalorimeterHit & bsmdpHits ()
 
const StPtrVecMcCalorimeterHit & bsmdpHits () const
 
StPtrVecMcTofHit & tofHits ()
 
const StPtrVecMcTofHit & tofHits () const
 
StPtrVecMcMtdHit & mtdHits ()
 
const StPtrVecMcMtdHit & mtdHits () const
 
StPtrVecMcCalorimeterHit & eemcHits ()
 
const StPtrVecMcCalorimeterHit & eemcHits () const
 
StPtrVecMcCalorimeterHit & eprsHits ()
 
const StPtrVecMcCalorimeterHit & eprsHits () const
 
StPtrVecMcCalorimeterHit & esmduHits ()
 
const StPtrVecMcCalorimeterHit & esmduHits () const
 
StPtrVecMcCalorimeterHit & esmdvHits ()
 
const StPtrVecMcCalorimeterHit & esmdvHits () const
 
StPtrVecMcCalorimeterHit & fpdHits ()
 
const StPtrVecMcCalorimeterHit & fpdHits () const
 
StPtrVecMcCalorimeterHit & fscHits ()
 
const StPtrVecMcCalorimeterHit & fscHits () const
 
StPtrVecMcPxlHit & pxlHits ()
 
const StPtrVecMcPxlHit & pxlHits () const
 
StPtrVecMcIstHit & istHits ()
 
const StPtrVecMcIstHit & istHits () const
 
StPtrVecMcFgtHit & fgtHits ()
 
const StPtrVecMcFgtHit & fgtHits () const
 
StPtrVecMcEtrHit & etrHits ()
 
const StPtrVecMcEtrHit & etrHits () const
 
StParticleDefinitionparticleDefinition ()
 
const StParticleDefinitionparticleDefinition () const
 
const StPtrVecMcHit * Hits (StDetectorId Id) const
 
const StPtrVecMcCalorimeterHit * CalorimeterHits (StDetectorId Id) const
 
int isShower () const
 
long geantId () const
 
long pdgId () const
 
long key () const
 
long eventGenLabel () const
 
void setFourMomentum (const StLorentzVectorF &)
 
void setStartVertex (StMcVertex *)
 
void setStopVertex (StMcVertex *)
 
void setIntermediateVertices (StPtrVecMcVertex &)
 
void setTpcHits (StPtrVecMcTpcHit &)
 
void setSvtHits (StPtrVecMcSvtHit &)
 
void setSsdHits (StPtrVecMcSsdHit &)
 
void setFtpcHits (StPtrVecMcFtpcHit &)
 
void setRichHits (StPtrVecMcRichHit &)
 
void setCtbHits (StPtrVecMcCtbHit &)
 
void setBemcHits (StPtrVecMcCalorimeterHit &)
 
void setBprsHits (StPtrVecMcCalorimeterHit &)
 
void setBsmdeHits (StPtrVecMcCalorimeterHit &)
 
void setBsmdpHits (StPtrVecMcCalorimeterHit &)
 
void setTofHits (StPtrVecMcTofHit &)
 
void setMtdHits (StPtrVecMcMtdHit &)
 
void setEemcHits (StPtrVecMcCalorimeterHit &)
 
void setEprsHits (StPtrVecMcCalorimeterHit &)
 
void setEsmduHits (StPtrVecMcCalorimeterHit &)
 
void setEsmdvHits (StPtrVecMcCalorimeterHit &)
 
void setFscHits (StPtrVecMcCalorimeterHit &)
 
void setPxlHits (StPtrVecMcPxlHit &)
 
void setIstHits (StPtrVecMcIstHit &)
 
void setFgtHits (StPtrVecMcFgtHit &)
 
void setEtrHits (StPtrVecMcEtrHit &)
 
void setShower (char)
 
void setGeantId (long)
 
void setPdgId (long)
 
void setKey (long)
 
void setEventGenLabel (long)
 
void setParent (StMcTrack *)
 
void setPrimary (Bool_t val)
 
void addTpcHit (StMcTpcHit *)
 
void addSvtHit (StMcSvtHit *)
 
void addSsdHit (StMcSsdHit *)
 
void addFtpcHit (StMcFtpcHit *)
 
void addRichHit (StMcRichHit *)
 
void addCtbHit (StMcCtbHit *)
 
void addBemcHit (StMcCalorimeterHit *)
 
void addBprsHit (StMcCalorimeterHit *)
 
void addBsmdeHit (StMcCalorimeterHit *)
 
void addBsmdpHit (StMcCalorimeterHit *)
 
void addTofHit (StMcTofHit *)
 
void addMtdHit (StMcMtdHit *)
 
void addEemcHit (StMcCalorimeterHit *)
 
void addEprsHit (StMcCalorimeterHit *)
 
void addEsmduHit (StMcCalorimeterHit *)
 
void addEsmdvHit (StMcCalorimeterHit *)
 
void addFpdHit (StMcCalorimeterHit *)
 
void addFscHit (StMcCalorimeterHit *)
 
void addPxlHit (StMcPxlHit *)
 
void addIstHit (StMcIstHit *)
 
void addFgtHit (StMcFgtHit *)
 
void addEtrHit (StMcEtrHit *)
 
void removeTpcHit (StMcTpcHit *)
 
void removeSvtHit (StMcSvtHit *)
 
void removeSsdHit (StMcSsdHit *)
 
void removeFtpcHit (StMcFtpcHit *)
 
void removeRichHit (StMcRichHit *)
 
void removeCtbHit (StMcCtbHit *)
 
void removeCalorimeterHit (StPtrVecMcCalorimeterHit &, StMcCalorimeterHit *)
 
void removeBemcHit (StMcCalorimeterHit *)
 
void removeBprsHit (StMcCalorimeterHit *)
 
void removeBsmdeHit (StMcCalorimeterHit *)
 
void removeBsmdpHit (StMcCalorimeterHit *)
 
void removeTofHit (StMcTofHit *)
 
void removeMtdHit (StMcMtdHit *)
 
void removeEemcHit (StMcCalorimeterHit *)
 
void removeEprsHit (StMcCalorimeterHit *)
 
void removeEsmduHit (StMcCalorimeterHit *)
 
void removeEsmdvHit (StMcCalorimeterHit *)
 
void removePxlHit (StMcPxlHit *)
 
void removeIstHit (StMcIstHit *)
 
void removeFgtHit (StMcFgtHit *)
 
void removeEtrHit (StMcEtrHit *)
 
void Print (Option_t *option="") const
 
Bool_t IsPrimary () const
 
- Public Member Functions inherited from StObject
 StObject (const StObject &sto)
 
StObjectoperator= (const StObject &sto)
 
virtual TObject * clone () const
 
Int_t isZombie () const
 
virtual void makeZombie (int flg=1)
 
UInt_t Ztreamer (TBuffer &R__b)
 
 ClassDef (StObject, 3) static UInt_t fgTally
 

Protected Attributes

StLorentzVectorF mFourMomentum
 
StMcVertexmStartVertex
 
StMcVertexmStopVertex
 
StPtrVecMcVertex mIntermediateVertices
 
StPtrVecMcTpcHit mTpcHits
 
StPtrVecMcSvtHit mSvtHits
 
StPtrVecMcSsdHit mSsdHits
 
StPtrVecMcFtpcHit mFtpcHits
 
StPtrVecMcRichHit mRichHits
 
StPtrVecMcCtbHit mCtbHits
 
StPtrVecMcCalorimeterHit mBemcHits
 
StPtrVecMcCalorimeterHit mBprsHits
 
StPtrVecMcCalorimeterHit mBsmdeHits
 
StPtrVecMcCalorimeterHit mBsmdpHits
 
StPtrVecMcTofHit mTofHits
 
StPtrVecMcMtdHit mMtdHits
 
StPtrVecMcCalorimeterHit mEemcHits
 
StPtrVecMcCalorimeterHit mEprsHits
 
StPtrVecMcCalorimeterHit mEsmduHits
 
StPtrVecMcCalorimeterHit mEsmdvHits
 
StPtrVecMcCalorimeterHit mFpdHits
 
StPtrVecMcCalorimeterHit mFscHits
 
StPtrVecMcPxlHit mPxlHits
 
StPtrVecMcIstHit mIstHits
 
StPtrVecMcFgtHit mFgtHits
 
StPtrVecMcEtrHit mEtrHits
 
StParticleDefinitionmParticleDefinition
 
StMcTrackmParent
 
char mIsShower
 
long mGeantId
 
long mPdgId
 
long mKey
 
long mEventGenLabel
 
Bool_t mIsPrimary
 

Detailed Description

Monte Carlo Track class All information on a simulated track is stored in this class: kinematics, particle identificiation, hits left in the detector and start/stop vertices.

Monte Carlo Track class.

Author
Manuel Calderon de la Barca Sanchez
Date
July 1999
Id:
StMcTrack.cc,v 2.38 2016/05/16 23:47:09 perev Exp
Log:
StMcTrack.cc,v

Revision 2.38 2016/05/16 23:47:09 perev Coverity fix

Revision 2.37 2015/07/22 19:30:02 jwebb Fix minor compiler warnings.

Revision 2.36 2014/08/06 19:08:49 perev Warnoff

Revision 2.35 2013/03/25 23:33:04 perev Mustafa.Pxl corrs

Revision 2.34 2012/03/22 01:03:26 perev Etr add

Revision 2.31 2011/10/11 01:22:24 perev Not used anymore or ever

Revision 2.30 2011/07/20 17:35:53 perev Fsc added

Revision 2.29 2011/03/22 22:30:33 perev Bug#2111 Remove redundant zeroing

Revision 2.28 2011/02/16 00:47:59 perev mGeantId>=0 && mGeantId<=0

Revision 2.27 2011/01/26 19:46:24 perev FPD ==> STAR Soft

Revision 2.26 2007/10/16 19:49:20 fisyak rename Hft => Pxl, remove Hpd, Igt and Fst

Revision 2.25 2006/09/25 14:20:43 fisyak Add Hpd Hits

Revision 2.24 2006/09/22 19:19:34 fisyak Add generic access functions for tracking and calorimeter hits

Revision 2.23 2005/11/22 21:44:52 fisyak Add compress Print for McEvent, add Ssd collections

Revision 2.22 2005/09/28 21:30:15 fisyak Persistent StMcEvent

Revision 2.21 2005/07/07 18:20:49 calderon Added support for IGT detector.

Revision 2.20 2005/05/27 23:37:25 calderon Update for EEMC, add eprs, esmdu esdmv hits to StMcEvent.

Revision 2.19 2005/04/18 20:11:33 calderon Addition of Fgt and Fst files. Modified other files to accomodate changes.

Revision 2.18 2005/01/27 23:40:49 calderon Adding persistency to StMcEvent as a step for Virtual MonteCarlo.

Revision 2.17 2004/09/14 05:00:30 calderon Added support for Ist, Ssd and changes to Pixel, from "El Kai".

Revision 2.16 2003/12/04 05:56:47 calderon Inclusion of Endcap EMC hit collection in StMcEvent and of the Endcap hit vector in StMcTrack. fix const of StMcVertex::parent() to avoid warnings in user code

Revision 2.15 2003/08/20 18:50:21 calderon Addition of Tof classes and Pixel classes. Modified track, event, and container code to reflect this. Fix bug in StMcVertex and in clearing of some hit collections.

Revision 2.14 2003/02/19 03:16:05 calderon Introduction of Ctb Hit Class and Ctb Hit Collection class, modified StMcTrack, and StMcEvent accordingly. Clearing of hits in StMcSvtWaferHitCollection.

Revision 2.2 2003/02/18 00:00:00 gans Introduction of Ctb classes. Modified several classes accordingly.

Id:
StMcTrack.cc,v 2.38 2016/05/16 23:47:09 perev Exp
Log:
StMcTrack.cc,v

Revision 2.38 2016/05/16 23:47:09 perev Coverity fix

Revision 2.37 2015/07/22 19:30:02 jwebb Fix minor compiler warnings.

Revision 2.36 2014/08/06 19:08:49 perev Warnoff

Revision 2.35 2013/03/25 23:33:04 perev Mustafa.Pxl corrs

Revision 2.34 2012/03/22 01:03:26 perev Etr add

Revision 2.31 2011/10/11 01:22:24 perev Not used anymore or ever

Revision 2.30 2011/07/20 17:35:53 perev Fsc added

Revision 2.29 2011/03/22 22:30:33 perev Bug#2111 Remove redundant zeroing

Revision 2.28 2011/02/16 00:47:59 perev mGeantId>=0 && mGeantId<=0

Revision 2.27 2011/01/26 19:46:24 perev FPD ==> STAR Soft

Revision 2.26 2007/10/16 19:49:20 fisyak rename Hft => Pxl, remove Hpd, Igt and Fst

Revision 2.25 2006/09/25 14:20:43 fisyak Add Hpd Hits

Revision 2.24 2006/09/22 19:19:34 fisyak Add generic access functions for tracking and calorimeter hits

Revision 2.23 2005/11/22 21:44:52 fisyak Add compress Print for McEvent, add Ssd collections

Revision 2.22 2005/09/28 21:30:15 fisyak Persistent StMcEvent

Revision 2.21 2005/07/07 18:20:49 calderon Added support for IGT detector.

Revision 2.20 2005/05/27 23:37:25 calderon Update for EEMC, add eprs, esmdu esdmv hits to StMcEvent.

Revision 2.19 2005/04/18 20:11:33 calderon Addition of Fgt and Fst files. Modified other files to accomodate changes.

Revision 2.18 2005/01/27 23:40:49 calderon Adding persistency to StMcEvent as a step for Virtual MonteCarlo.

Revision 2.17 2004/09/14 05:00:30 calderon Added support for Ist, Ssd and changes to Pixel, from "El Kai".

Revision 2.16 2003/12/04 05:56:47 calderon Inclusion of Endcap EMC hit collection in StMcEvent and of the Endcap hit vector in StMcTrack. fix const of StMcVertex::parent() to avoid warnings in user code

Revision 2.15 2003/08/20 18:50:21 calderon Addition of Tof classes and Pixel classes. Modified track, event, and container code to reflect this. Fix bug in StMcVertex and in clearing of some hit collections.

Revision 2.14 2003/02/19 03:16:05 calderon Introduction of Ctb Hit Class and Ctb Hit Collection class, modified StMcTrack, and StMcEvent accordingly. Clearing of hits in StMcSvtWaferHitCollection.

Revision 2.13 2000/06/22 23:52:27 calderon Alexei fixed typo in ostream<< for Bsdme

Revision 2.12 2000/06/06 02:58:42 calderon Introduction of Calorimeter classes. Modified several classes accordingly.

Revision 2.11 2000/05/05 15:25:44 calderon Reduced dependencies and made constructors more efficient

Revision 2.10 2000/05/04 22:46:01 calderon read the pdg Id ALSO from the g2t_track table. This caused problems for embedded tracks.

Revision 2.9 2000/04/18 00:55:14 calderon added printout of local momentum to operator<<

Revision 2.8 2000/04/12 21:32:05 calderon Chech particle definition pointer before writing name

Revision 2.7 2000/04/06 23:29:10 calderon Store the parent track for all tracks.

Revision 2.6 2000/04/06 08:34:56 calderon Version using the particle table: 1) Constructor for particle_st* 2) Pointer to parent track from particle table 3) PDG encoding when track is from particle table 4) Generator label, used to index entries in the table for debugging

Revision 2.5 2000/03/06 18:05:23 calderon 1) Modified SVT Hits storage scheme from layer-ladder-wafer to barrel-ladder-wafer. 2) Added Rich Hit class and collection, and links to them in other classes.

Revision 2.4 2000/01/18 20:52:31 calderon Works with CC5

Revision 2.3 1999/12/14 07:04:50 calderon Numbering scheme as per SVT request.

Revision 2.2 1999/12/03 00:51:53 calderon Tested with new StMcEventMaker. Added messages for diagnostics.

Revision 2.1 1999/11/19 19:06:34 calderon Recommit after redoing the files.

Revision 2.0 1999/11/17 02:12:16 calderon Completely revised for new StEvent

Revision 1.3 1999/09/23 21:25:54 calderon Added Log & Id Modified includes according to Yuri

Author
Manuel Calderon de la Barca Sanchez
Date
July 1999
Id:
StMcTrack.hh,v 2.30 2018/03/15 22:00:35 smirnovd Exp
Log:
StMcTrack.hh,v

Revision 2.30 2018/03/15 22:00:35 smirnovd Fix linker error by removing declared but undefined functions

Revision 2.29 2013/03/25 23:47:08 perev Mustafa.Pxl corrs

Revision 2.28 2012/03/22 01:03:21 perev Etr add

Revision 2.27 2011/10/11 01:22:24 perev Not used anymore or ever

Revision 2.26 2011/07/20 17:36:09 perev Fsc added

Revision 2.25 2011/01/26 19:46:24 perev FPD ==> STAR Soft

Revision 2.24 2007/10/16 19:49:20 fisyak rename Hft => Pxl, remove Hpd, Igt and Fst

Revision 2.23 2006/09/25 14:20:43 fisyak Add Hpd Hits

Revision 2.21 2005/11/22 21:44:52 fisyak Add compress Print for McEvent, add Ssd collections

Revision 2.20 2005/09/28 21:30:15 fisyak Persistent StMcEvent

Revision 2.19 2005/07/07 18:20:49 calderon Added support for IGT detector.

Revision 2.18 2005/05/27 23:37:25 calderon Update for EEMC, add eprs, esmdu esdmv hits to StMcEvent.

Revision 2.17 2005/04/18 20:11:33 calderon Addition of Fgt and Fst files. Modified other files to accomodate changes.

Revision 2.16 2005/01/27 23:40:49 calderon Adding persistency to StMcEvent as a step for Virtual MonteCarlo.

Revision 2.15 2004/09/14 05:00:30 calderon Added support for Ist, Ssd and changes to Pixel, from "El Kai".

Revision 2.14 2004/01/13 21:03:34 fisyak Replace iostream by Stiostream.h (for icc)

Revision 2.13 2003/12/04 05:56:47 calderon Inclusion of Endcap EMC hit collection in StMcEvent and of the Endcap hit vector in StMcTrack. fix const of StMcVertex::parent() to avoid warnings in user code

Revision 2.12 2003/10/08 20:17:55 calderon -using <iostream>, std::cout, std::ostream. -changes in FTPC volume Id. o Causes changes in decoding of plane(). o sector() is added. o print volumeId and sector() in the operator<<.

Revision 2.11 2003/09/02 17:58:41 perev gcc 3.2 updates + WarnOff

Revision 2.10 2003/08/20 18:50:21 calderon Addition of Tof classes and Pixel classes. Modified track, event, and container code to reflect this. Fix bug in StMcVertex and in clearing of some hit collections.

Revision 2.9 2003/02/19 03:16:05 calderon Introduction of Ctb Hit Class and Ctb Hit Collection class, modified StMcTrack, and StMcEvent accordingly. Clearing of hits in StMcSvtWaferHitCollection.

Revision 2.8 2000/06/06 02:58:42 calderon Introduction of Calorimeter classes. Modified several classes accordingly.

Revision 2.7 2000/04/06 23:29:10 calderon Store the parent track for all tracks.

Revision 2.6 2000/04/06 08:34:56 calderon Version using the particle table: 1) Constructor for particle_st* 2) Pointer to parent track from particle table 3) PDG encoding when track is from particle table 4) Generator label, used to index entries in the table for debugging

Revision 2.5 2000/04/04 22:25:24 calderon add inline function to return primary key from g2t table

Revision 2.4 2000/03/06 18:05:23 calderon 1) Modified SVT Hits storage scheme from layer-ladder-wafer to barrel-ladder-wafer. 2) Added Rich Hit class and collection, and links to them in other classes.

Revision 2.3 2000/01/18 20:52:31 calderon Works with CC5

Revision 2.2 1999/12/03 00:51:53 calderon Tested with new StMcEventMaker. Added messages for diagnostics.

Revision 2.1 1999/11/19 19:06:34 calderon Recommit after redoing the files.

Revision 2.0 1999/11/17 02:12:16 calderon Completely revised for new StEvent

Revision 1.4 1999/09/24 01:23:17 fisyak Reduced Include Path

Revision 1.3 1999/09/23 21:25:54 calderon Added Log & Id Modified includes according to Yuri

Definition at line 144 of file StMcTrack.hh.


The documentation for this class was generated from the following files: