Public Member Functions | Public Attributes | Private Attributes | List of all members
gar::evd::ColorDrawingOptions Class Reference

#include <ColorDrawingOptions.h>

Inheritance diagram for gar::evd::ColorDrawingOptions:

Public Member Functions

 ColorDrawingOptions (fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
 
 ~ColorDrawingOptions ()
 
void reconfigure (fhicl::ParameterSet const &pset)
 
evdb::ColorScale const & RawQ () const
 
evdb::ColorScale const & CalQ () const
 
evdb::ColorScale const & RawT () const
 
evdb::ColorScale const & CalT () const
 

Public Attributes

int fColorOrGray
 0 = color, 1 = gray More...
 
int fRawDiv
 number of divisions in raw More...
 
int fRecoDiv
 number of divisions in raw More...
 
double fRawQLow
 low edge of ADC values for drawing raw digits More...
 
double fRawQHigh
 high edge of ADC values for drawing raw digits More...
 
double fRecoQLow
 low edge of ADC values for drawing raw digits More...
 
double fRecoQHigh
 high edge of ADC values for drawing raw digits More...
 

Private Attributes

evdb::ColorScale fColorScaleRaw
 
evdb::ColorScale fGrayScaleRaw
 
evdb::ColorScale fColorScaleReco
 
evdb::ColorScale fGrayScaleReco
 

Detailed Description

Definition at line 20 of file ColorDrawingOptions.h.

Constructor & Destructor Documentation

gar::evd::ColorDrawingOptions::ColorDrawingOptions ( fhicl::ParameterSet const &  pset,
art::ActivityRegistry reg 
)
explicit

Definition at line 21 of file ColorDrawingOptions_service.cc.

24  : evdb::Reconfigurable{pset}
25  , fColorOrGray (pset.get< int >("ColorOrGrayScale"))
26  , fRawDiv (pset.get< int >("RawDiv") )
27  , fRecoDiv (pset.get< int >("RecoDiv") )
28  , fRawQLow (pset.get< double >("RawQLow") )
29  , fRawQHigh (pset.get< double >("RawQHigh") )
30  , fRecoQLow (pset.get< double >("RecoQLow") )
31  , fRecoQHigh (pset.get< double >("RecoQHigh") )
32  , fColorScaleRaw(evdb::ColorScale(fRawQLow, fRawQHigh,
33  evdb::kBlueToRedII, evdb::kLinear,
34  fRawDiv,
35  285.0, 135.0, // angle in the color wheel
36  0.65, 0.25)) // intensity from light to dark,
37  // starting with low color wheel value
38  , fGrayScaleRaw(evdb::ColorScale(fRawQLow, fRawQHigh,
39  evdb::kLinGray, evdb::kLinear,
40  fRawDiv,
41  270.0, 0.0, // angle in the color wheel
42  0.5, 0.5)) // intensity from light to dark,
43  // starting with low color wheel value
44  , fColorScaleReco(evdb::ColorScale(fRecoQLow, fRecoQHigh,
45  evdb::kBlueToRedII, evdb::kLinear,
46  fRecoDiv,
47  285.0, 135.0,
48  0.65, 0.25))
49  , fGrayScaleReco(evdb::ColorScale(fRecoQLow, fRecoQHigh,
50  evdb::kLinGray, evdb::kLinear,
51  fRecoDiv,
52  270.0, 0.0,
53  0.5, 0.5))
54  {
55  return;
56  }
double fRecoQHigh
high edge of ADC values for drawing raw digits
double fRawQLow
low edge of ADC values for drawing raw digits
int fRawDiv
number of divisions in raw
int fColorOrGray
0 = color, 1 = gray
double fRawQHigh
high edge of ADC values for drawing raw digits
double fRecoQLow
low edge of ADC values for drawing raw digits
int fRecoDiv
number of divisions in raw
gar::evd::ColorDrawingOptions::~ColorDrawingOptions ( )

Definition at line 59 of file ColorDrawingOptions_service.cc.

60  {
61  }

Member Function Documentation

const evdb::ColorScale & gar::evd::ColorDrawingOptions::CalQ ( ) const

Definition at line 112 of file ColorDrawingOptions_service.cc.

113  {
114  if(fColorOrGray > 0) return fGrayScaleReco;
115 
116  return fColorScaleReco;
117  }
int fColorOrGray
0 = color, 1 = gray
const evdb::ColorScale & gar::evd::ColorDrawingOptions::CalT ( ) const

Definition at line 128 of file ColorDrawingOptions_service.cc.

129  {
130  if(fColorOrGray > 0) return fGrayScaleReco;
131 
132  return fColorScaleReco;
133  }
int fColorOrGray
0 = color, 1 = gray
const evdb::ColorScale & gar::evd::ColorDrawingOptions::RawQ ( ) const

Definition at line 104 of file ColorDrawingOptions_service.cc.

105  {
106  if(fColorOrGray > 0) return fGrayScaleRaw;
107 
108  return fColorScaleRaw;
109  }
int fColorOrGray
0 = color, 1 = gray
const evdb::ColorScale & gar::evd::ColorDrawingOptions::RawT ( ) const

Definition at line 120 of file ColorDrawingOptions_service.cc.

121  {
122  if(fColorOrGray > 0) return fGrayScaleRaw;
123 
124  return fColorScaleRaw;
125  }
int fColorOrGray
0 = color, 1 = gray
void gar::evd::ColorDrawingOptions::reconfigure ( fhicl::ParameterSet const &  pset)

Definition at line 64 of file ColorDrawingOptions_service.cc.

65  {
66  fColorOrGray = pset.get< int >("ColorOrGrayScale");
67  fRawDiv = pset.get< int >("RawDiv");
68  fRecoDiv = pset.get< int >("RecoDiv");
69  fRawQLow = pset.get< double >("RawQLow");
70  fRawQHigh = pset.get< double >("RawQHigh");
71  fRecoQLow = pset.get< double >("RecoQLow");
72  fRecoQHigh = pset.get< double >("RecoQHigh");
73 
74  fColorScaleRaw = evdb::ColorScale(fRawQLow, fRawQHigh,
75  evdb::kBlueToRedII, evdb::kLinear,
76  fRawDiv,
77  285.0, 135.0, // angle in the color wheel
78  0.65, 0.25); // intensity from light to dark,
79  // starting with low color wheel value
80 
81  fGrayScaleRaw = evdb::ColorScale(fRawQLow, fRawQHigh,
82  evdb::kLinGray, evdb::kLinear,
83  fRawDiv,
84  270.0, 0.0, // angle in the color wheel
85  0.5, 0.5); // intensity from light to dark,
86  // starting with low color wheel value
87 
88  fColorScaleReco = evdb::ColorScale(fRecoQLow, fRecoQHigh,
89  evdb::kBlueToRedII, evdb::kLinear,
90  fRecoDiv,
91  285.0, 135.0,
92  0.65, 0.25);
93 
94  fGrayScaleReco = evdb::ColorScale(fRecoQLow, fRecoQHigh,
95  evdb::kLinGray, evdb::kLinear,
96  fRecoDiv,
97  270.0, 0.0,
98  0.5, 0.5);
99 
100  return;
101  }
double fRecoQHigh
high edge of ADC values for drawing raw digits
double fRawQLow
low edge of ADC values for drawing raw digits
int fRawDiv
number of divisions in raw
int fColorOrGray
0 = color, 1 = gray
double fRawQHigh
high edge of ADC values for drawing raw digits
double fRecoQLow
low edge of ADC values for drawing raw digits
int fRecoDiv
number of divisions in raw

Member Data Documentation

int gar::evd::ColorDrawingOptions::fColorOrGray

0 = color, 1 = gray

Definition at line 35 of file ColorDrawingOptions.h.

evdb::ColorScale gar::evd::ColorDrawingOptions::fColorScaleRaw
private

Definition at line 45 of file ColorDrawingOptions.h.

evdb::ColorScale gar::evd::ColorDrawingOptions::fColorScaleReco
private

Definition at line 47 of file ColorDrawingOptions.h.

evdb::ColorScale gar::evd::ColorDrawingOptions::fGrayScaleRaw
private

Definition at line 46 of file ColorDrawingOptions.h.

evdb::ColorScale gar::evd::ColorDrawingOptions::fGrayScaleReco
private

Definition at line 48 of file ColorDrawingOptions.h.

int gar::evd::ColorDrawingOptions::fRawDiv

number of divisions in raw

Definition at line 36 of file ColorDrawingOptions.h.

double gar::evd::ColorDrawingOptions::fRawQHigh

high edge of ADC values for drawing raw digits

Definition at line 39 of file ColorDrawingOptions.h.

double gar::evd::ColorDrawingOptions::fRawQLow

low edge of ADC values for drawing raw digits

Definition at line 38 of file ColorDrawingOptions.h.

int gar::evd::ColorDrawingOptions::fRecoDiv

number of divisions in raw

Definition at line 37 of file ColorDrawingOptions.h.

double gar::evd::ColorDrawingOptions::fRecoQHigh

high edge of ADC values for drawing raw digits

Definition at line 41 of file ColorDrawingOptions.h.

double gar::evd::ColorDrawingOptions::fRecoQLow

low edge of ADC values for drawing raw digits

Definition at line 40 of file ColorDrawingOptions.h.


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