CbmRoot
CbmMuchPadRectangular.cxx
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmMuchPadRectangular source file -----
3 // ----- Created 26/10/07 by E. Kryshen -----
4 // -------------------------------------------------------------------------
5 
7 
8 #include <TColor.h> // for TColor
9 #include <TPave.h> // for TPave
10 
11 // ----- Default constructor ----------------------------------------------
13 // -------------------------------------------------------------------------
14 
15 // ----- Standard constructor --------------------------------------------
17  Double_t x,
18  Double_t y,
19  Double_t lx,
20  Double_t ly)
21  : CbmMuchPad(address, x, y, lx, ly)
22  , TPave(x - lx / 2, y - ly / 2, x + lx / 2, y + ly / 2, 1) {
23  SetFillColor(kYellow);
24  SetLineWidth(1);
25  SetLineColor(34);
26 }
27 // -------------------------------------------------------------------------
28 
29 //
31 //void CbmMuchPadRectangular::Reset(){
32 // fDigiIndex = -1;
33 // SetFillColor(kYellow);
34 //}
36 //
37 //
38 // -------------------------------------------------------------------------
40  Int_t ADCcharge,
41  Int_t nADCChannels) {
42  fDigiIndex = iDigi;
43  if (fDigiIndex >= 0)
44  SetFillColor(TColor::GetColor(
45  nADCChannels - 1 - ADCcharge, nADCChannels - 1 - ADCcharge, 245));
46  else
47  SetFillColor(kYellow);
48 }
49 // -------------------------------------------------------------------------
50 
51 // -------------------------------------------------------------------------
53  Draw("f");
54  Draw();
55 }
56 // -------------------------------------------------------------------------
57 //
58 //
60 //TString CbmMuchPadRectangular::GetInfo(){
61 // return Form("Channel:%i fired:%i digiId:%i",
62 // CbmMuchModuleGem::GetChannelIndex(fChannelId),fDigiIndex>=0,fDigiIndex);
63 //}
65 
CbmMuchPadRectangular::CbmMuchPadRectangular
CbmMuchPadRectangular()
Definition: CbmMuchPadRectangular.cxx:12
CbmMuchPadRectangular::SetFired
void SetFired(Int_t iDigi, Int_t ADCcharge, Int_t nADCChannels=256)
Definition: CbmMuchPadRectangular.cxx:39
ClassImp
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Definition: CbmConverterManager.cxx:12
CbmMuchPad
Definition: CbmMuchPad.h:21
CbmMuchPadRectangular.h
x
Double_t x
Definition: CbmMvdSensorDigiToHitTask.cxx:68
CbmMuchPadRectangular
Definition: CbmMuchPadRectangular.h:21
y
Double_t y
Definition: CbmMvdSensorDigiToHitTask.cxx:68
CbmMuchPadRectangular::DrawPad
void DrawPad()
Definition: CbmMuchPadRectangular.cxx:52
CbmMuchPad::fDigiIndex
Int_t fDigiIndex
Definition: CbmMuchPad.h:59