1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 ///////////////////////////////////////////////////////////////////////////////
20 // TRD calibration class for status of chambers //
22 ///////////////////////////////////////////////////////////////////////////////
25 #include "AliTRDCalChamberStatus.h"
27 ClassImp(AliTRDCalChamberStatus)
29 //_____________________________________________________________________________
30 AliTRDCalChamberStatus::AliTRDCalChamberStatus()
34 // AliTRDCalChamberStatus default constructor
37 for (Int_t idet = 0; idet < kNdet; idet++) {
43 //_____________________________________________________________________________
44 AliTRDCalChamberStatus::AliTRDCalChamberStatus(const Text_t *name, const Text_t *title)
48 // AliTRDCalChamberStatus constructor
51 for (Int_t idet = 0; idet < kNdet; idet++) {
56 //_____________________________________________________________________________
57 TH2D* AliTRDCalChamberStatus::Plot(Int_t sm, Int_t rphi)
60 // Plot chamber status for supermodule and halfchamberside
61 // as a function of layer and stack
64 TH2D *h2 = new TH2D(Form("sm_%d_rphi_%d",sm,rphi),Form("sm_%d_rphi_%d",sm,rphi),5,0.0,5.0,6,0.0,6.0);
66 h2->SetXTitle("stack");
67 h2->SetYTitle("layer");
70 Int_t end = (sm+1)*30;
72 for(Int_t i=start; i<end; i++) {
74 Int_t stack = static_cast<int>((i-start)/6.);
75 Int_t status = GetStatus(i);
77 if(status!=4) h2->Fill(stack,layer,status);
80 if(status!=3) h2->Fill(stack,layer,status);
88 //_____________________________________________________________________________
89 TH2D* AliTRDCalChamberStatus::Plot(Int_t sm)
92 // Plot chamber status for supermodule and halfchamberside
93 // as a function of layer and stack
96 TH2D *h2 = new TH2D(Form("sm_%d",sm),Form("sm_%d",sm),5,0.0,5.0,6,0.0,6.0);
98 h2->SetXTitle("stack");
99 h2->SetYTitle("layer");
102 Int_t end = (sm+1)*30;
104 for(Int_t i=start; i<end; i++) {
106 Int_t stack = static_cast<int>((i-start)/6.);
107 Int_t status = GetStatus(i);
108 h2->Fill(stack,layer,status);