- Timestamp:
- Dec 1, 2005, 5:06:29 PM (19 years ago)
- Location:
- MEMPHYS/HEAD/MEMPHYS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
MEMPHYS/HEAD/MEMPHYS/MEMPHYSWCDigi.hh
r10 r45 6 6 #include "G4Allocator.hh" 7 7 #include "G4ThreeVector.hh" 8 #include "G4Colour.hh" 9 #include "G4LogicalVolume.hh" 10 #include "G4Transform3D.hh" 11 12 //std 13 #include <vector> 14 15 8 16 9 17 class MEMPHYSWCDigi : public G4VDigi { … … 13 21 MEMPHYSWCDigi(); 14 22 virtual ~MEMPHYSWCDigi(); 15 MEMPHYSWCDigi(const MEMPHYSWCDigi&);16 const MEMPHYSWCDigi& operator=(const MEMPHYSWCDigi&);17 23 int operator==(const MEMPHYSWCDigi&) const; 18 24 … … 22 28 void Draw(); //JEC FIXME what do we do with this? 23 29 void Print(); 30 //JEC 1/12/05 implement same mechanism as Trajectory 31 virtual const std::map<G4String,G4AttDef>* GetAttDefs() const; 32 virtual std::vector<G4AttValue>* CreateAttValues() const; 24 33 25 34 private: 35 36 //JEC make Ctor and assignation private 37 MEMPHYSWCDigi(const MEMPHYSWCDigi&); 38 const MEMPHYSWCDigi& operator=(const MEMPHYSWCDigi&); 26 39 27 40 G4int tubeID; 28 41 G4float pe; 29 42 G4float time; 30 43 44 //JEC for vizu 45 G4Colour colour; 46 G4Transform3D transform; 47 G4LogicalVolume* pLogV; 48 31 49 public: 32 50 33 inline void SetTubeID(G4int tube) {tubeID = tube;}; 34 inline void SetPe(G4float Q) {pe = Q;}; 35 inline void SetTime(G4float T) {time = T;}; 36 37 inline G4int GetTubeID() {return tubeID;}; 38 inline G4float GetPe() {return pe;}; 39 inline G4float GetTime() {return time;}; 51 inline void SetTubeID(G4int tube) {tubeID = tube;} 52 inline void SetPe(G4float Q) {pe = Q;} 53 inline void SetTime(G4float T) {time = T;} 54 55 //JEC 1/12/05 for vizu 56 void SetColour(G4Colour aColour) { colour = aColour; } 57 void UpdateColour() {/* not yet implemented */} 58 inline void SetTransform(G4Transform3D aTrans) { transform = aTrans; } 59 inline void SetLogicalVolume(G4LogicalVolume* logV) {pLogV = logV;} 60 61 62 inline G4int GetTubeID() {return tubeID;} 63 inline G4float GetPe() {return pe;} 64 inline G4float GetTime() {return time;} 40 65 41 66 }; -
MEMPHYS/HEAD/MEMPHYS/MEMPHYSWCHit.hh
r10 r45 6 6 #include "G4THitsCollection.hh" 7 7 #include "G4Allocator.hh" 8 #include "G4Transform3D.hh" 8 9 #include "G4ThreeVector.hh" 9 10 #include "G4LogicalVolume.hh" 10 11 #include "G4ios.hh" 12 #include "G4Colour.hh" 13 11 14 12 15 //std … … 26 29 void Draw(); //JEC FIXME what do we do with this? 27 30 void Print(); 31 //JEC 1/12/05 implement same mechanism as Trajectory 32 virtual const std::map<G4String,G4AttDef>* GetAttDefs() const; 33 virtual std::vector<G4AttValue>* CreateAttValues() const; 34 35 28 36 29 37 public: 30 38 31 void SetTubeID (G4int tube) { tubeID = tube; }; 32 void SetTrackID (G4int track) { trackID = track; }; 33 void SetEdep (G4double de) { edep = de; }; 34 void SetPos (G4ThreeVector xyz) { pos = xyz; }; 35 void SetRot (G4RotationMatrix rotMatrix) { rot = rotMatrix; }; 39 void SetTubeID (G4int tube) { tubeID = tube; } 40 void SetTrackID (G4int track) { trackID = track; } 41 void SetEdep (G4double de) { edep = de; } 42 // void SetPos (G4ThreeVector xyz) { pos = xyz; } 43 // void SetRot (G4RotationMatrix rotMatrix) { rot = rotMatrix; } 44 void SetTransform (G4Transform3D aTrans) { transform = aTrans; } 36 45 void SetLogicalVolume(G4LogicalVolume* logV) { pLogV = logV;} 46 void SetColour(G4Colour aColour) { colour = aColour; } 47 void UpdateColour(); //modify color at the end of the event 37 48 38 49 // This is temporarily used for the drawing scale 39 void SetMaxPe(G4int number = 0) {maxPe = number;} ;50 void SetMaxPe(G4int number = 0) {maxPe = number;} 40 51 41 52 void AddPe(G4float hitTime); 42 53 43 G4int GetTubeID() { return tubeID; }; 44 G4int GetTrackID() { return trackID; }; 45 G4ThreeVector GetPos() { return pos; }; 46 G4int GetTotalPe() { return totalPe;}; 47 G4float GetTime(int i) { return time[i];}; 54 G4int GetTubeID() { return tubeID; } 55 G4int GetTrackID() { return trackID; } 56 //G4ThreeVector GetPos() { return pos; } 57 G4int GetTotalPe() { return totalPe;} 58 G4float GetTime(int i) { return time[i]; } 59 G4Transform3D GetTransform() { return transform; } 60 G4LogicalVolume* GetLogicalVolume() { return pLogV; } 61 G4Colour GetColour() { return colour; } 62 48 63 49 64 void SortHitTimes() { sort(time.begin(),time.end()); } … … 60 75 G4int trackID; 61 76 G4double edep; 62 G4ThreeVector pos; 63 G4RotationMatrix rot; 77 //G4ThreeVector pos; 78 //G4RotationMatrix rot; 79 80 //JEC to GB 81 G4Colour colour; 82 G4Transform3D transform; 64 83 G4LogicalVolume* pLogV; 65 84
Note: See TracChangeset
for help on using the changeset viewer.