Changeset 8266 for trunk/MagicSoft/Mars/mreflector/MRflEvtData.cc
- Timestamp:
- 01/25/07 09:35:40 (18 years ago)
- File:
-
- 1 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 {
Note:
See TracChangeset
for help on using the changeset viewer.