]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Polishing
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Aug 2002 17:24:04 +0000 (17:24 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Aug 2002 17:24:04 +0000 (17:24 +0000)
PHOS/AliPHOS.cxx
PHOS/AliPHOS.h
PHOS/AliPHOSTrackSegment.cxx

index 60f7aaaf41b51c4815ececa1f09309d57405934c..d8f9a1a34a9f8bba9e20f60e9473c84fb032b2cb 100644 (file)
@@ -47,7 +47,7 @@ ClassImp(AliPHOS)
 //____________________________________________________________________________
 AliPHOS:: AliPHOS() : AliDetector()
 {
-  // Create folder and task hierarchy
+  // Default ctor
   fName="PHOS";
   fQATask = 0;
   fTreeQA = 0;
@@ -56,6 +56,8 @@ AliPHOS:: AliPHOS() : AliDetector()
 //____________________________________________________________________________
 AliPHOS::AliPHOS(const char* name, const char* title): AliDetector(name, title) 
 {
+  //   ctor : title is used to identify the layout
+  
   fQATask = 0;
   fTreeQA = 0;
 }
@@ -64,9 +66,7 @@ AliPHOS::AliPHOS(const char* name, const char* title): AliDetector(name, title)
 //____________________________________________________________________________
 AliPHOS::~AliPHOS() 
 {  
-  // remove the alice folder and alice QA task that PHOS creates instead of AliRun
-
-  //  delete fTreeQA ; 
+  
 }
 
 //____________________________________________________________________________
@@ -359,6 +359,7 @@ void AliPHOS::CreateMaterials()
   gMC->Gstpar(idtmed[715], "STRA",2.) ;
 
 }
+
 //____________________________________________________________________________
 AliPHOSGeometry * AliPHOS::GetGeometry() const 
 {  
index 23e702f1e6ce0b9ba13e21565aa2ac9e8adc2130..0322ea72d902cc1592478a40db7c2fce788fcab9 100644 (file)
@@ -39,15 +39,16 @@ class AliPHOS : public AliDetector {
     // do not use this definition but the one below
     abort() ; 
   }
-  virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) = 0 ;   
+  virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, 
+                        Int_t id, Float_t *hits ) = 0 ;   
   virtual void   CreateMaterials() ;                     
-  virtual  void  FinishRun() {WriteQA();}
-  virtual  AliPHOSGeometry * GetGeometry() const ;
+  virtual void  FinishRun() {WriteQA();}
+  virtual AliPHOSGeometry * GetGeometry() const ;
   virtual Int_t   IsVersion(void) const = 0 ;  
   AliPHOSQAChecker * QAChecker() {return fQATask;}  
   virtual void    SetTreeAddress();   
   virtual TTree * TreeQA() const {return fTreeQA; } 
-  virtual TString Version() {return TString(" ") ; } 
+  virtual const TString Version() const {return TString(" ") ; } 
   virtual void WriteQA() ; 
   AliPHOS & operator = (const AliPHOS & rvalue)  {
     // assignement operator requested by coding convention
index deeba20449c930b2f3d32f5de9a6192c88af8c3a..2f8aa09033d71850272ac816c224a154fe9666c6 100644 (file)
@@ -84,7 +84,7 @@ void AliPHOSTrackSegment::Print(Option_t * opt) const
   cout << "Stored at position " << fIndexInList << endl ;
   cout << "Emc RecPoint #     " << fEmcRecPoint << endl ;
   if(fPpsdUpRecPoint >= 0)
-    cout << "CPV RecPoint #      " << fPpsdUpRecPoint << endl ;
+    cout << "CPV RecPoint #     " << fPpsdUpRecPoint << endl ;
   else
     cout << "No CPV RecPoint " << endl ;