Ignore:
Timestamp:
01/25/07 09:35:40 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mreflector/MRflEvtData.cc

    r2229 r8266  
    6464}
    6565
     66// --------------------------------------------------------------------------
     67//
     68// Copy constructor which copies the contents of dat into the new object
     69//
     70MRflEvtData::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//
     85TObject *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//
    6695const MRflSinglePhoton &MRflEvtData::GetPhoton(Int_t i) const
    6796{
Note: See TracChangeset for help on using the changeset viewer.