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
23 class AliMUONCheckItem;
24 class AliMUONVCalibParam;
26 class AliMUON2DStoreValidator : public TObject
29 AliMUON2DStoreValidator();
30 virtual ~AliMUON2DStoreValidator();
32 TObjArray* Validate(const AliMUONVStore& store, Float_t invalidFloatValue, AliMUONVStore* config=0x0);
34 TObjArray* Validate(const AliMUONVStore& store, AliMUONVStore* config=0x0);
36 TObjArray* Validate(const AliMUONVStore& store,
37 Bool_t (*check)(const AliMUONVCalibParam&,Int_t),
38 AliMUONVStore* config=0x0);
41 AliMUONVStore* GetStatus() const { return fStatus; }
43 /// Reports what is missing, trying to be as concise as possible.
44 void Report(TList& lines) const;
46 static void Report(TList& lines, const TObjArray& chambers);
50 AliMUON2DStoreValidator(const AliMUON2DStoreValidator&);
52 AliMUON2DStoreValidator& operator=(const AliMUON2DStoreValidator&);
54 void AddMissingChannel(Int_t detElemId, Int_t manuId, Int_t manuChannel);
56 void AddMissingManu(Int_t detElemId, Int_t manuId);
58 AliMUONCheckItem* GetChamber(Int_t chamberID);
59 AliMUONCheckItem* GetDE(Int_t detElemId);
60 AliMUONCheckItem* GetManu(Int_t detElemId, Int_t manuId);
62 static void ReportChamber(TList& list, const AliMUONCheckItem& chamber);
63 static void ReportDE(TList& list, const AliMUONCheckItem& de);
64 static void ReportManu(TList& list, const AliMUONCheckItem& manu);
67 TObjArray* fChambers; //!< Array of AliMUONCheckItem.
68 AliMUONVStore* fStatus; //!< Statuses
70 ClassDef(AliMUON2DStoreValidator,3) // Validator of 2DStore