]>
Commit | Line | Data |
---|---|---|
ea199e33 | 1 | #ifndef ALIMUON2DSTOREVALIDATOR_H |
2 | #define ALIMUON2DSTOREVALIDATOR_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | // $Id$ | |
8 | ||
be0c6f1f | 9 | /// \ingroup calib |
ea199e33 | 10 | /// \class AliMUON2DStoreValidator |
11 | /// \brief Determine which channels, manus, DEs, stations are missing | |
12 | /// from a 2DStore. | |
13 | /// | |
78649106 | 14 | // Author Laurent Aphecetche |
ea199e33 | 15 | |
16 | #ifndef ROOT_TObject | |
17 | # include "TObject.h" | |
18 | #endif | |
19 | ||
a0eca509 | 20 | class AliMUONVStore; |
ea199e33 | 21 | class TList; |
22 | class TObjArray; | |
23 | class AliMUONCheckItem; | |
9b955acc | 24 | class AliMUONVCalibParam; |
ea199e33 | 25 | |
26 | class AliMUON2DStoreValidator : public TObject | |
27 | { | |
28 | public: | |
29 | AliMUON2DStoreValidator(); | |
30 | virtual ~AliMUON2DStoreValidator(); | |
31 | ||
a0eca509 | 32 | TObjArray* Validate(const AliMUONVStore& store, Float_t invalidFloatValue); |
ea199e33 | 33 | |
a0eca509 | 34 | TObjArray* Validate(const AliMUONVStore& store); |
044b7e8a | 35 | |
a0eca509 | 36 | TObjArray* Validate(const AliMUONVStore& store, |
9b955acc | 37 | Bool_t (*check)(const AliMUONVCalibParam&,Int_t)); |
38 | ||
71a2d3aa | 39 | /// Return statuses |
a0eca509 | 40 | AliMUONVStore* GetStatus() const { return fStatus; } |
9b955acc | 41 | |
c4ee792d | 42 | /// Reports what is missing, trying to be as concise as possible. |
9b955acc | 43 | void Report(TList& lines) const; |
44 | ||
45 | static void Report(TList& lines, const TObjArray& chambers); | |
ea199e33 | 46 | |
47 | private: | |
c4ee792d | 48 | /// Not implemented |
ea199e33 | 49 | AliMUON2DStoreValidator(const AliMUON2DStoreValidator&); |
c4ee792d | 50 | /// Not implemented |
ea199e33 | 51 | AliMUON2DStoreValidator& operator=(const AliMUON2DStoreValidator&); |
52 | ||
53 | void AddMissingChannel(Int_t detElemId, Int_t manuId, Int_t manuChannel); | |
54 | ||
55 | void AddMissingManu(Int_t detElemId, Int_t manuId); | |
56 | ||
57 | AliMUONCheckItem* GetChamber(Int_t chamberID); | |
58 | AliMUONCheckItem* GetDE(Int_t detElemId); | |
59 | AliMUONCheckItem* GetManu(Int_t detElemId, Int_t manuId); | |
60 | ||
9b955acc | 61 | static void ReportChamber(TList& list, AliMUONCheckItem& chamber); |
62 | static void ReportDE(TList& list, AliMUONCheckItem& de); | |
63 | static void ReportManu(TList& list, AliMUONCheckItem& manu); | |
ea199e33 | 64 | |
65 | private: | |
c4ee792d | 66 | TObjArray* fChambers; //!< Array of AliMUONCheckItem. |
a0eca509 | 67 | AliMUONVStore* fStatus; //!< Statuses |
ea199e33 | 68 | |
8971f761 | 69 | ClassDef(AliMUON2DStoreValidator,3) // Validator of 2DStore |
ea199e33 | 70 | }; |
71 | ||
72 | #endif |