QwGeant4
QweakSimTriggerScintillator_PMTHit.hh
Go to the documentation of this file.
1 //=============================================================================
2 //
3 // ---------------------------
4 // | Doxygen File Information |
5 // ---------------------------
6 /**
7 
8  \file QweakSimTriggerScintillator_PMTHit.hh
9  $Revision: 1.2 $
10  $Date: 2005/12/27 19:28:07 $
11  \author Klaus Hans Grimm
12 
13 */
14 //=============================================================================
15 //
16 //=============================================================================
17 //
18 // ---------------------------
19 // | Doxygen Class Information |
20 // ---------------------------
21 /**
22  \class QweakSimTriggerScintillator_PMTHit
23 
24  \brief Handling of a Photomultiplier Hit of the Trigger Scintillator detector
25 
26  Placeholder for a long explaination
27 
28  */
29 //=============================================================================
30 //
31 //=============================================================================
32 // -----------------------
33 // | CVS File Information |
34 // -----------------------
35 //
36 // Last Update: $Author: grimm $
37 // Update Date: $Date: 2005/12/27 19:28:07 $
38 // CVS/RCS Revision: $Revision: 1.2 $
39 // Status: $State: Exp $
40 //
41 // ===================================
42 // CVS Revision Log at end of file !!
43 // ===================================
44 //
45 //=============================================================================
46 
47  //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
48 #ifndef QweakSimTriggerScintillator_PMTHit_h
49 #define QweakSimTriggerScintillator_PMTHit_h
50 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
51 
52 // user includes
53 #include "QweakSimHit.hh"
54 
55 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
56 
58 {
59 public:
60 
62  QweakSimTriggerScintillator_PMTHit(G4int detector_id);
64 
67  int operator==(const QweakSimTriggerScintillator_PMTHit &right) const;
68 
69  inline void *operator new(size_t);
70  inline void operator delete(void *aHit);
71 
72  inline float x();
73  inline float y();
74 
75  //virtual void Draw();
76  //virtual void Print();
77 
78 private:
79  G4int PMTID;
81 
82  public:
83 
84  inline void StorePMTID(G4int pmt_id) { PMTID = pmt_id; }
85  inline G4int GetPMTID() const { return PMTID; }
86 
87  inline void StorePhotonEnergy(G4double eng) { currentPhotonEnergy = eng; }
88  inline G4double GetPhotonEnergy() const { return currentPhotonEnergy; }
89 
90  };
91 
92 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
93 
94 typedef G4THitsCollection<QweakSimTriggerScintillator_PMTHit> QweakSimTriggerScintillator_PMTHitsCollection;
95 
96 extern G4Allocator<QweakSimTriggerScintillator_PMTHit> QweakSimTriggerScintillator_PMTHitAllocator;
97 
98 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
99 
100 inline void* QweakSimTriggerScintillator_PMTHit::operator new(size_t)
101 {
102  void* aHit;
103  aHit = (void*) QweakSimTriggerScintillator_PMTHitAllocator.MallocSingle();
104  return aHit;
105 }
106 
107 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
108 
109 inline void QweakSimTriggerScintillator_PMTHit::operator delete(void* aHit)
110 {
112 }
113 
114 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
115 
116 #endif
117 
118 //=======================================================================================
119 // -----------------------
120 // | CVS File Information |
121 // -----------------------
122 //
123 // $Revisions$
124 // $Log: QweakSimTriggerScintillator_PMTHit.hh,v $
125 // Revision 1.2 2005/12/27 19:28:07 grimm
126 // - Redesign of Doxygen header containing CVS info like revision and date
127 // - Added CVS revision log at the end of file
128 //
129 //
int operator==(const QweakSimTriggerScintillator_PMTHit &right) const
Handling of a Photomultiplier Hit of the Trigger Scintillator detector.
const QweakSimTriggerScintillator_PMTHit & operator=(const QweakSimTriggerScintillator_PMTHit &right)
G4Allocator< QweakSimTriggerScintillator_PMTHit > QweakSimTriggerScintillator_PMTHitAllocator
G4THitsCollection< QweakSimTriggerScintillator_PMTHit > QweakSimTriggerScintillator_PMTHitsCollection