Ignore:
Timestamp:
04/23/01 14:16:02 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawCrateArray.cc

    r749 r760  
    4242ClassImp(MRawCrateArray)
    4343
     44// --------------------------------------------------------------------------
     45//
     46//  Default Constructor. It creates the TClonesArray which is used to store
     47//  the crate data.
     48//
    4449MRawCrateArray::MRawCrateArray(const char *name, const char *title)
    4550{
     
    5459}
    5560
     61// --------------------------------------------------------------------------
     62//
     63//  Destructor. Deletes the TClones Array which stores the crate information
     64//
    5665MRawCrateArray::~MRawCrateArray()
    5766{
     67    //  FIXME: Is the contained data deleted, too?
    5868    delete fArray;
    5969}
    6070
     71// --------------------------------------------------------------------------
     72//
     73// clear the entries in the TClonesArray
     74//
    6175void MRawCrateArray::Clear(Option_t *opt)
    6276{
    63     //
    64     // clear the entries in the TClonesArray
    65     //
    6677    fArray->Clear();
    6778}
    6879
    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//
    7484MRawCrateData *MRawCrateArray::GetEntry(Int_t i)
    7585{
    76     //
    77     // Return a pointer the i-th entry in the array
    78     //
    7986    return (MRawCrateData*)fArray->AddrAt(i);
    8087}
    8188
     89// --------------------------------------------------------------------------
     90//
     91// Return the i-th entry in the array
     92//
    8293MRawCrateData* &MRawCrateArray::operator[](Int_t i)
    8394{
    84     //
    85     // Return the i-th entry in the array
    86     //
    8795    return (MRawCrateData*&)(*fArray)[i];
    8896}
    8997
     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//
    90104TClonesArray **MRawCrateArray::GetArray()
    91105{
    92     //
    93     // return a pointer to the pointer of the array
    94     // (actually not used. You may need it if you want to write
    95     //  the TClonesArray directly)
    96     //
    97106    return &fArray;
    98107}
Note: See TracChangeset for help on using the changeset viewer.