DQM shifter histos based only on physics data
[u/mrichter/AliRoot.git] / T0 / AliT0v0.cxx
index 6c42855..d0c866b 100644 (file)
 #include <Riostream.h>
 #include <stdlib.h>
 
-#include <TGeometry.h>
+#include <TGeoGlobalMagField.h>
 #include <TLorentzVector.h>
 #include <TMath.h>
-#include <TNode.h>
-#include <TTUBE.h>
 #include <TVirtualMC.h>
 
 #include "AliLog.h"
@@ -49,12 +47,13 @@ ClassImp(AliT0v0)
 
 //--------------------------------------------------------------------
 AliT0v0::AliT0v0(const char *name, const char *title):
- AliT0(name,title)
+  AliT0(name,title),
+  fIdSens1(0)
 {
   //
   // Standart constructor for T0 Detector version 0
   //
-  fIdSens1=0;
+  //  fIdSens1=0;
 //  setBufferSize(128000);
 }
 //-------------------------------------------------------------------------
@@ -435,10 +434,10 @@ void AliT0v0::CreateGeometry()
 //------------------------------------------------------------------------
 void AliT0v0::CreateMaterials()
 {
-   Int_t isxfld   = gAlice->Field()->Integ();
-   Float_t sxmgmx = gAlice->Field()->Max();
-   Float_t a,z,d,radl,absl,buf[1];
-   Int_t nbuf;
+   Int_t isxfld   = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Integ();
+   Float_t sxmgmx = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Max();
+   Double_t a,z,d,radl,absl;
+   TArrayD par;
 
 // Scintillator CH
    Float_t ascin[2]={1.01,12.01};
@@ -494,11 +493,11 @@ void AliT0v0::CreateMaterials()
 
    AliMixture( 3, "Al2O3   $", aal2o3, zal2o3, denscer, -2, wal2o3);
    AliMixture( 4, "PMT glass   $",aglass,zglass,dglass,-2,wglass);
-   char namate[21]="";
-   gMC->Gfmate((*fIdmate)[3], namate, a, z, d, radl, absl, buf, nbuf);
+   TString namate;
+   gMC->GetMaterial((*fIdmate)[3], namate, a, z, d, radl, absl, par);
    acer[0]=a;
    zcer[0]=z;
-   gMC->Gfmate((*fIdmate)[4], namate, a, z, d, radl, absl, buf, nbuf);
+   gMC->GetMaterial((*fIdmate)[4], namate, a, z, d, radl, absl, par);
    acer[1]=a;
    zcer[1]=z;
    
@@ -527,30 +526,6 @@ void AliT0v0::CreateMaterials()
    AliDebugClass(1,": ++++++++++++++Medium set++++++++++");
 
 }
-//---------------------------------------------------------------------
-void AliT0v0::DrawModule() const
-{
-//
-// Draw a shaded view of the Forward multiplicity detector version 0
-//
-  
-  //Set ALIC mother transparent
-  gMC->Gsatt("ALIC","SEEN",0);
-  //
-  //Set volumes visible
-  gMC->Gsatt("0STA","SEEN",0);
-  gMC->Gsatt("0PMT","SEEN",1);
-  gMC->Gsatt("0DIV","SEEN",1);
-  //
-  gMC->Gdopt("hide","on");
-  gMC->Gdopt("shad","on");
-  gMC->SetClipBox(".");
-  gMC->SetClipBox("*",0,1000,-1000,1000,-1000,1000);
-  gMC->DefaultRange();
-  gMC->Gdraw("alic",40,30,0,12,9.5,.7,0.7);
-  gMC->Gdhead(1111,"T-Zero detector");
-  gMC->Gdopt("hide","off");
-}
 
 //-------------------------------------------------------------------
 void AliT0v0::Init()