ClassImp(AliTRDCalMCMStatus)
//_____________________________________________________________________________
-AliTRDCalMCMStatus::AliTRDCalMCMStatus():TNamed()
+AliTRDCalMCMStatus::AliTRDCalMCMStatus()
+ :TNamed()
{
//
// AliTRDCalMCMStatus default constructor
//_____________________________________________________________________________
AliTRDCalMCMStatus::AliTRDCalMCMStatus(const Text_t *name, const Text_t *title)
- :TNamed(name,title)
+ :TNamed(name,title)
{
//
// AliTRDCalMCMStatus constructor
}
//_____________________________________________________________________________
-AliTRDCalMCMStatus::AliTRDCalMCMStatus(const AliTRDCalMCMStatus &c):TNamed(c)
+AliTRDCalMCMStatus::AliTRDCalMCMStatus(const AliTRDCalMCMStatus &c)
+ :TNamed(c)
{
//
// AliTRDCalMCMStatus copy constructor
// Assignment operator
//
- if (this != &c) ((AliTRDCalMCMStatus &) c).Copy(*this);
+ if (this != &c) {
+ ((AliTRDCalMCMStatus &) c).Copy(*this);
+ }
+
return *this;
}
// Checks the MCM status byte
//
+ // To translate pad column number into MCM number
+ Int_t mcm = ((Int_t) col / 18);
+
+ AliTRDCalSingleChamberStatus* roc = GetCalROC(d);
+
+ if (!roc) {
+ return kFALSE;
+ }
+ else {
+ return (roc->GetStatus(mcm,row) & bitMask) ? kTRUE : kFALSE;
+ }
+
+}
+
+//_____________________________________________________________________________
+Char_t AliTRDCalMCMStatus::GetStatus(Int_t d, Int_t col, Int_t row) const
+{
+ //
+ // Gets the MCM status byte
+ //
+
+ // To translate pad column number into MCM number
+ Int_t mcm = ((Int_t) col / 18);
+
AliTRDCalSingleChamberStatus* roc = GetCalROC(d);
if (!roc) {
return kFALSE;
}
else {
- return (roc->GetStatus(col, row) & bitMask) ? kTRUE : kFALSE;
+ return roc->GetStatus(mcm,row);
}
}
//_____________________________________________________________________________
-AliTRDCalSingleChamberStatus* AliTRDCalMCMStatus::GetCalROC(Int_t p, Int_t c, Int_t s) const
+AliTRDCalSingleChamberStatus *AliTRDCalMCMStatus::GetCalROC(Int_t p, Int_t c, Int_t s) const
{
//
// Returns the readout chamber of this MCM