Changeset 8266 for trunk/MagicSoft/Mars
- Timestamp:
- 01/25/07 09:35:40 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mreflector
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreflector/MRflEvtData.cc
r2229 r8266 64 64 } 65 65 66 // -------------------------------------------------------------------------- 67 // 68 // Copy constructor which copies the contents of dat into the new object 69 // 70 MRflEvtData::MRflEvtData(const MRflEvtData &dat) 71 : fList("MRflSinglePhoton", 0), fPos(0) 72 { 73 MRflSinglePhoton *ph=NULL; 74 75 TIter Next(&dat.fList); 76 while ((ph=(MRflSinglePhoton*)Next())) 77 new (fList[fPos++]) MRflSinglePhoton(*ph); 78 } 79 80 // -------------------------------------------------------------------------- 81 // 82 // Clone function producing a clone of this. A pointer to the clone is 83 // returned. 84 // 85 TObject *MRflEvtData::Clone(Option_t *) const 86 { 87 return new MRflEvtData(*this); 88 } 89 90 // -------------------------------------------------------------------------- 91 // 92 // Return the i-th MRflSinglePhoton. Be carefull the result is not 93 // range checked! 94 // 66 95 const MRflSinglePhoton &MRflEvtData::GetPhoton(Int_t i) const 67 96 { -
trunk/MagicSoft/Mars/mreflector/MRflEvtData.h
r2958 r8266 23 23 public: 24 24 MRflEvtData(const char *name=NULL, const char *title=NULL); 25 MRflEvtData(const MRflEvtData &dat); 26 27 TObject *Clone(Option_t *) const; 25 28 26 29 void Reset() { fPos = 0; } -
trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.h
r2135 r8266 17 17 Float_t fPhi; // [rad] camera inc. angle (rad) 18 18 public: 19 MRflSinglePhoton() { } 20 MRflSinglePhoton(const MRflSinglePhoton &ph) 21 : fX(ph.fX), fY(ph.fY), fCosU(ph.fCosU), fCosV(ph.fCosV), 22 fTime(ph.fTime), fHeight(ph.fHeight), fPhi(ph.fPhi) 23 { 24 } 25 19 26 void SetXY(Float_t x, Float_t y) { fX = x; fY=y; } 20 27 void SetCosUV(Float_t u, Float_t v) { fCosU = u; fCosV=v; }
Note:
See TracChangeset
for help on using the changeset viewer.