//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Monte Carlo Point in the TPC // // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Sebastian Neubert TUM (original author) // // //----------------------------------------------------------- #ifndef TPCPOINT_HH #define TPCPOINT_HH // Base Class Headers ---------------- #include "FairMCPoint.h" #include "TMath.h" // Collaborating Class Headers ------- #include // remove if you do not need streaming op // Collaborating Class Declarations -- class PndTpcPoint : public FairMCPoint { public: // Constructors/Destructors --------- PndTpcPoint(); PndTpcPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Int_t SecID=0); ~PndTpcPoint(){;} // Operators // Accessors ----------------------- double p() const {return TMath::Sqrt(fPx*fPx+fPy*fPy+fPz*fPz);} Int_t GetSecID() const {return fSecID;} // Modifiers ----------------------- // Operations ---------------------- virtual void Print(const Option_t* opt=0) const ; private: // Private Data Members ------------ Int_t fSecID; // 0 if primary track, else >0 // Private Methods ----------------- public: ClassDef(PndTpcPoint,2) }; #endif //-------------------------------------------------------------- // $Log$ //--------------------------------------------------------------