**************************************************************************/
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ * Revision 1.79 2005/05/28 14:19:05 schutz
+ * Compilation warnings fixed by T.P.
+ *
+ */
//_________________________________________________________________________
// Implementation version v0 of PHOS Manager class
// --- ROOT system ---
-#include "TBRIK.h"
-#include "TTRD1.h"
-#include "TNode.h"
-#include "TRandom.h"
-#include "TGeometry.h"
-#include "TFolder.h"
-#include "TROOT.h"
-#include "TTree.h"
-
+#include <TBRIK.h>
+#include <TFolder.h>
+#include <TGeometry.h>
+#include <TNode.h>
+#include <TROOT.h>
+#include <TRandom.h>
+#include <TTRD1.h>
+#include <TTree.h>
+#include <TVirtualMC.h>
// --- Standard library ---
#include <string.h>
#include <stdlib.h>
-#include <strstream.h>
// --- AliRoot header files ---
-#include "AliPHOSv0.h"
-#include "AliRun.h"
#include "AliConst.h"
-#include "AliMC.h"
#include "AliPHOSGeometry.h"
-#include "AliPHOSGetter.h"
+#include "AliPHOSLoader.h"
+#include "AliPHOSv0.h"
+#include "AliRun.h"
+#include "AliLog.h"
ClassImp(AliPHOSv0)
AliPHOS(name,title)
{
// ctor : title is used to identify the layout
-
- // create the getter not needed
- //AliPHOSGetter::GetInstance(gDirectory->GetName(), 0);
-
+ GetGeometry() ;
+}
+
+//____________________________________________________________________________
+void AliPHOSv0::Copy(TObject & phos) const
+{
+ TObject::Copy(phos) ;
+ AliPHOS::Copy(phos) ;
}
//____________________________________________________________________________
const Int_t kColorPHOS = kRed ;
const Int_t kColorXTAL = kBlue ;
- Double_t const kRADDEG = 180.0 / kPI ;
+ Double_t const kRADDEG = 180.0 / TMath::Pi() ;
AliPHOSGeometry * geom = GetGeometry() ;
AliPHOSEMCAGeometry * emcg = geom->GetEMCAGeometry() ;
*/
//END_HTML
- const Double_t kRADDEG = 180.0 / kPI ;
+ const Double_t kRADDEG = 180.0 / TMath::Pi() ;
const Int_t kColorCPV = kGreen ;
const Int_t kColorFrame = kYellow ;
const Int_t kColorGassiplex = kRed;
// --- Position PHOS mdules in ALICE setup ---
Int_t idrotm[99] ;
- Double_t const kRADDEG = 180.0 / kPI ;
+ Double_t const kRADDEG = 180.0 / TMath::Pi() ;
Float_t * phosParams = geom->GetPHOSParams() ;
Float_t r = geom->GetIPtoOuterCoverDistance() + phosParams[3] - geom->GetCPVBoxSize(1) ;
par[4] = geom->GetCradleWall(4) ;
gMC->Gsvolu("PCRA", "TUBS", idtmed[716], par, 5) ;
- par[0] -= geom->GetCradleWallThickness() ;
+ par[0] += geom->GetCradleWallThickness() ;
par[1] -= geom->GetCradleWallThickness() ;
par[2] -= geom->GetCradleWallThickness() ;
gMC->Gsvolu("PCRE", "TUBS", idtmed[798], par, 5) ;
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());
-
-
+ if(AliLog::GetGlobalDebugLevel()>0) {
+ TString st ;
+ for(i=0;i<35;i++)
+ st += "*";
+ Info("Init", "%s", st.Data()) ;
// Here the PHOS initialisation code (if any!)
-
+
AliPHOSGeometry * geom = GetGeometry() ;
if (geom!=0)
- cout << "AliPHOS" << Version() << " : PHOS geometry intialized for " << geom->GetName() << endl ;
+ Info("Init", "AliPHOS%s: PHOS geometry intialized for %s", Version().Data(), geom->GetName()) ;
else
- cout << "AliPHOS" << Version() << " : PHOS geometry initialization failed !" << endl ;
-
- for(i=0;i<80;i++) printf("*");
- printf("\n");
- }
-}
-
+ Info("Init", "AliPHOS%s: PHOS geometry initialization failed !", Version().Data()) ;
+ Info("Init", "%s", st.Data()) ;
+ }
+}