//____________________________________________________________________________
AliPHOS:: AliPHOS() : AliDetector()
{
- // Create folder and task hierarchy
+ // Default ctor
fName="PHOS";
fQATask = 0;
fTreeQA = 0;
//____________________________________________________________________________
AliPHOS::AliPHOS(const char* name, const char* title): AliDetector(name, title)
{
+ // ctor : title is used to identify the layout
+
fQATask = 0;
fTreeQA = 0;
}
//____________________________________________________________________________
AliPHOS::~AliPHOS()
{
- // remove the alice folder and alice QA task that PHOS creates instead of AliRun
-
- // delete fTreeQA ;
+
}
//____________________________________________________________________________
gMC->Gstpar(idtmed[715], "STRA",2.) ;
}
+
//____________________________________________________________________________
AliPHOSGeometry * AliPHOS::GetGeometry() const
{
// 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
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 ;