ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
WLSTrajectoryPoint.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file WLSTrajectoryPoint.hh
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
29 //
30 
31 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
32 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
33 
34 #ifndef WLSTrajectoryPoint_h_seen
35 #define WLSTrajectoryPoint_h_seen 1
36 
37 #include "globals.hh"
38 
39 #include "G4Allocator.hh"
40 #include "G4ThreeVector.hh"
41 #include "G4TrajectoryPoint.hh"
42 
43 #include "G4StepStatus.hh"
44 
45 class G4Track;
46 class G4Step;
47 class G4VProcess;
48 
50 
51 //--------
52  public: // without description
53 //--------
54 
55 // Constructor/Destructor
56 
58  WLSTrajectoryPoint(const G4Track* );
59  WLSTrajectoryPoint(const G4Step* );
61  virtual ~WLSTrajectoryPoint();
62 
63 // Operators
64 
65  inline void *operator new(size_t);
66  inline void operator delete(void *aTrajectoryPoint);
67  inline G4bool operator==(const WLSTrajectoryPoint& right) const
68  { return (this==&right); };
69 
70 // Get/Set functions
71 
72  inline G4double GetTime() const { return fTime; };
73  inline const G4ThreeVector GetMomentum() const { return fMomentum; };
74  inline G4StepStatus GetStepStatus() const { return fStepStatus; };
75  inline G4String GetVolumeName() const { return fVolumeName; };
76 
77 // Get method for HEPRep style attributes
78 
79  virtual const std::map<G4String,G4AttDef>* GetAttDefs() const;
80  virtual std::vector<G4AttValue>* CreateAttValues() const;
81 
82 //---------
83  private:
84 //---------
85 
86 // Member data
87 
92 
93 };
94 
96 
97 inline void* WLSTrajectoryPoint::operator new(size_t)
98 {
101  return (void *) WLSTrajPointAllocator->MallocSingle();
102 }
103 
104 inline void WLSTrajectoryPoint::operator delete(void *aTrajectoryPoint)
105 {
106  WLSTrajPointAllocator->FreeSingle(
107  (WLSTrajectoryPoint *) aTrajectoryPoint);
108 }
109 
110 #endif