1 #ifndef ALIMUON2DSTOREVALIDATOR_H
2 #define ALIMUON2DSTOREVALIDATOR_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUON2DStoreValidator
11 /// \brief Determine which channels, manus, DEs, stations are missing
14 /// \author Laurent Aphecetche
20 class AliMUONV2DStore;
23 class AliMUONCheckItem;
24 class AliMUONVCalibParam;
26 class AliMUON2DStoreValidator : public TObject
29 AliMUON2DStoreValidator();
30 virtual ~AliMUON2DStoreValidator();
32 TObjArray* Validate(const AliMUONV2DStore& store, Float_t invalidFloatValue);
34 TObjArray* Validate(const AliMUONV2DStore& store,
35 Bool_t (*check)(const AliMUONVCalibParam&,Int_t));
37 AliMUONV2DStore* GetStatus() const { return fStatus; }
39 void Report(TList& lines) const;
41 static void Report(TList& lines, const TObjArray& chambers);
45 AliMUON2DStoreValidator(const AliMUON2DStoreValidator&);
46 AliMUON2DStoreValidator& operator=(const AliMUON2DStoreValidator&);
48 void AddMissingChannel(Int_t detElemId, Int_t manuId, Int_t manuChannel);
50 void AddMissingManu(Int_t detElemId, Int_t manuId);
52 AliMUONCheckItem* GetChamber(Int_t chamberID);
53 AliMUONCheckItem* GetDE(Int_t detElemId);
54 AliMUONCheckItem* GetManu(Int_t detElemId, Int_t manuId);
56 static void ReportChamber(TList& list, AliMUONCheckItem& chamber);
57 static void ReportDE(TList& list, AliMUONCheckItem& de);
58 static void ReportManu(TList& list, AliMUONCheckItem& manu);
61 TList* fManuList; //! List of (DE,manuID) pairs.
62 TObjArray* fChambers; //! Array of AliMUONCheckItem.
63 AliMUONV2DStore* fStatus; //! Statuses
65 ClassDef(AliMUON2DStoreValidator,2) // Validator of 2DStore