16 :
evdb::Reconfigurable{pset}
18 ,
fRawDiv(pset.get<std::vector<int>>(
"RawDiv"))
19 ,
fRecoDiv(pset.get<std::vector<int>>(
"RecoDiv"))
20 ,
fRawQLow(pset.get<std::vector<double>>(
"RawQLow"))
21 ,
fRawQHigh(pset.get<std::vector<double>>(
"RawQHigh"))
22 ,
fRecoQLow(pset.get<std::vector<double>>(
"RecoQLow"))
23 ,
fRecoQHigh(pset.get<std::vector<double>>(
"RecoQHigh"))
27 for (
size_t i = 0; i <
fRawDiv.size(); ++i) {
51 for (
size_t i = 0; i <
fRecoDiv.size(); ++i) {
86 <<
"only 1 value given for raw color scale: " 87 <<
"number of divisions, low and high values.\n" 88 <<
"Pad out those values for the number of signal types.";
92 <<
"You have specified an incorrect number of " 93 <<
"values for the raw color/gray scale " 94 <<
"than there are types of signal planes in " 95 <<
"the detector. It is unclear what your " 96 <<
"intention is, so bail.\n";
106 <<
"only 1 value given for reco color scale: " 107 <<
"number of divisions, low and high values.\n" 108 <<
"Pad out those values for the number of signal types.";
112 <<
"You have specified an incorrect number of " 113 <<
"values for the reco color/gray scale " 114 <<
"than there are types of signal planes in " 115 <<
"the detector. It is unclear what your " 116 <<
"intention is, so bail.\n";
126 fRawDiv = pset.
get<std::vector<int>>(
"RawDiv");
128 fRawQLow = pset.
get<std::vector<double>>(
"RawQLow");
135 for (
size_t i = 0; i < fRawDiv.size(); ++i) {
140 for (
size_t i = 0; i < fRecoDiv.size(); ++i) {
151 size_t pos = (size_t)st;
154 throw cet::exception(
"ColorDrawingOptions") <<
"asked for RawQ with geo::kMysteryType, " 155 <<
"bad things will happen, so bail\n";
165 size_t pos = (size_t)st;
168 throw cet::exception(
"ColorDrawingOptions") <<
"asked for CalQ with geo::kMysteryType, " 169 <<
"bad things will happen, so bail\n";
179 size_t pos = (size_t)st;
182 throw cet::exception(
"ColorDrawingOptions") <<
"asked for RawT with geo::kMysteryType, " 183 <<
"bad things will happen, so bail\n";
193 size_t pos = (size_t)st;
196 throw cet::exception(
"ColorDrawingOptions") <<
"asked for CalT with geo::kMysteryType, " 197 <<
"bad things will happen, so bail\n";
std::vector< double > fRawQLow
low edge of ADC values for drawing raw digits
const evdb::ColorScale & CalT(geo::SigType_t st) const
std::vector< evdb::ColorScale > fGrayScaleRaw
std::vector< evdb::ColorScale > fColorScaleReco
std::vector< evdb::ColorScale > fColorScaleRaw
void reconfigure(fhicl::ParameterSet const &pset)
ColorDrawingOptions(fhicl::ParameterSet const &pset)
Manage all things related to colors for the event display.
std::vector< double > fRecoQHigh
high edge of ADC values for drawing raw digits
std::vector< double > fRecoQLow
low edge of ADC values for drawing raw digits
The color scales used by the event display.
void CheckInputVectorSizes()
Build an association between a numerical range and a ROOT color index for use in, eg...
const evdb::ColorScale & RawQ(geo::SigType_t st) const
enum geo::_plane_sigtype SigType_t
Enumerate the possible plane projections.
T get(std::string const &key) const
const evdb::ColorScale & CalQ(geo::SigType_t st) const
std::vector< int > fRawDiv
number of divisions in raw
Rainbow with high and low flipped.
std::vector< double > fRawQHigh
high edge of ADC values for drawing raw digits
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
int fColorOrGray
0 = color, 1 = gray
std::vector< int > fRecoDiv
number of divisions in raw
std::vector< evdb::ColorScale > fGrayScaleReco
cet::coded_exception< error, detail::translate > exception
const evdb::ColorScale & RawT(geo::SigType_t st) const