TClonesArray

From: Roman Lietava <rl_at_hep.ph.bham.ac.uk>
Date: Thu, 2 Jul 2009 15:54:31 +0100


Can you show me or point me to example how to use TClonesArray in copy constructor and in assignemnt operator, please?
Thanks,
Roman.

E.g.:

class item{
};

class myclass{
TClonesArray array; // array of item objects
} ;

myclass::myclass(const myclass &class ){
}

myclass& myclass::operator=(const myclass &class) {
  if(this!=&class){
  }
}
Received on Thu Jul 02 2009 - 16:54:34 CEST

This archive was generated by hypermail 2.2.0 : Thu Jul 02 2009 - 17:50:02 CEST