CbmRoot
Loading...
Searching...
No Matches
CbmMuchPadRectangular.cxx
Go to the documentation of this file.
1/* Copyright (C) 2007-2020 Petersburg Nuclear Physics Institute named by B.P.Konstantinov of National Research Centre "Kurchatov Institute", Gatchina
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Evgeny Kryshen [committer] */
4
5// -------------------------------------------------------------------------
6// ----- CbmMuchPadRectangular source file -----
7// ----- Created 26/10/07 by E. Kryshen -----
8// -------------------------------------------------------------------------
9
11
12#include <TColor.h> // for TColor
13#include <TPave.h> // for TPave
14
15// ----- Default constructor ----------------------------------------------
17// -------------------------------------------------------------------------
18
19// ----- Standard constructor --------------------------------------------
20CbmMuchPadRectangular::CbmMuchPadRectangular(Int_t address, Double_t x, Double_t y, Double_t lx, 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{
24 SetFillColor(kYellow);
25 SetLineWidth(1);
26 SetLineColor(34);
27}
28// -------------------------------------------------------------------------
29
30//
32//void CbmMuchPadRectangular::Reset(){
33// fDigiIndex = -1;
34// SetFillColor(kYellow);
35//}
37//
38//
39// -------------------------------------------------------------------------
40void CbmMuchPadRectangular::SetFired(Int_t iDigi, Int_t ADCcharge, Int_t nADCChannels)
41{
42 fDigiIndex = iDigi;
43 if (fDigiIndex >= 0) SetFillColor(TColor::GetColor(nADCChannels - 1 - ADCcharge, nADCChannels - 1 - ADCcharge, 245));
44 else
45 SetFillColor(kYellow);
46}
47// -------------------------------------------------------------------------
48
49// -------------------------------------------------------------------------
51{
52 Draw("f");
53 Draw();
54}
55// -------------------------------------------------------------------------
56//
57//
59//TString CbmMuchPadRectangular::GetInfo(){
60// return Form("Channel:%i fired:%i digiId:%i",
61// CbmMuchModuleGem::GetChannelIndex(fChannelId),fDigiIndex>=0,fDigiIndex);
62//}
64
ClassImp(CbmConverterManager)
int Int_t
void SetFired(Int_t iDigi, Int_t ADCcharge, Int_t nADCChannels=256)
Int_t fDigiIndex
Definition CbmMuchPad.h:57