X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=FMD%2FAliFMDQADataMakerRec.h;h=cbdd6d5bc131bbdcf30d7f316b7133b7d33028ff;hb=8b109102929adec97fab65c2e5a56f739d767d97;hp=d1f716049a5a57126d054f092846af512c0bb8fa;hpb=c9dd1c4db59e91d9d26466958c3aec725805de6b;p=u%2Fmrichter%2FAliRoot.git diff --git a/FMD/AliFMDQADataMakerRec.h b/FMD/AliFMDQADataMakerRec.h index d1f716049a5..cbdd6d5bc13 100644 --- a/FMD/AliFMDQADataMakerRec.h +++ b/FMD/AliFMDQADataMakerRec.h @@ -6,11 +6,11 @@ * See cxx source for full Copyright notice */ #include "AliQADataMakerRec.h" - +#include "TClonesArray.h" class TH1F; class TH1I; class TList; - +class AliFMDReconstructor; //_____________________________________________________________________ // This class implements the AliQADataMakerRec for the FMD. Some @@ -18,29 +18,117 @@ class TList; // Author : Hans Hjersing Dalsgaard, hans.dalsgaard@cern.ch //_____________________________________________________________________ -class AliFMDQADataMakerRec: public AliQADataMakerRec { - - public: +class AliFMDQADataMakerRec: public AliQADataMakerRec +{ +public: + enum { + kResetBit = BIT(23) + }; + /** + * Constructor + */ AliFMDQADataMakerRec(); - AliFMDQADataMakerRec(const AliFMDQADataMakerRec& qadm) ; - virtual ~AliFMDQADataMakerRec() {} + /** + * Copy constructor + * + * @param qadm What to copy from + */ + AliFMDQADataMakerRec(const AliFMDQADataMakerRec& qadm); + /** + * Assignment operator + * + * @param qadm What to assign from + * + * @return Reference to this + */ + AliFMDQADataMakerRec& operator = (const AliFMDQADataMakerRec& qadm) ; + /** + * Destrcutor + */ + virtual ~AliFMDQADataMakerRec(); + /** + * Get the half-ring index + * + * @param det Detector + * @param ring Ring + * @param board Board number + * @param monitor Monitor + * + * @return Half ring index + */ + static Int_t GetHalfringIndex(UShort_t det, Char_t ring, + UShort_t board, UShort_t monitor = 0); + static void GetHalfringFromIndex(Int_t idx, + UShort_t& det, + Char_t& ring, + UShort_t& board, + UShort_t& monitor); +private: + static TH1* MakeADCHist(UShort_t d=0, Char_t r='\0', Short_t b=-1); + static TH1* MakeELossHist(UShort_t d=0, Char_t r='\0', Short_t b=-1); - private: - virtual void EndOfDetectorCycle(AliQA::TASKINDEX, TObjArray * list); + /** + * Called at end of monitor cycle + * + * @param TASKINDEX_t Task + * @param list Output list + */ + virtual void EndOfDetectorCycle(AliQAv1::TASKINDEX_t, TObjArray ** list); + /** + * Intialize for ESD + */ virtual void InitESDs(); + /** + * Intialize for Digits + */ virtual void InitDigits(); + /** + * Intialize for RecPoints + */ virtual void InitRecPoints(); + /** + * Initialise for raw + */ virtual void InitRaws(); + /** + * Analyse ESD event + * + * @param esd ESD event + */ virtual void MakeESDs(AliESDEvent * esd); - virtual void MakeDigits(TClonesArray * digits); + /** + * Analyse digits + */ + virtual void MakeDigits(); + /** + * Analyse digits + * + * @param digitTree Tree of digits + */ virtual void MakeDigits(TTree * digitTree); + /** + * Analyse rec points + * + * @param recpoTree Tree of RecPoints + */ virtual void MakeRecPoints(TTree * recpoTree); + /** + * Analyse raw + * + * @param rawReader Raw reader + */ virtual void MakeRaws(AliRawReader* rawReader); + /** + * Called at start of a cycle + * + */ virtual void StartOfDetectorCycle(); + TClonesArray fRecPointsArray; // Rec points + AliFMDReconstructor* fReconstructor; + Bool_t fUseReconstructor; ClassDef(AliFMDQADataMakerRec,0) // description - - }; +}; #endif // AliFMDQADataMakerRec_H //____________________________________________________________________