X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSvImpacts.h;h=cf8c57b5608bb12b06c1cb2ddc6bf9cb8b018289;hb=0f20e40cb80a7bae46238ecb48ce772aee16518a;hp=099ff5672c1e85bfa8702e6fa63adf8273d88ba8;hpb=f1611b7cccf11c7d3bd962ba3ef1843691baf4e4;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSvImpacts.h b/PHOS/AliPHOSvImpacts.h index 099ff5672c1..cf8c57b5608 100644 --- a/PHOS/AliPHOSvImpacts.h +++ b/PHOS/AliPHOSvImpacts.h @@ -3,6 +3,13 @@ /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ +/* $Id$ */ + +/* History of cvs commits: + * + * $Log$ + */ + //_________________________________________________________________________ // Implementation version vImpacts of PHOS Manager class. // This class inherits from v1 and adds impacts storing. @@ -27,28 +34,27 @@ public: AliPHOSvImpacts(void) ; AliPHOSvImpacts(const char *name, const char *title="") ; - AliPHOSvImpacts(const AliPHOSvImpacts & phos) { - // cpy ctor: no implementation yet - // requested by the Coding Convention - Fatal("cpy ctor", "not implemented") ; + AliPHOSvImpacts(AliPHOSvImpacts & phos) : AliPHOSv1(phos) { + phos.Copy(*this) ; } virtual ~AliPHOSvImpacts(void) ; - virtual void AddImpact(char* detector, Int_t shunt, Int_t primary, Int_t track, + virtual void Copy(TObject & phos) const; + virtual void AddImpact(const char* detector, Int_t shunt, Int_t primary, Int_t track, Int_t module, Int_t pid, TLorentzVector p, Float_t *xyz) ; - virtual void MakeBranch(Option_t *opt=" ", const char *file=0) ; + virtual void MakeBranch(Option_t *opt=" "); virtual void ResetHits(); virtual Int_t IsVersion(void) const { // Gives the version number return 1 ; } virtual void StepManager(void) ; - virtual TString Version(void){ + virtual const TString Version(void)const{ // returns the version number return TString("vImpacts") ; } - AliPHOSvImpacts & operator = (const AliPHOSvImpacts & rvalue) { + AliPHOSvImpacts & operator = (const AliPHOSvImpacts & /*rvalue*/) { // assignement operator requested by coding convention but not needed Fatal("operator =", "not implemented") ; return *this ;