}
//_______________________________________________________________________
-void AliDetector::Copy(AliDetector &) const
+void AliDetector::Copy(TObject &) const
{
//
// Copy *this onto det -- not implemented
virtual ~AliDetector();
// Inline functions
- void Copy(AliDetector &det) const;
+ void Copy(TObject &det) const;
virtual int GetNdigits() const {return fNdigits;}
virtual int GetNhits() const {return fNhits;}
TClonesArray *Digits() const {return fDigits;}
}
//_______________________________________________________________________
-void AliDigitizer::Copy(AliDigitizer &) const
+void AliDigitizer::Copy(TObject &) const
{
Fatal("Copy","Not yet implemented\n");
}
protected:
Int_t GetNInputStreams() const;
- void Copy(AliDigitizer &dig) const;
+ void Copy(TObject &dig) const;
AliRunDigitizer *fManager; // Pointer to the Digitizer manager
}
//_____________________________________________________________________________
-void AliDisplay::Copy(AliDisplay &) const
+void AliDisplay::Copy(TObject &) const
{
//
// Copy *this onto disp -- not implemented
TSlider *CutSlider() {return fCutSlider;}
virtual void ShowTrack(Int_t trackNumber); // *MENU*
virtual void HideTrack(Int_t trackNumber) const; // *MENU*
- void Copy(AliDisplay &disp) const;
+ void Copy(TObject &disp) const;
virtual void DisableDetector(const char *name); // *MENU*
virtual void DisplayButtons();
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
}
//_______________________________________________________________________
-void AliFieldMap::Copy(AliFieldMap & /* magf */) const
+void AliFieldMap::Copy(TObject & /* magf */) const
{
//
// Copy *this onto magf -- Not implemented
AliFieldMap(const char *name, const char *title);
AliFieldMap(const AliFieldMap &mag);
virtual ~AliFieldMap();
- void Copy(AliFieldMap &map) const;
+ void Copy(TObject &map) const;
virtual AliFieldMap & operator=(const AliFieldMap &map);
virtual void Field(Float_t *x, Float_t *b);
}
//_______________________________________________________________________
-void AliGenerator::Copy(AliGenerator &/* gen */) const
+void AliGenerator::Copy(TObject &/* gen */) const
{
//
// Copy *this onto gen
AliGenerator(const AliGenerator &gen);
virtual ~AliGenerator();
virtual void Init();
- void Copy(AliGenerator &gen) const;
+ void Copy(TObject &gen) const;
virtual void SetOrigin(Float_t ox, Float_t oy, Float_t oz);
virtual void SetOrigin(const TLorentzVector &o);
virtual void SetSigma(Float_t sx, Float_t sy, Float_t sz);
}
//_______________________________________________________________________
-void AliHeader::Copy(AliHeader&) const
+void AliHeader::Copy(TObject&) const
{
Fatal("Copy","Not implemented\n");
}
protected:
- void Copy(AliHeader& head) const;
+ void Copy(TObject& head) const;
Int_t fRun; //Run number
Int_t fNvertex; //Number of vertices
}
//_______________________________________________________________________
-void AliLego::Copy(AliLego&) const
+void AliLego::Copy(TObject&) const
{
//
// Copy *this onto lego -- not implemented
{lego.Copy(*this);return(*this);}
private:
- void Copy(AliLego &lego) const;
+ void Copy(TObject &lego) const;
void DumpVolumes();
private:
}
//_______________________________________________________________________
-void AliMC::Copy(AliMC &) const
+void AliMC::Copy(TObject &) const
{
//dummy Copy function
Fatal("Copy","Not implemented!\n");
private:
- void Copy (AliMC &mc) const;
+ void Copy (TObject &mc) const;
AliGenerator *fGenerator; // Generator used in the MC
TArrayF fEventEnergy; //! Energy deposit for current event
TArrayF fSummEnergy; //! Energy per event in each volume
}
//_______________________________________________________________________
-void AliMCQA::Copy(AliMCQA &) const
+void AliMCQA::Copy(TObject &) const
{
Fatal("Copy ctor","Not implemented!\n");
}
private:
void DrawPaveLabel(TPaveLabel *&pv);
Int_t GetHBin(const char* hname);
- void Copy(AliMCQA& qa) const;
+ void Copy(TObject& qa) const;
ClassDef(AliMCQA,1) //Quality Assurance class for the MC
};
}
//_______________________________________________________________________
-void AliMagFCM::Copy(AliMagFCM & /* magf */) const
+void AliMagFCM::Copy(TObject & /* magf */) const
{
//
// Copy *this onto magf -- Not implemented
virtual void SetSolenoidField(Float_t field = 2.) {fSolenoid = field;}
virtual Float_t SolenoidField() const {return fSolenoid;}
- void Copy(AliMagFCM &magf) const;
+ void Copy(TObject &magf) const;
virtual AliMagFCM & operator=(const AliMagFCM &magf)
{magf.Copy(*this); return *this;}
}
//_______________________________________________________________________
-void AliMagFMaps::Copy(AliMagFMaps & /* magf */) const
+void AliMagFMaps::Copy(TObject & /* magf */) const
{
//
// Copy *this onto magf -- Not implemented
{magf.Copy(*this); return *this;}
protected:
- void Copy(AliMagFMaps &magf) const;
+ void Copy(TObject &magf) const;
AliFieldMap* fFieldMap[3]; // Field maps
Float_t fSolenoid; // Solenoid field setting
return h;
}
//_____________________________________________________________________________
-void
-AliMemoryWatcher::Write(void)
+Int_t
+AliMemoryWatcher::Write(const char *, Int_t, Int_t)
{
// Stores the graphs in a file
if ( GraphVSIZE() ) GraphVSIZE()->Write("VSIZE",TObject::kOverwrite);
if ( GraphRSSIZE() ) GraphRSSIZE() ->Write("RSSIZE",TObject::kOverwrite);
if ( GraphTIME() ) GraphTIME()->Write("TIME",TObject::kOverwrite);
+ return 0;
}
TGraph* GraphRSSIZE(void);
TGraph* GraphTIME(void);
TH2* Frame(void) const ;
- void Write(void);
+ Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0);
AliMemoryWatcher & operator = (const AliMemoryWatcher &) { return *this; }
private:
Int_t fPID; // PID of the process to watch
}
//_______________________________________________________________________
-void AliModule::Copy(AliModule & /* mod */) const
+void AliModule::Copy(TObject & /* mod */) const
{
//
// Copy *this onto mod, not implemented for AliModule
}
}
-//_______________________________________________________________________
-Int_t AliModule::DistancetoPrimitive(Int_t, Int_t) const
-{
- //
- // Return distance from mouse pointer to object
- // Dummy routine for the moment
- //
- return 9999;
-}
-
//_______________________________________________________________________
void AliModule::Enable()
{
virtual void CreateGeometry() {}
virtual void CreateMaterials() {}
virtual void Disable();
- virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) const;
virtual void Enable();
virtual void PreTrack(){}
virtual void PostTrack(){}
{mod.Copy(*this); return (*this);}
protected:
- void Copy(AliModule &mod) const;
+ void Copy(TObject &mod) const;
// Data members
}
//_______________________________________________________________________
-void AliPoints::Copy(AliPoints &pts) const
+void AliPoints::Copy(TObject &pts) const
{
//
// Copy *this onto pts
//
if(this != &pts) {
((TPolyMarker3D*)this)->Copy(dynamic_cast<TPolyMarker3D&>(pts));
- pts.fGLList = fGLList;
- pts.fLastPoint = fLastPoint;
- pts.fDetector = fDetector;
- pts.fIndex = fIndex;
+ (dynamic_cast<AliPoints&>(pts)).fGLList = fGLList;
+ (dynamic_cast<AliPoints&>(pts)).fLastPoint = fLastPoint;
+ (dynamic_cast<AliPoints&>(pts)).fDetector = fDetector;
+ (dynamic_cast<AliPoints&>(pts)).fIndex = fIndex;
}
}
virtual void SetParticle(Int_t index) {fIndex = index;}
protected:
- void Copy(AliPoints &pts) const;
+ void Copy(TObject &pts) const;
AliDetector *fDetector; //Pointer to AliDetector object
Int_t fIndex; //Particle number in AliRun::fParticles
// }
//_______________________________________________________________________
-void AliRecPoint::Copy(AliRecPoint& recp) const
+void AliRecPoint::Copy(TObject& recp) const
{
//
// Copy *this onto pts
//
// Copy all first
if(this != &recp) {
- ((TObject*) this)->Copy(dynamic_cast<TObject&>(recp));
- recp.fAmp = fAmp;
- recp.fGeom = fGeom;
- recp.fIndexInList = fIndexInList;
- recp.fLocPos = fLocPos;
- recp.fLocPosM = new TMatrix(*fLocPosM);
- recp.fMaxDigit = fMaxDigit;
- recp.fMulDigit = fMulDigit;
- recp.fMaxTrack = fMaxTrack;
- recp.fMulTrack = fMulTrack;
+ ((TObject*) this)->Copy(recp);
+ (dynamic_cast<AliRecPoint&>(recp)).fAmp = fAmp;
+ (dynamic_cast<AliRecPoint&>(recp)).fGeom = fGeom;
+ (dynamic_cast<AliRecPoint&>(recp)).fIndexInList = fIndexInList;
+ (dynamic_cast<AliRecPoint&>(recp)).fLocPos = fLocPos;
+ (dynamic_cast<AliRecPoint&>(recp)).fLocPosM = new TMatrix(*fLocPosM);
+ (dynamic_cast<AliRecPoint&>(recp)).fMaxDigit = fMaxDigit;
+ (dynamic_cast<AliRecPoint&>(recp)).fMulDigit = fMulDigit;
+ (dynamic_cast<AliRecPoint&>(recp)).fMaxTrack = fMaxTrack;
+ (dynamic_cast<AliRecPoint&>(recp)).fMulTrack = fMulTrack;
// Duplicate pointed objects
- recp.fDigitsList = new Int_t[fMulDigit];
- memcpy(recp.fDigitsList,fDigitsList,fMulDigit*sizeof(Int_t));
- recp.fTracksList = new Int_t[fMulTrack];
- memcpy(recp.fTracksList,fTracksList,fMulTrack*sizeof(Int_t));
+ (dynamic_cast<AliRecPoint&>(recp)).fDigitsList = new Int_t[fMulDigit];
+ memcpy((dynamic_cast<AliRecPoint&>(recp)).fDigitsList,fDigitsList,fMulDigit*sizeof(Int_t));
+ (dynamic_cast<AliRecPoint&>(recp)).fTracksList = new Int_t[fMulTrack];
+ memcpy((dynamic_cast<AliRecPoint&>(recp)).fTracksList,fTracksList,fMulTrack*sizeof(Int_t));
}
}
protected:
- void Copy(AliRecPoint &recp) const;
+ void Copy(TObject &recp) const;
Float_t fAmp ; // summed amplitude of digits
AliGeometry * fGeom ; //! pointer to the geometry class
}
//_______________________________________________________________________
-void AliRun::Copy(AliRun &) const
+void AliRun::Copy(TObject &) const
{
Fatal("Copy","Not implemented!\n");
}
AliRunLoader *fRunLoader; //!run getter - written as a separate object
private:
- void Copy(AliRun &arun) const;
+ void Copy(TObject &arun) const;
ClassDef(AliRun,8) //Supervisor class for all Alice detectors
};
}
//_______________________________________________________________________
-void AliRunDigitizer::Copy(AliRunDigitizer&) const
+void AliRunDigitizer::Copy(TObject&) const
{
Fatal("Copy","Not installed\n");
}
void SetDebug(Int_t level) {fDebug = level;}
private:
- void Copy(AliRunDigitizer& dig) const;
+ void Copy(TObject& dig) const;
Bool_t ConnectInputTrees();
Bool_t InitGlobal();
Bool_t InitOutputGlobal();
}
//_______________________________________________________________________
-void AliStack::Copy(AliStack&) const
+void AliStack::Copy(TObject&) const
{
Fatal("Copy","Not implemented!\n");
}
Bool_t KeepPhysics(TParticle* part);
private:
- void Copy(AliStack &st) const;
+ void Copy(TObject &st) const;
// data members
TClonesArray *fParticles; //! Pointer to list of particles
}
//_______________________________________________________________________
-void AliTrackMap::Copy(AliTrackMap& ) const
+void AliTrackMap::Copy(TObject& ) const
{
Fatal("Copy","Not implemented\n");
}
void PrintValues() const;
private:
- void Copy(AliTrackMap &trm) const;
+ void Copy(TObject &trm) const;
Int_t fSize; // size of the array
Int_t *fArray; //[fSize] actual map