/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ // $Id$ // --- MUON header files --- #include "AliMUONQADataMakerRec.h" //----------------------------------------------------------------------------- /// \class AliMUONQADataMakerRec /// /// MUON base class for quality assurance data (histo) maker /// /// It is now only a steering class for the two subclasses AliMUONTrackerQADataMakerRec /// and AliMUONTriggerQADataMakerRec /// /// \author C. Finck, D. Stocco, L. Aphecetche, A. Blanc #include "AliMUONTrackerQADataMakerRec.h" #include "AliMUONTriggerQADataMakerRec.h" #include "AliQAChecker.h" #include "AliRawReader.h" #include "AliRawEventHeaderBase.h" /// \cond CLASSIMP ClassImp(AliMUONQADataMakerRec) /// \endcond //____________________________________________________________________________ AliMUONQADataMakerRec::AliMUONQADataMakerRec(Bool_t tracker, Bool_t trigger) : AliQADataMakerRec(AliQAv1::GetDetName(AliQAv1::kMUON), "MUON Quality Assurance Data Maker"), fTracker(tracker ? new AliMUONTrackerQADataMakerRec(this) : 0x0), fTrigger(trigger ? new AliMUONTriggerQADataMakerRec(this) : 0x0) { /// ctor } //__________________________________________________________________ AliMUONQADataMakerRec::~AliMUONQADataMakerRec() { /// dtor delete fTracker; delete fTrigger; } //____________________________________________________________________________ void AliMUONQADataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArray** list) { /// Detector specific actions at end of cycle for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) { if (! IsValidEventSpecie(specie, list) ) continue; SetEventSpecie(AliRecoParam::ConvertIndex(specie)); if ( task == AliQAv1::kRAWS ) { if (fTracker) fTracker->EndOfDetectorCycleRaws(specie,list); if (fTrigger) fTrigger->EndOfDetectorCycleRaws(specie,list); } if ( task == AliQAv1::kRECPOINTS ) { // normalize recpoints histograms if (fTracker) fTracker->EndOfDetectorCycleRecPoints(specie,list); if (fTrigger) fTrigger->EndOfDetectorCycleRecPoints(specie,list); } if ( task == AliQAv1::kESDS ) { // normalize esds histograms if (fTracker) fTracker->EndOfDetectorCycleESDs(specie,list); if (fTrigger) fTrigger->EndOfDetectorCycleESDs(specie,list); } } // loop on specie // do the QA checking AliQAChecker::Instance()->Run(AliQAv1::kMUON,task,list,const_cast(GetRecoParam())); } //____________________________________________________________________________ void AliMUONQADataMakerRec::InitRaws() { /// create Raws histograms in Raws subdir if ( fTracker ) fTracker->InitRaws(); if ( fTrigger ) fTrigger->InitRaws(); } //__________________________________________________________________ void AliMUONQADataMakerRec::InitDigits() { /// Initialized Digits spectra if ( fTracker ) fTracker->InitDigits(); if ( fTrigger ) fTrigger->InitDigits(); } //____________________________________________________________________________ void AliMUONQADataMakerRec::InitRecPoints() { /// create Reconstructed Points histograms in RecPoints subdir if ( fTracker ) fTracker->InitRecPoints(); if ( fTrigger ) fTrigger->InitRecPoints(); } //____________________________________________________________________________ void AliMUONQADataMakerRec::InitESDs() { ///create ESDs histograms in ESDs subdir if ( fTracker ) fTracker->InitESDs(); if ( fTrigger ) fTrigger->InitESDs(); } //____________________________________________________________________________ void AliMUONQADataMakerRec::MakeRaws(AliRawReader* rawReader) { /// make QA for rawdata // Check id histograms already created for this Event Specie if ( fTracker && rawReader->GetType() == AliRawEventHeaderBase::kPhysicsEvent ) { rawReader->Reset(); fTracker->MakeRaws(rawReader); } if ( fTrigger && (rawReader->GetType() == AliRawEventHeaderBase::kPhysicsEvent || rawReader->GetType() == AliRawEventHeaderBase::kCalibrationEvent ) ) { rawReader->Reset(); fTrigger->MakeRaws(rawReader); } } //__________________________________________________________________ void AliMUONQADataMakerRec::MakeDigits() { /// makes data from Digits AliError("Not implemented"); } //__________________________________________________________________ void AliMUONQADataMakerRec::MakeDigits(TTree* digitsTree) { /// makes data from Digits // Do nothing in case of calibration event if ( GetRecoParam()->GetEventSpecie() == AliRecoParam::kCalib ) return; if ( fTracker ) fTracker->MakeDigits(digitsTree); if ( fTrigger ) fTrigger->MakeDigits(digitsTree); } //____________________________________________________________________________ void AliMUONQADataMakerRec::MakeRecPoints(TTree* clustersTree) { /// Fill histograms from treeR // Do nothing in case of calibration event if ( GetRecoParam()->GetEventSpecie() == AliRecoParam::kCalib ) return; if ( fTracker ) fTracker->MakeRecPoints(clustersTree); if ( fTrigger ) fTrigger->MakeRecPoints(clustersTree); } //____________________________________________________________________________ void AliMUONQADataMakerRec::MakeESDs(AliESDEvent* esd) { /// make QA data from ESDs // Do nothing in case of calibration event if ( GetRecoParam()->GetEventSpecie() == AliRecoParam::kCalib ) return; if ( fTracker ) fTracker->MakeESDs(esd); if ( fTrigger ) fTrigger->MakeESDs(esd); } //____________________________________________________________________________ void AliMUONQADataMakerRec::StartOfDetectorCycle() { /// Detector specific actions at start of cycle }