AliPHOS(name,title)
{
// ctor : title is used to identify the layout
-
- // create the getter not needed
- //AliPHOSGetter::GetInstance(gDirectory->GetName(), 0);
-
+ GetGeometry() ;
}
//____________________________________________________________________________
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");
- }
+ }
}
-
-
// Gives the version number
return 0 ;
}
- virtual TString Version(void){
+ virtual const TString Version(void)const {
// As above
return TString("v0") ;
}
}
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
// Gives the version number
return 2 ;
}
- virtual TString Version(void){
+ virtual const TString Version(void)const {
// returns the version number
return TString("v2") ;
}
// Gives the version number
return 3 ;
}
- virtual TString Version(void){
+ virtual const TString Version(void)const {
// returns the version number
return TString("v3") ;
}
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") ;
}
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) ;
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") ;
}