Changeset 760 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 04/23/01 14:16:02 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawCrateArray.cc
r749 r760 42 42 ClassImp(MRawCrateArray) 43 43 44 // -------------------------------------------------------------------------- 45 // 46 // Default Constructor. It creates the TClonesArray which is used to store 47 // the crate data. 48 // 44 49 MRawCrateArray::MRawCrateArray(const char *name, const char *title) 45 50 { … … 54 59 } 55 60 61 // -------------------------------------------------------------------------- 62 // 63 // Destructor. Deletes the TClones Array which stores the crate information 64 // 56 65 MRawCrateArray::~MRawCrateArray() 57 66 { 67 // FIXME: Is the contained data deleted, too? 58 68 delete fArray; 59 69 } 60 70 71 // -------------------------------------------------------------------------- 72 // 73 // clear the entries in the TClonesArray 74 // 61 75 void MRawCrateArray::Clear(Option_t *opt) 62 76 { 63 //64 // clear the entries in the TClonesArray65 //66 77 fArray->Clear(); 67 78 } 68 79 69 void MRawCrateArray::Print(Option_t *opt) 70 { 71 *fLog << "MRawCrateArray::Print()" << endl; 72 } 73 80 // -------------------------------------------------------------------------- 81 // 82 // Return a pointer the i-th entry in the array 83 // 74 84 MRawCrateData *MRawCrateArray::GetEntry(Int_t i) 75 85 { 76 //77 // Return a pointer the i-th entry in the array78 //79 86 return (MRawCrateData*)fArray->AddrAt(i); 80 87 } 81 88 89 // -------------------------------------------------------------------------- 90 // 91 // Return the i-th entry in the array 92 // 82 93 MRawCrateData* &MRawCrateArray::operator[](Int_t i) 83 94 { 84 //85 // Return the i-th entry in the array86 //87 95 return (MRawCrateData*&)(*fArray)[i]; 88 96 } 89 97 98 // -------------------------------------------------------------------------- 99 // 100 // return a pointer to the pointer of the array 101 // (actually not used. You may need it if you want to write 102 // the TClonesArray directly) 103 // 90 104 TClonesArray **MRawCrateArray::GetArray() 91 105 { 92 //93 // return a pointer to the pointer of the array94 // (actually not used. You may need it if you want to write95 // the TClonesArray directly)96 //97 106 return &fArray; 98 107 }
Note:
See TracChangeset
for help on using the changeset viewer.