#include "AliPHOSRecParticle.h"
#include "AliPHOSTrackSegment.h"
#include "AliPHOSRawDecoder.h"
+#include "AliPHOSReconstructor.h"
+#include "AliPHOSRecoParam.h"
ClassImp(AliPHOSQADataMaker)
}
//____________________________________________________________________________
-void AliPHOSQADataMaker::EndOfDetectorCycle(AliQA::TASKINDEX task, TList * list)
+void AliPHOSQADataMaker::EndOfDetectorCycle(AliQA::TASKINDEX task, TObjArray * list)
{
//Detector specific actions at end of cycle
// do the QA checking
void AliPHOSQADataMaker::InitESDs()
{
//create ESDs histograms in ESDs subdir
+
TH1F * h0 = new TH1F("hPhosESDs", "ESDs energy distribution in PHOS", 100, 0., 100.) ;
h0->Sumw2() ;
Add2ESDsList(h0, 0) ;
void AliPHOSQADataMaker::MakeESDs(AliESDEvent * esd)
{
// make QA data from ESDs
-
- Int_t maxClu = esd->GetNumberOfPHOSClusters() ;
- Int_t index = 0, count = 0 ;
- for ( index = 0 ; index < maxClu; index++ ) {
- AliESDCaloCluster * clu = esd->GetCaloCluster(index) ;
- GetESDsData(0)->Fill(clu->E()) ;
- count++ ;
+
+ Int_t count = 0 ;
+ for ( Int_t index = 0; index < esd->GetNumberOfCaloClusters() ; index++ ) {
+ AliESDCaloCluster * clu = esd->GetCaloCluster(index) ;
+ if ( clu->IsPHOS() ) {
+ GetESDsData(0)->Fill(clu->E()) ;
+ count++ ;
+ }
}
GetESDsData(1)->Fill(count) ;
}
const Int_t modMax = 5 ;
rawReader->Reset() ;
AliPHOSRawDecoder decoder(rawReader);
- decoder.SetOldRCUFormat(kTRUE);
- decoder.SubtractPedestals(kTRUE);
-
+ decoder.SetOldRCUFormat (AliPHOSReconstructor::GetRecoParamEmc()->IsOldRCUFormat());
+ decoder.SubtractPedestals(AliPHOSReconstructor::GetRecoParamEmc()->SubtractPedestals());
Int_t count = 0 ;
while (decoder.NextDigit()) {
Int_t module = decoder.GetModule() ;