Public Member Functions | Private Attributes | List of all members
om::UTCLabel Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-05-05/OnlineMonitoring/viewer/UTCLabel.h"

Public Member Functions

 UTCLabel ()
 
 ~UTCLabel ()
 
void Draw ()
 
void FEBLabels ()
 
void DCMLabels ()
 
void Clear ()
 

Private Attributes

std::list< TText * > fText
 
std::list< TLine * > fLine
 
daqchannelmap::HardwareDisplayfHwMap
 

Detailed Description

Draw a nicely formatted overlay on UTC plots

Definition at line 13 of file UTCLabel.h.

Constructor & Destructor Documentation

UTCLabel::UTCLabel ( )

Definition at line 10 of file UTCLabel.cxx.

10  :
12 { }
daqchannelmap::HardwareDisplay * fHwMap
Definition: UTCLabel.h:28
UTCLabel::~UTCLabel ( )

Definition at line 31 of file UTCLabel.cxx.

References Clear(), and fHwMap.

31  {
32  this->Clear();
33  if(fHwMap) {delete fHwMap; fHwMap = 0;}
34 }
void Clear()
Definition: UTCLabel.cxx:16
daqchannelmap::HardwareDisplay * fHwMap
Definition: UTCLabel.h:28

Member Function Documentation

void UTCLabel::Clear ( )

Definition at line 16 of file UTCLabel.cxx.

References fLine, fText, make_syst_table_plots::line, and MakeMiniprodValidationCuts::text.

Referenced by DCMLabels(), FEBLabels(), and ~UTCLabel().

17 {
18  std::list<TText*>::const_iterator text (fText.begin());
19  std::list<TText*>::const_iterator textEnd(fText.end());
20  for (;text!=textEnd; ++text) delete *text;
21  fText.clear();
22 
23  std::list<TLine*>::const_iterator line (fLine.begin());
24  std::list<TLine*>::const_iterator lineEnd(fLine.end());
25  for (;line!=lineEnd; ++line) delete *line;
26  fLine.clear();
27 }
std::list< TLine * > fLine
Definition: UTCLabel.h:26
std::list< TText * > fText
Definition: UTCLabel.h:25
void UTCLabel::DCMLabels ( )

Definition at line 87 of file UTCLabel.cxx.

References Clear(), fHwMap, fLine, daqchannelmap::HardwareDisplay::fNdcmSide, daqchannelmap::HardwareDisplay::fNdcmTop, daqchannelmap::HardwareDisplay::fNdiblocks, fText, MECModelEnuComparisons::i, om::GUIModel::Instance(), submit_hadd::l, daqchannelmap::HardwareDisplay::SetupDet(), and confusionMatrixTree::t.

Referenced by om::PlotOptions::MakeLabels().

88 {
89  this->Clear();
90 
91  fHwMap->SetupDet(GUIModel::Instance().Data().fDetector);
92 
93  unsigned int i;
94 
95  unsigned int Ndb = fHwMap->fNdiblocks;
96  unsigned int NdcmPERdb = fHwMap->fNdcmTop+fHwMap->fNdcmSide;
97 
98  TLine* l;
99  for (i=0; i<=Ndb; ++i) {
100  l = new TLine(0, i*NdcmPERdb+1, 24.0, i*NdcmPERdb+1);
101  l->SetLineColor(kBlack);
102  l->SetLineWidth(1);
103 
104  l->SetBit(kCannotPick);
105 
106  fLine.push_back(l);
107  }
108 
109  TText* t;
110  char buff[16];
111 
112  for (i=0; i<Ndb; ++i) {
113  sprintf(buff,"DB%.2d",i+1);
114  t = new TText(-0.03*24,NdcmPERdb*(i+0.5),buff);
115  t->SetTextAlign(32);
116  t->SetTextSize(0.03);
117  t->SetBit(kCannotPick);
118  fText.push_back(t);
119  }
120 }
std::list< TLine * > fLine
Definition: UTCLabel.h:26
unsigned int fNdcmSide
Number of DMC&#39;s per diblock on side of detector.
void Clear()
Definition: UTCLabel.cxx:16
daqchannelmap::HardwareDisplay * fHwMap
Definition: UTCLabel.h:28
unsigned int fNdiblocks
Number of diblocks in detector.
static GUIModel & Instance()
Definition: GUIModel.cxx:11
unsigned int fNdcmTop
Number of DMC&#39;s per diblock on top of detector.
std::list< TText * > fText
Definition: UTCLabel.h:25
void UTCLabel::Draw ( )

Definition at line 38 of file UTCLabel.cxx.

References fLine, fText, make_syst_table_plots::line, and MakeMiniprodValidationCuts::text.

Referenced by om::PlotOptions::MakeLabels().

39 {
40  std::list<TText*>::const_iterator text (fText.begin());
41  std::list<TText*>::const_iterator textEnd(fText.end());
42  for (;text!=textEnd; ++text) (*text)->Draw();
43 
44  std::list<TLine*>::const_iterator line (fLine.begin());
45  std::list<TLine*>::const_iterator lineEnd(fLine.end());
46  for (;line!=lineEnd; ++line) (*line)->Draw();
47 }
std::list< TLine * > fLine
Definition: UTCLabel.h:26
std::list< TText * > fText
Definition: UTCLabel.h:25
void UTCLabel::FEBLabels ( )

Definition at line 51 of file UTCLabel.cxx.

References Clear(), fHwMap, fLine, daqchannelmap::HardwareDisplay::fNdcmSide, daqchannelmap::HardwareDisplay::fNdcmTop, fText, MECModelEnuComparisons::i, om::GUIModel::Instance(), submit_hadd::l, daqchannelmap::HardwareDisplay::SetupDet(), and confusionMatrixTree::t.

Referenced by om::PlotOptions::MakeLabels().

52 {
53  this->Clear();
54 
55  fHwMap->SetupDet(GUIModel::Instance().Data().fDetector);
56 
57  unsigned int i;
58 
59  unsigned int Ndcm = fHwMap->fNdcmTop+fHwMap->fNdcmSide;
60 
61  TLine* l;
62  for (i=0; i<=Ndcm; ++i) {
63  l = new TLine(0, i*64, 24.0, i*64);
64  l->SetLineColor(kBlack);
65  l->SetLineWidth(1);
66 
67  l->SetBit(kCannotPick);
68 
69  fLine.push_back(l);
70  }
71 
72  TText* t;
73  char buff[16];
74 
75  for (i=0; i<Ndcm; ++i) {
76  sprintf(buff,"DCM%.2d",i+1);
77  t = new TText(-0.04*24,64*(i+0.5),buff);
78  t->SetTextAlign(22);
79  t->SetTextSize(0.03);
80  t->SetBit(kCannotPick);
81  fText.push_back(t);
82  }
83 }
std::list< TLine * > fLine
Definition: UTCLabel.h:26
unsigned int fNdcmSide
Number of DMC&#39;s per diblock on side of detector.
void Clear()
Definition: UTCLabel.cxx:16
daqchannelmap::HardwareDisplay * fHwMap
Definition: UTCLabel.h:28
static GUIModel & Instance()
Definition: GUIModel.cxx:11
unsigned int fNdcmTop
Number of DMC&#39;s per diblock on top of detector.
std::list< TText * > fText
Definition: UTCLabel.h:25

Member Data Documentation

daqchannelmap::HardwareDisplay* om::UTCLabel::fHwMap
private

Definition at line 28 of file UTCLabel.h.

Referenced by DCMLabels(), FEBLabels(), and ~UTCLabel().

std::list<TLine*> om::UTCLabel::fLine
private

Definition at line 26 of file UTCLabel.h.

Referenced by Clear(), DCMLabels(), Draw(), and FEBLabels().

std::list<TText*> om::UTCLabel::fText
private

Definition at line 25 of file UTCLabel.h.

Referenced by Clear(), DCMLabels(), Draw(), and FEBLabels().


The documentation for this class was generated from the following files: