X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSvFast.cxx;h=53b0c2332e87997b91f0e22fc957d663fe9f0fbc;hb=7fb9892dcfb9bbfcf8f8b33384fd30c94c495ae9;hp=f511821923c40a0f51e590c22f2ec523218f5424;hpb=702ab87e845509d9379dca12e47c7e8a37eba7f6;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSvFast.cxx b/PHOS/AliPHOSvFast.cxx index f511821923c..53b0c2332e8 100644 --- a/PHOS/AliPHOSvFast.cxx +++ b/PHOS/AliPHOSvFast.cxx @@ -18,6 +18,12 @@ /* History of cvs commits: * * $Log$ + * Revision 1.30 2006/09/13 07:31:01 kharlov + * Effective C++ corrections (T.Pocheptsov) + * + * Revision 1.29 2005/05/28 14:19:05 schutz + * Compilation warnings fixed by T.P. + * */ //_________________________________________________________________________ @@ -49,52 +55,48 @@ ClassImp(AliPHOSvFast) -//____________________________________________________________________________ -AliPHOSvFast::AliPHOSvFast() : AliPHOS() +AliPHOSvFast::AliPHOSvFast() : + fBigBoxX(0.), + fBigBoxY(0.), + fBigBoxZ(0.), + fFastRecParticles(0), + fNRecParticles(0), + fRan(0), + fResPara1(0.), + fResPara2(0.), + fResPara3(0.), + fPosParaA0(0.), + fPosParaA1(0.), + fPosParaB0(0.), + fPosParaB1(0.), + fPosParaB2(0.) { // default ctor : initialize data member - fBigBoxX = 0. ; - fBigBoxY = 0. ; - fBigBoxZ = 0. ; - fFastRecParticles = 0 ; - fNRecParticles = 0 ; - fRan = 0 ; - fResPara1 = 0. ; - fResPara2 = 0. ; - fResPara3 = 0. ; - fPosParaA0 = 0. ; - fPosParaA1 = 0. ; - fPosParaB0 = 0. ; - fPosParaB1 = 0. ; - fPosParaB2 = 0. ; - } //____________________________________________________________________________ AliPHOSvFast::AliPHOSvFast(const char *name, const char *title): - AliPHOS(name,title) + AliPHOS(name,title), + fBigBoxX(0.), + fBigBoxY(0.), + fBigBoxZ(0.), + fFastRecParticles(new AliPHOSFastRecParticle::FastRecParticlesList("AliPHOSFastRecParticle", 100)), + fNRecParticles(0), + fRan(0), + fResPara1(0.030), // GeV + fResPara2(0.00003), + fResPara3(0.00001), + fPosParaA0(2.87), // mm + fPosParaA1(-0.0975), + fPosParaB0(0.257), + fPosParaB1(0.137), + fPosParaB2(0.00619) { // ctor - - // create the Loader - SetBigBox(0, GetGeometry()->GetOuterBoxSize(0) ) ; SetBigBox(1, GetGeometry()->GetOuterBoxSize(3) + GetGeometry()->GetCPVBoxSize(1) ) ; SetBigBox(2, GetGeometry()->GetOuterBoxSize(2) ); - - fNRecParticles = 0 ; - fFastRecParticles = new AliPHOSFastRecParticle::FastRecParticlesList("AliPHOSFastRecParticle", 100) ; - - fResPara1 = 0.030 ; // GeV - fResPara2 = 0.00003 ; - fResPara3 = 0.00001 ; - - fPosParaA0 = 2.87 ; // mm - fPosParaA1 = -0.0975 ; - fPosParaB0 = 0.257 ; - fPosParaB1 = 0.137 ; - fPosParaB2 = 0.00619 ; } //____________________________________________________________________________ @@ -108,30 +110,6 @@ AliPHOSvFast::~AliPHOSvFast() } -//____________________________________________________________________________ -void AliPHOSvFast::Copy(TObject & base)const -{ - TObject::Copy(base) ; - AliPHOS::Copy(base) ; - AliPHOSvFast &fast = static_cast(base); - fast.fBigBoxX = fBigBoxX ; - fast.fBigBoxY = fBigBoxY ; - fast.fBigBoxZ = fBigBoxZ ; - fast.fNRecParticles = fNRecParticles ; - fast.fRan = fRan ; - fast.fResPara1 = fResPara1 ; - fast.fResPara2 = fResPara2 ; - fast.fResPara3 = fResPara3 ; - fast.fPosParaA0 = fPosParaA0 ; - fast.fPosParaA1 = fPosParaA1 ; - fast.fPosParaB0 = fPosParaB0 ; - fast.fPosParaB1 = fPosParaB1 ; - fast.fFastRecParticles = new TClonesArray(fFastRecParticles->GetClass()->GetName(), 100) ; - Int_t index ; - for (index = 0 ; index < fFastRecParticles->GetEntries(); index++) - (fast.fFastRecParticles)->AddAt(fFastRecParticles->At(index), index) ; -} - //____________________________________________________________________________ void AliPHOSvFast::AddRecParticle(const AliPHOSFastRecParticle & rp) {