Update of QA hitograms
authormrodrigu <mrodrigu@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Jul 2009 12:53:40 +0000 (12:53 +0000)
committermrodrigu <mrodrigu@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Jul 2009 12:53:40 +0000 (12:53 +0000)
ACORDE/AliACORDEConstants.cxx
ACORDE/AliACORDEConstants.h
ACORDE/AliACORDEQADataMakerRec.cxx
ACORDE/AliACORDEQADataMakerSim.cxx
ACORDE/AliACORDEQADataMakerSim.h
ACORDE/CMake_libACORDErec.txt

index b87a328..4651f87 100644 (file)
@@ -159,6 +159,8 @@ const Int_t AliACORDEConstants::fgkModuleElectronicChannel[60] = {
 /* DCS 5_9 ITS-4*/ 41
 };
 
+
+
 ClassImp(AliACORDEConstants)
 
 //_____________________________________________________________________________
index 984f7fc..5f0eb68 100644 (file)
@@ -94,6 +94,8 @@ protected:
   static const Float_t fgkMaxHitTimeDifference;
   static const Int_t fgkMultiMuonThreshold;
   static const Float_t fgkMultiMuonWindow;
+
+
  private:
   ClassDef(AliACORDEConstants, 0)   // ACORDE(ACORDE) global constants
 };
index c7d2d39..fd0ac99 100755 (executable)
@@ -88,14 +88,28 @@ void AliACORDEQADataMakerRec::InitRaws()
   const Bool_t expert   = kTRUE ; 
   const Bool_t saveCorr = kTRUE ; 
   const Bool_t image    = kTRUE ; 
-  
-  TH1D *fhACORDEBitPattern[4];
-  fhACORDEBitPattern[0] = new TH1D("ACORDERawDataSM","ACORDE-SingleMuon;Bit Pattern;Counts",60,1,60);//AcordeSingleMuon BitPattern
-  fhACORDEBitPattern[1] = new TH1D("ACORDERawDataMM","ACORDE-MultiMuon;Bit Pattern;Counts",60,1,60);//AcordeMultiMuon BitPattern
-  fhACORDEBitPattern[2] = new TH1D("ACORDERawDataSMM","ACORDE-SingleMuonMultiplicity;Multiplicity;Counts",60,1,60);//AcordeSingleMuon Multiplicity
-  fhACORDEBitPattern[3] = new TH1D("ACORDERawDataMMM","ACORDE-MultiMuonMultiplicity;Multiplicity;Counts",60,1,60);//AcordeMultiMuon Multiplicity
+  char *acoModule[60]={"0_0","0_1","0_2","0_3","0_4","0_5","0_6","0_7","0_8","0_9",
+                        "1_0","1_1","1_2","1_3","1_4","1_5","1_6","1_7","1_8","1_9",
+                        "2_0","2_1","2_2","2_3","2_4","2_5","2_6","2_7","2_8","2_9",
+                        "3_0","3_1","3_2","3_3","3_4","3_5","3_6","3_7","3_8","3_9",
+                        "4_0","4_1","4_2","4_3","4_4","4_5","4_6","4_7","4_8","4_9",
+                        "5_0","5_1","5_2","5_3","5_4","5_5","5_6","5_7","5_8","5_9"};
+
+
+  TH1F *fhACORDEBitPattern[4];
+  fhACORDEBitPattern[0] = new TH1F("ACORDEBitPatternfromRAWSingle","Distribution of ACORDE fired modules from RAW-Single;Modules;Counts",60,1,60);//AcordeSingleMuon BitPattern
+  fhACORDEBitPattern[1] = new TH1F("ACORDEBitPatternfromRAWMulti","Distribution of ACORDE fired modules from RAW-Multi;Modules;Counts",60,1,60);//AcordeMultiMuon BitPattern
+  fhACORDEBitPattern[2] = new TH1F("ACORDEMultiplicityfromRAWSingle","Number of fired ACORDE modules;No. of fired ACORDE modules;No. of events in ACORDE",60,1,60);//AcordeSingleMuon Multiplicity
+  fhACORDEBitPattern[3] = new TH1F("ACORDEMultiplicityfromRAWMulti","Number of fired ACORDE modules; No. of fired ACORDE modules;No. of events in ACORDE",60,1,60);//AcordeMultiMuon Multiplicity
   for(Int_t i=0;i<4;i++) 
     Add2RawsList(fhACORDEBitPattern[i],i,!expert, image, !saveCorr);
+  
+  for (Int_t iModule = 0; iModule<60; iModule++)
+  {
+       fhACORDEBitPattern[0]->GetXaxis()->SetBinLabel(iModule+1,acoModule[iModule]);
+       fhACORDEBitPattern[1]->GetXaxis()->SetBinLabel(iModule+1,acoModule[iModule]);
+  }
+
 }
 //____________________________________________________________________________ 
 void AliACORDEQADataMakerRec::InitDigits()
@@ -105,11 +119,17 @@ void AliACORDEQADataMakerRec::InitDigits()
   const Bool_t expert   = kTRUE ; 
   const Bool_t image    = kTRUE ; 
   TH1F *    fhDigitsModule;
-  TString   modulename;
-  modulename = "hDigitsModule";
-  fhDigitsModule = new TH1F(modulename.Data(),"hDigitsModuleSingle;# of modules;Counts",60,0,60);
+   char *acoModule[60]={"0_0","0_1","0_2","0_3","0_4","0_5","0_6","0_7","0_8","0_9",
+                        "1_0","1_1","1_2","1_3","1_4","1_5","1_6","1_7","1_8","1_9",
+                        "2_0","2_1","2_2","2_3","2_4","2_5","2_6","2_7","2_8","2_9",
+                        "3_0","3_1","3_2","3_3","3_4","3_5","3_6","3_7","3_8","3_9",
+                        "4_0","4_1","4_2","4_3","4_4","4_5","4_6","4_7","4_8","4_9",
+                        "5_0","5_1","5_2","5_3","5_4","5_5","5_6","5_7","5_8","5_9"};
+
+
+  fhDigitsModule = new TH1F("ACORDEBitPatternfromDigits","Distribution of ACORDE from DIGITS;Modules;Counts",60,1,60);
   Add2DigitsList(fhDigitsModule,0,!expert,image);
-    
+  for (Int_t i=0;i<60;i++) fhDigitsModule->GetXaxis()->SetBinLabel(i+1,acoModule[i]); 
 }
 
 //____________________________________________________________________________ 
@@ -130,16 +150,27 @@ void AliACORDEQADataMakerRec::InitESDs()
   
   TH1F *    fhESDsSingle;
   TH1F *    fhESDsMulti;
+   char *acoModule[60]={"0_0","0_1","0_2","0_3","0_4","0_5","0_6","0_7","0_8","0_9",
+                        "1_0","1_1","1_2","1_3","1_4","1_5","1_6","1_7","1_8","1_9",
+                        "2_0","2_1","2_2","2_3","2_4","2_5","2_6","2_7","2_8","2_9",
+                        "3_0","3_1","3_2","3_3","3_4","3_5","3_6","3_7","3_8","3_9",
+                        "4_0","4_1","4_2","4_3","4_4","4_5","4_6","4_7","4_8","4_9",
+                        "5_0","5_1","5_2","5_3","5_4","5_5","5_6","5_7","5_8","5_9"};
 
-   TString   name;
 
-   name = "hESDsSingle";
-   fhESDsSingle = new TH1F(name.Data(),"hESDsSingle;??;??",60,0,60);
+   fhESDsSingle = new TH1F("ACORDEBitPatternfromESDsSingle","Distribution of ACORDE fired modules from ESDs-Single;Modules;Counts",60,1,60);
    Add2ESDsList(fhESDsSingle,0,!expert,image);
 
-   name = "hESDsMulti";
-   fhESDsMulti = new TH1F(name.Data(),"hESDsMulti;??;??",60,0,60);
+   fhESDsMulti = new TH1F("ACORDEBitPatternfromESDsMulti","Distribution of ACORDE fired modules from ESDs-Multi;Modules;Counts",60,1,60);
    Add2ESDsList(fhESDsMulti,1,!expert,image);
+       
+   for (Int_t i=0;i<60;i++)
+   {
+       fhESDsSingle->GetXaxis()->SetBinLabel(i+1,acoModule[i]);
+       fhESDsMulti->GetXaxis()->SetBinLabel(i+1,acoModule[i]);
+   }
+
+
 }
 //____________________________________________________________________________
 void AliACORDEQADataMakerRec::MakeRaws(AliRawReader* rawReader)
index eb48840..244d54e 100755 (executable)
@@ -89,10 +89,29 @@ void AliACORDEQADataMakerSim::InitHits()
        
   const Bool_t expert   = kTRUE ; 
   const Bool_t image    = kTRUE ; 
-       
-  TH1F *   fHitsACORDE;
-       fHitsACORDE = new TH1F("hACORDEBitPattern","Distribution of fired modules;# of modules;Counts",60,0,60);
+  
+  TH1F * fHitsACORDE;  
+
+       fHitsACORDE = new TH1F("ACORDEBitPatternfromHits","Distribution of ACORDE fired modules from HITS",60,1,60);
        Add2HitsList(fHitsACORDE,0,!expert,image);
+
+       char *acoModule[60]={"0_0","0_1","0_2","0_3","0_4","0_5","0_6","0_7","0_8","0_9",
+                        "1_0","1_1","1_2","1_3","1_4","1_5","1_6","1_7","1_8","1_9",
+                        "2_0","2_1","2_2","2_3","2_4","2_5","2_6","2_7","2_8","2_9",
+                        "3_0","3_1","3_2","3_3","3_4","3_5","3_6","3_7","3_8","3_9",
+                        "4_0","4_1","4_2","4_3","4_4","4_5","4_6","4_7","4_8","4_9",
+                        "5_0","5_1","5_2","5_3","5_4","5_5","5_6","5_7","5_8","5_9"};
+
+
+       fHitsACORDE->SetXTitle("Modules");
+        fHitsACORDE->SetYTitle("Counts");
+        for (Int_t i=0;i<60;i++)
+        {
+                fHitsACORDE->GetXaxis()->SetBinLabel(i+1,acoModule[i]);
+        }
+
+
+
 }
 //____________________________________________________________________________ 
 void AliACORDEQADataMakerSim::InitDigits()
@@ -103,10 +122,23 @@ void AliACORDEQADataMakerSim::InitDigits()
   const Bool_t image    = kTRUE ; 
   
   TH1F *    fhDigitsModule;
-  TString   modulename;
-  modulename = "hDigitsModule";
-  fhDigitsModule = new TH1F(modulename.Data(),"hDigitsModuleSingle;# of modules;Counts",60,0,60);
+  fhDigitsModule = new TH1F("ACORDEBitPatternfromDigits","Distribution of ACORDE fired modules from DIGITS",60,1,60);
   Add2DigitsList(fhDigitsModule,0,!expert,image);
+  char *acoModule[60]={"0_0","0_1","0_2","0_3","0_4","0_5","0_6","0_7","0_8","0_9",
+                        "1_0","1_1","1_2","1_3","1_4","1_5","1_6","1_7","1_8","1_9",
+                        "2_0","2_1","2_2","2_3","2_4","2_5","2_6","2_7","2_8","2_9",
+                        "3_0","3_1","3_2","3_3","3_4","3_5","3_6","3_7","3_8","3_9",
+                        "4_0","4_1","4_2","4_3","4_4","4_5","4_6","4_7","4_8","4_9",
+                        "5_0","5_1","5_2","5_3","5_4","5_5","5_6","5_7","5_8","5_9"};
+
+
+       fhDigitsModule->SetXTitle("Modules");
+        fhDigitsModule->SetYTitle("Counts");
+        for (Int_t i=0;i<60;i++)
+        {
+                fhDigitsModule->GetXaxis()->SetBinLabel(i+1,acoModule[i]);
+        }
+
 
 }
 //____________________________________________________________________________
@@ -116,26 +148,32 @@ void AliACORDEQADataMakerSim::MakeHits(TTree *hitTree)
   // Here we fill the QA histos for Hits declared above
 
        if (fHitsArray) 
-    fHitsArray->Clear() ; 
-  else
-    fHitsArray = new TClonesArray("AliACORDEhit",1000);
+       fHitsArray->Clear() ; 
+       else
+       fHitsArray = new TClonesArray("AliACORDEhit",1000);
        TBranch * branch = hitTree->GetBranch("ACORDE");
-       if (!branch) {
+       if (!branch) 
+       {
                AliWarning("ACORDE branch in Hit Tree not found");
-       } else {
-    branch->SetAddress(&fHitsArray);
-               for(Int_t track = 0 ; track < branch->GetEntries() ; track++) {
+       } else 
+       {
+               branch->SetAddress(&fHitsArray);
+               for(Int_t track = 0 ; track < branch->GetEntries() ; track++) 
+               {
                        branch->GetEntry(track);
-                       for(Int_t ihit=0 ; ihit < fHitsArray->GetEntriesFast() ; ihit++) {
+                       for(Int_t ihit=0 ; ihit < fHitsArray->GetEntriesFast() ; ihit++) 
+                       {
                                AliACORDEhit *AcoHit = (AliACORDEhit*) fHitsArray->UncheckedAt(ihit);
-                               if(!AcoHit) {
+                               if(!AcoHit) 
+                               {
                                        AliError("The unchecked hit doesn't exist");
                                        continue ;
                                }
-                               GetHitsData(0)->Fill(AcoHit->GetModule()-1);
-      }
-    }
-  }
+                               GetHitsData(0)->Fill(AcoHit->GetModule());
+                       }                       
+               }
+       }
+
 }
 //____________________________________________________________________________
 void AliACORDEQADataMakerSim::MakeDigits( TTree *digitsTree)
@@ -159,7 +197,7 @@ void AliACORDEQADataMakerSim::MakeDigits( TTree *digitsTree)
           AliError("The unchecked digit doesn't exist");
           continue ;
         }
-        GetDigitsData(0)->Fill(AcoDigit->GetModule()-1);
+        GetDigitsData(0)->Fill(AcoDigit->GetModule());
       }
     }
   }
index 48a47da..9da9694 100755 (executable)
@@ -45,6 +45,7 @@ private:
   virtual void   MakeDigits() {}       //Dummy for the moment
   virtual void   EndOfDetectorCycle(AliQAv1::TASKINDEX_t, TObjArray ** list) ;
   virtual void   StartOfDetectorCycle() ;
+
   ClassDef(AliACORDEQADataMakerSim,1)  // description 
 
 };
index 7abaa4d..a18c5cc 100644 (file)
@@ -3,7 +3,7 @@
 set(SRCS
 AliACORDEReconstructor.cxx 
 AliACORDEQADataMakerRec.cxx
-AliACORDERecoParam.cxx
+#AliACORDERecoParam.cxx
 )
 
 # fill list of header files from list of source files