]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONQADataMakerSim.cxx
Adding a protection against division by zero in Fcn1();
[u/mrichter/AliRoot.git] / MUON / AliMUONQADataMakerSim.cxx
index fb859cc4eadad37211b1088b951d718496c7603d..0d2f9b32cd53a8300f295579b4b00a3d9ea01e3f 100644 (file)
@@ -52,7 +52,7 @@ AliMUONQADataMakerSim::AliMUONQADataMakerSim() :
 {
   /// Default constructor
 
-  AliDebug(1,"");
+      AliDebug(AliQAv1::GetQADebugLevel(),"");
 }
 
 //____________________________________________________________________________ 
@@ -63,7 +63,7 @@ AliMUONQADataMakerSim::AliMUONQADataMakerSim(const AliMUONQADataMakerSim& qadm)
 {
   /// Copy constructor
 
-  AliDebug(1,"");
+    AliDebug(AliQAv1::GetQADebugLevel(),"");
 
     if ( qadm.fHitStore ) 
     {
@@ -82,7 +82,7 @@ AliMUONQADataMakerSim& AliMUONQADataMakerSim::operator = (const AliMUONQADataMak
 {
   /// Assignment operator
 
-    AliDebug(1,"");
+  AliDebug(AliQAv1::GetQADebugLevel(),"");
 
     this->~AliMUONQADataMakerSim();
     new(this) AliMUONQADataMakerSim(qadm);
@@ -94,7 +94,7 @@ AliMUONQADataMakerSim::~AliMUONQADataMakerSim()
 {
   /// Destructor
 
-  AliDebug(1,"");
+  AliDebug(AliQAv1::GetQADebugLevel(),"");
 
   delete fHitStore;
   delete fDigitStore;
@@ -104,11 +104,14 @@ AliMUONQADataMakerSim::~AliMUONQADataMakerSim()
 void AliMUONQADataMakerSim::InitHits() 
 {
   /// Initialized hit spectra
-  TH1F* h0 = new TH1F("hHitDetElem", "DetElemId distribution in Hits", 1400, 100., 1500.); 
-  Add2HitsList(h0, 0);
+  const Bool_t expert   = kTRUE ; 
+  const Bool_t image    = kTRUE ; 
+  
+  TH1F* h0 = new TH1F("hHitDetElem", "DetElemId distribution in Hits;Detection element Id;Counts", 1400, 100., 1500.); 
+  Add2HitsList(h0, 0, !expert, image);
 
-  TH1F* h1 = new TH1F("hHitPtot", "P distribution in Hits ", 300, 0., 300.); 
-  Add2HitsList(h1, 1);
+  TH1F* h1 = new TH1F("hHitPtot", "P distribution in Hits;P [erg];Counts ", 300, 0., 300.); 
+  Add2HitsList(h1, 1, !expert, image);
   return;
 } 
 
@@ -116,11 +119,14 @@ void AliMUONQADataMakerSim::InitHits()
 void AliMUONQADataMakerSim::InitSDigits() 
 {
   /// Initialized SDigits spectra
-  TH1I* h0 = new TH1I("hSDigitsDetElem", "Detection element distribution in SDigits",  1400, 100, 1500); 
-  Add2SDigitsList(h0, 0);
+  const Bool_t expert   = kTRUE ; 
+  const Bool_t image    = kTRUE ; 
+  
+  TH1I* h0 = new TH1I("hSDigitsDetElem", "Detection element distribution in SDigits;Detection element Id;Counts",  1400, 100, 1500); 
+  Add2SDigitsList(h0, 0, !expert, image);
 
-  TH1F* h1 = new TH1F("hSDigitsCharge", "Charge distribution in SDigits", 4096, 0, 4095); 
-  Add2SDigitsList(h1, 1);
+  TH1F* h1 = new TH1F("hSDigitsCharge", "Charge distribution in SDigits;Charge [??];Counts", 4096, 0, 4095); 
+  Add2SDigitsList(h1, 1, !expert, image);
 
 }  
 
@@ -128,11 +134,14 @@ void AliMUONQADataMakerSim::InitSDigits()
 void AliMUONQADataMakerSim::InitDigits() 
 {
   /// Initialized Digits spectra 
-  TH1I* h0 = new TH1I("hDigitsDetElem", "Detection element distribution in Digits",  1400, 100, 1500); 
-  Add2DigitsList(h0, 0);
+  const Bool_t expert   = kTRUE ; 
+  const Bool_t image    = kTRUE ; 
+  
+  TH1I* h0 = new TH1I("hDigitsDetElem", "Detection element distribution in Digits;Detection element Id;Counts",  1400, 100, 1500); 
+  Add2DigitsList(h0, 0, !expert, image);
 
-  TH1I* h1 = new TH1I("hDigitsADC", "ADC distribution in Digits", 4096, 0, 4095); 
-  Add2DigitsList(h1, 1);  
+  TH1I* h1 = new TH1I("hDigitsADC", "ADC distribution in Digits;ACD value;Counts", 4096, 0, 4095); 
+  Add2DigitsList(h1, 1, !expert, image);  
 
 } 
 
@@ -140,6 +149,7 @@ void AliMUONQADataMakerSim::InitDigits()
 void AliMUONQADataMakerSim::MakeHits(TTree* hitsTree)        
 {
   /// makes data from Hits
+
   if (!fHitStore)
     fHitStore = AliMUONVHitStore::Create(*hitsTree);
   fHitStore->Connect(*hitsTree, false);
@@ -162,6 +172,7 @@ void AliMUONQADataMakerSim::MakeHits(TTree* hitsTree)
 void AliMUONQADataMakerSim::MakeSDigits(TTree* sdigitsTree)        
 {
   /// makes data from SDigits
+
   if (!fDigitStore)
     fDigitStore = AliMUONVDigitStore::Create(*sdigitsTree);
   fDigitStore->Connect(*sdigitsTree, false);
@@ -182,6 +193,7 @@ void AliMUONQADataMakerSim::MakeSDigits(TTree* sdigitsTree)
 void AliMUONQADataMakerSim::MakeDigits(TTree* digitsTree)         
 {
    /// makes data from Digits
+  
   if (!fDigitStore)
     fDigitStore = AliMUONVDigitStore::Create(*digitsTree);
   fDigitStore->Connect(*digitsTree, false);