G4RichTrajectoryPoint.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id: G4RichTrajectoryPoint.hh 67009 2013-01-29 16:00:21Z gcosmo $
00028 //
00029 //---------------------------------------------------------------
00030 //
00031 // G4RichTrajectoryPoint.hh
00032 //
00033 // class description:
00034 //   This class extends G4TrajectoryPoint.
00035 //   From G4Trajectory, the following information is included:
00036 //     1) Position (end of step).
00037 //   The extended information, only publicly accessible through AttValues,
00038 //   includes:
00039 //     2) Auxiliary points, as in G4SmoothTrajectory.
00040 //     3) Total energy deposit.
00041 //     4) Remaining energy.
00042 //     5) Process defining end of step.
00043 //     6) Global time (from start of event) at pre- amd post-step.
00044 //   ...and more.
00045 //
00046 // Contact:
00047 //   Questions and comments to this code should be sent to
00048 //     Katsuya Amako  (e-mail: Katsuya.Amako@kek.jp)
00049 //     Makoto  Asai   (e-mail: asai@kekvax.kek.jp)
00050 //     Takashi Sasaki (e-mail: Takashi.Sasaki@kek.jp)
00051 //   and on the extended code to:
00052 //     John Allison   (e-mail: John.Allison@manchester.ac.uk)
00053 //     Joseph Perl    (e-mail: perl@slac.stanford.edu)
00054 //
00055 // ---------------------------------------------------------------
00056 
00057 #ifndef G4RICHTRAJECTORYPOINT_HH
00058 #define G4RICHTRAJECTORYPOINT_HH
00059 
00060 #include "G4TrajectoryPoint.hh"
00061 
00062 #include "G4TouchableHandle.hh"
00063 #include "G4ThreeVector.hh"
00064 #include "G4StepStatus.hh"
00065 #include <vector>
00066 
00067 class G4Track;
00068 class G4Step;
00069 class G4VProcess;
00070 
00071 class G4RichTrajectoryPoint : public G4TrajectoryPoint
00072 {
00073 
00074 public: // without description
00075 
00076   // Constructor/Destructor
00077   G4RichTrajectoryPoint();
00078   G4RichTrajectoryPoint(const G4Track*);  // For first point.
00079   G4RichTrajectoryPoint(const G4Step*);   // For subsequent points.
00080   G4RichTrajectoryPoint(const G4RichTrajectoryPoint &right);
00081   virtual ~G4RichTrajectoryPoint();
00082 
00083 private:
00084   G4RichTrajectoryPoint& operator= (const G4RichTrajectoryPoint&);
00085 
00086 public:
00087 
00088   // Get/Set functions
00089   const std::vector<G4ThreeVector>* GetAuxiliaryPoints() const
00090    { return fpAuxiliaryPointVector; }
00091 
00092   // Operators
00093   inline void *operator new(size_t);
00094   inline void operator delete(void *aRichTrajectoryPoint);
00095   inline int operator==(const G4RichTrajectoryPoint& right) const
00096   { return (this==&right); }
00097 
00098   // Get methods for HepRep style attributes
00099   virtual const std::map<G4String,G4AttDef>* GetAttDefs() const;
00100   virtual std::vector<G4AttValue>* CreateAttValues() const;
00101 
00102 private:
00103 
00104   // Extended member data
00105   std::vector<G4ThreeVector>* fpAuxiliaryPointVector;
00106   G4double fTotEDep;
00107   G4double fRemainingEnergy;
00108   const G4VProcess* fpProcess;
00109   G4StepStatus fPreStepPointStatus;
00110   G4StepStatus fPostStepPointStatus;
00111   G4double fPreStepPointGlobalTime;
00112   G4double fPostStepPointGlobalTime;
00113   G4TouchableHandle fpPreStepPointVolume;
00114   G4TouchableHandle fpPostStepPointVolume;
00115   G4double fPreStepPointWeight;
00116   G4double fPostStepPointWeight;
00117 };
00118 
00119 #if defined G4TRACKING_ALLOC_EXPORT
00120 extern G4DLLEXPORT G4Allocator<G4RichTrajectoryPoint>
00121 aRichTrajectoryPointAllocator;
00122 #else
00123 extern G4DLLIMPORT G4Allocator<G4RichTrajectoryPoint>
00124 aRichTrajectoryPointAllocator;
00125 #endif
00126 
00127 inline void* G4RichTrajectoryPoint::operator new(size_t)
00128 {
00129   void *aRichTrajectoryPoint;
00130   aRichTrajectoryPoint =
00131     (void *) aRichTrajectoryPointAllocator.MallocSingle();
00132   return aRichTrajectoryPoint;
00133 }
00134 
00135 inline void G4RichTrajectoryPoint::operator delete
00136 (void *aRichTrajectoryPoint)
00137 {
00138   aRichTrajectoryPointAllocator.FreeSingle
00139     ((G4RichTrajectoryPoint *) aRichTrajectoryPoint);
00140 }
00141 
00142 #endif
00143 

Generated on Mon May 27 17:49:43 2013 for Geant4 by  doxygen 1.4.7