From bd46a23762bae09adc704cd14d714837fcefba2d Mon Sep 17 00:00:00 2001 From: schutz Date: Wed, 21 Aug 2002 17:32:44 +0000 Subject: [PATCH] polishing --- PHOS/AliPHOSv0.cxx | 33 +++++++++++++++------------------ PHOS/AliPHOSv0.h | 2 +- PHOS/AliPHOSv1.h | 2 +- PHOS/AliPHOSv2.h | 2 +- PHOS/AliPHOSv3.h | 2 +- PHOS/AliPHOSv4.h | 2 +- PHOS/AliPHOSvFast.h | 4 ++-- 7 files changed, 22 insertions(+), 25 deletions(-) diff --git a/PHOS/AliPHOSv0.cxx b/PHOS/AliPHOSv0.cxx index 3b864a26ffc..e0293ea5935 100644 --- a/PHOS/AliPHOSv0.cxx +++ b/PHOS/AliPHOSv0.cxx @@ -57,10 +57,7 @@ AliPHOSv0::AliPHOSv0(const char *name, const char *title): AliPHOS(name,title) { // ctor : title is used to identify the layout - - // create the getter not needed - //AliPHOSGetter::GetInstance(gDirectory->GetName(), 0); - + GetGeometry() ; } //____________________________________________________________________________ @@ -879,25 +876,25 @@ void AliPHOSv0::Init(void) Int_t i; if(fDebug) { - printf("\n%s: ",ClassName()); - for(i=0;i<35;i++) printf("*"); - printf(" PHOS_INIT "); - for(i=0;i<35;i++) printf("*"); - printf("\n%s: ",ClassName()); - - + cout << endl ; + for(i=0;i<35;i++) + cout <<"*"; + cout << "INFO: " << ClassName() << "::Init "; + for(i=0;i<35;i++) + cout << "*"; + cout << endl; + // Here the PHOS initialisation code (if any!) - + AliPHOSGeometry * geom = GetGeometry() ; if (geom!=0) cout << "AliPHOS" << Version() << " : PHOS geometry intialized for " << geom->GetName() << endl ; else - cout << "AliPHOS" << Version() << " : PHOS geometry initialization failed !" << endl ; + cout << "AliPHOS" << Version() << " : PHOS geometry initialization failed !" << endl ; + for(i=0;i<80;i++) + cout << "*" ; + cout << endl; - for(i=0;i<80;i++) printf("*"); - printf("\n"); - } + } } - - diff --git a/PHOS/AliPHOSv0.h b/PHOS/AliPHOSv0.h index 7aed230b111..51920af94d9 100644 --- a/PHOS/AliPHOSv0.h +++ b/PHOS/AliPHOSv0.h @@ -54,7 +54,7 @@ class AliPHOSv0 : public AliPHOS { // Gives the version number return 0 ; } - virtual TString Version(void){ + virtual const TString Version(void)const { // As above return TString("v0") ; } diff --git a/PHOS/AliPHOSv1.h b/PHOS/AliPHOSv1.h index e388762ec2a..72a085a044c 100644 --- a/PHOS/AliPHOSv1.h +++ b/PHOS/AliPHOSv1.h @@ -42,7 +42,7 @@ public: } virtual void StepManager(void) ; - virtual TString Version(void){ return TString("v1") ; } + virtual const TString Version(void)const { return TString("v1") ; } AliPHOSv1 & operator = (const AliPHOSv1 & rvalue) { // assignement operator requested by coding convention but not needed diff --git a/PHOS/AliPHOSv2.h b/PHOS/AliPHOSv2.h index 2570a394fd7..6fc61ec49c2 100644 --- a/PHOS/AliPHOSv2.h +++ b/PHOS/AliPHOSv2.h @@ -27,7 +27,7 @@ public: // Gives the version number return 2 ; } - virtual TString Version(void){ + virtual const TString Version(void)const { // returns the version number return TString("v2") ; } diff --git a/PHOS/AliPHOSv3.h b/PHOS/AliPHOSv3.h index 928472f2b5c..25983702a89 100644 --- a/PHOS/AliPHOSv3.h +++ b/PHOS/AliPHOSv3.h @@ -36,7 +36,7 @@ class AliPHOSv3 : public AliPHOSv1 { // Gives the version number return 3 ; } - virtual TString Version(void){ + virtual const TString Version(void)const { // returns the version number return TString("v3") ; } diff --git a/PHOS/AliPHOSv4.h b/PHOS/AliPHOSv4.h index bbb9ff44de0..e2905fc1a4b 100644 --- a/PHOS/AliPHOSv4.h +++ b/PHOS/AliPHOSv4.h @@ -67,7 +67,7 @@ public: Double_t SigmaE(Double_t energy) ; // calulates the energy resolution at a given Energy Double_t SigmaP(Double_t energy, Double_t inc) ; // calulates the position resolution at a given Energy at a given incidence virtual void StepManager(void) ; // does the tracking through PHOS and a preliminary digitalization - virtual TString Version(void){ + virtual const TString Version(void)const { // As IsVersion return TString("v4") ; } diff --git a/PHOS/AliPHOSvFast.h b/PHOS/AliPHOSvFast.h index 1cc77c91855..4e65a1f517a 100644 --- a/PHOS/AliPHOSvFast.h +++ b/PHOS/AliPHOSvFast.h @@ -50,7 +50,7 @@ public: virtual void Init(void) ; // does nothing virtual Int_t IsVersion(void) const { // Gives the version number - return 4 ; + return 99 ; } void MakeBranch(Option_t* opt, const char *file=0) ; @@ -67,7 +67,7 @@ public: Double_t SigmaE(Double_t energy) ; // calulates the energy resolution at a given Energy Double_t SigmaP(Double_t energy, Double_t inc) ; // calulates the position resolution at a given Energy at a given incidence virtual void StepManager(void) ; // does the tracking through PHOS and a preliminary digitalization - virtual TString Version(void){ + virtual const TString Version(void)const { // As IsVersion return TString("vFast") ; } -- 2.43.0