AliMUONBlockHeader, AliMUONRawWriter:
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDCalPadStatus.h
CommitLineData
7754cd1f 1#ifndef ALITRDCALPADSTATUS_H
2#define ALITRDCALPADSTATUS_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8///////////////////////////////////////////////////////////////////////////////
9// //
2745a409 10// TRD calibration class for the single pad status //
7754cd1f 11// //
12///////////////////////////////////////////////////////////////////////////////
13
14#include "TNamed.h"
2745a409 15
16class AliTRDCalSingleChamberStatus;
7754cd1f 17
18class AliTRDCalPadStatus : public TNamed {
19
20 public:
21
22 enum { kNplan = 6, kNcham = 5, kNsect = 18, kNdet = 540 };
e4db522f 23 enum { kMasked = 2, kPadBridgedLeft = 4, kPadBridgedRight = 8, kReadSecond = 16 };
7754cd1f 24
25 AliTRDCalPadStatus();
26 AliTRDCalPadStatus(const Text_t* name, const Text_t* title);
27 AliTRDCalPadStatus(const AliTRDCalPadStatus &c);
2745a409 28 virtual ~AliTRDCalPadStatus();
7754cd1f 29 AliTRDCalPadStatus &operator=(const AliTRDCalPadStatus &c);
30
2745a409 31 virtual void Copy(TObject &c) const;
7754cd1f 32
2745a409 33 Bool_t IsMasked(Int_t d, Int_t col, Int_t row) const
34 { return CheckStatus(d, col, row, kMasked); };
35 Bool_t IsBridgedLeft(Int_t d, Int_t col, Int_t row) const
36 { return CheckStatus(d, col, row, kPadBridgedLeft); };
37 Bool_t IsBridgedRight(Int_t d, Int_t col, Int_t row) const
38 { return CheckStatus(d, col, row, kPadBridgedRight); };
e4db522f 39 Bool_t IsReadSecond(Int_t d, Int_t col, Int_t row) const
40 { return CheckStatus(d, col, row, kReadSecond); };
2745a409 41 Bool_t CheckStatus(Int_t d, Int_t col, Int_t row, Int_t bitMask) const;
7754cd1f 42
2745a409 43 AliTRDCalSingleChamberStatus *GetCalROC(Int_t d) const { return fROC[d]; };
44 AliTRDCalSingleChamberStatus *GetCalROC(Int_t p, Int_t c, Int_t s) const;
7754cd1f 45
3a0f6479 46 // Plot functions
47 TH1F *MakeHisto1D();
48 TH2F *MakeHisto2DSmPl(Int_t sm, Int_t pl);
49 void PlotHistos2DSm(Int_t sm, const Char_t *name);
50
7754cd1f 51 protected:
52
53 AliTRDCalSingleChamberStatus *fROC[kNdet]; // Array of ROC objects which contain the values per pad
54
2745a409 55 ClassDef(AliTRDCalPadStatus,1) // TRD calibration class for the single pad status
7754cd1f 56
57};
7754cd1f 58
59#endif