//____________________________________________________________________________
AliMUONQADataMakerSim::AliMUONQADataMakerSim() :
- AliQADataMakerSim(AliQA::GetDetName(AliQA::kMUON), "MUON Quality Assurance Data Maker"),
+ AliQADataMakerSim(AliQAv1::GetDetName(AliQAv1::kMUON), "MUON Quality Assurance Data Maker"),
fHitStore(0x0),
fDigitStore(0x0)
{
- /// ctor
- AliDebug(1,"");
+ /// Default constructor
+
+ AliDebug(AliQAv1::GetQADebugLevel(),"");
}
//____________________________________________________________________________
fHitStore(0x0),
fDigitStore(0x0)
{
- AliDebug(1,"");
+ /// Copy constructor
+
+ AliDebug(AliQAv1::GetQADebugLevel(),"");
- ///copy ctor
if ( qadm.fHitStore )
{
fHitStore = static_cast<AliMUONVHitStore*>(qadm.fHitStore->Clone());
//__________________________________________________________________
AliMUONQADataMakerSim& AliMUONQADataMakerSim::operator = (const AliMUONQADataMakerSim& qadm )
{
- AliDebug(1,"");
+ /// Assignment operator
+
+ AliDebug(AliQAv1::GetQADebugLevel(),"");
- /// Equal operator.
this->~AliMUONQADataMakerSim();
new(this) AliMUONQADataMakerSim(qadm);
return *this;
//__________________________________________________________________
AliMUONQADataMakerSim::~AliMUONQADataMakerSim()
{
- AliDebug(1,"");
+ /// Destructor
+
+ AliDebug(AliQAv1::GetQADebugLevel(),"");
- /// dtor
delete fHitStore;
delete fDigitStore;
}
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;
}
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);
}
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);
}
void AliMUONQADataMakerSim::MakeHits(TTree* hitsTree)
{
/// makes data from Hits
+
if (!fHitStore)
fHitStore = AliMUONVHitStore::Create(*hitsTree);
fHitStore->Connect(*hitsTree, false);
void AliMUONQADataMakerSim::MakeSDigits(TTree* sdigitsTree)
{
/// makes data from SDigits
+
if (!fDigitStore)
fDigitStore = AliMUONVDigitStore::Create(*sdigitsTree);
fDigitStore->Connect(*sdigitsTree, false);
void AliMUONQADataMakerSim::MakeDigits(TTree* digitsTree)
{
/// makes data from Digits
+
if (!fDigitStore)
fDigitStore = AliMUONVDigitStore::Create(*digitsTree);
fDigitStore->Connect(*digitsTree, false);
}
//____________________________________________________________________________
-void AliMUONQADataMakerSim::EndOfDetectorCycle(AliQA::TASKINDEX_t task, TObjArray* list)
+void AliMUONQADataMakerSim::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArray** list)
{
///Detector specific actions at end of cycle
// do the QA checking
- AliQAChecker::Instance()->Run(AliQA::kMUON, task, list) ;
+ AliQAChecker::Instance()->Run(AliQAv1::kMUON, task, list) ;
}