17 :
evdb::Reconfigurable{pset}
19 ,
fRawDiv (pset.get< std::vector<int> >(
"RawDiv") )
20 ,
fRecoDiv (pset.get< std::vector<int> >(
"RecoDiv") )
21 ,
fRawQLow (pset.get< std::vector<double> >(
"RawQLow") )
22 ,
fRawQHigh (pset.get< std::vector<double> >(
"RawQHigh") )
23 ,
fRecoQLow (pset.get< std::vector<double> >(
"RecoQLow") )
24 ,
fRecoQHigh (pset.get< std::vector<double> >(
"RecoQHigh") )
28 for(
size_t i = 0; i <
fRawDiv.size(); ++i){
30 evdb::kBlueToRedII, evdb::kLinear,
37 evdb::kLinGray, evdb::kLinear,
44 for(
size_t i = 0; i <
fRecoDiv.size(); ++i){
46 evdb::kBlueToRedII, evdb::kLinear,
51 evdb::kLinGray, evdb::kLinear,
70 mf::LogWarning(
"ColorDrawingOptions") <<
"only 1 value given for raw color scale: " 71 <<
"number of divisions, low and high values.\n" 72 <<
"Pad out those values for the number of signal types.";
75 throw cet::exception(
"ColorDrawingOptionsUnclear") <<
"You have specified an incorrect number of " 76 <<
"values for the raw color/gray scale " 77 <<
"than there are types of signal planes in " 78 <<
"the detector. It is unclear what your " 79 <<
"intention is, so bail.\n";
88 mf::LogWarning(
"ColorDrawingOptions") <<
"only 1 value given for reco color scale: " 89 <<
"number of divisions, low and high values.\n" 90 <<
"Pad out those values for the number of signal types.";
93 throw cet::exception(
"ColorDrawingOptionsUnclear") <<
"You have specified an incorrect number of " 94 <<
"values for the reco color/gray scale " 95 <<
"than there are types of signal planes in " 96 <<
"the detector. It is unclear what your " 97 <<
"intention is, so bail.\n";
107 fRawDiv = pset.
get< std::vector<int> >(
"RawDiv");
108 fRecoDiv = pset.
get< std::vector<int> >(
"RecoDiv");
109 fRawQLow = pset.
get< std::vector<double> >(
"RawQLow");
110 fRawQHigh = pset.
get< std::vector<double> >(
"RawQHigh");
111 fRecoQLow = pset.
get< std::vector<double> >(
"RecoQLow");
116 for(
size_t i = 0; i < fRawDiv.size(); ++i){
121 for(
size_t i = 0; i < fRecoDiv.size(); ++i){
132 size_t pos = (size_t)st;
135 throw cet::exception(
"ColorDrawingOptions") <<
"asked for RawQ with geo::kMysteryType, " 136 <<
"bad things will happen, so bail\n";
146 size_t pos = (size_t)st;
149 throw cet::exception(
"ColorDrawingOptions") <<
"asked for CalQ with geo::kMysteryType, " 150 <<
"bad things will happen, so bail\n";
160 size_t pos = (size_t)st;
163 throw cet::exception(
"ColorDrawingOptions") <<
"asked for RawT with geo::kMysteryType, " 164 <<
"bad things will happen, so bail\n";
175 size_t pos = (size_t)st;
178 throw cet::exception(
"ColorDrawingOptions") <<
"asked for CalT with geo::kMysteryType, " 179 <<
"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< int > fRawDiv
number of divisions in raw
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)
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()
const evdb::ColorScale & RawQ(geo::SigType_t st) const
enum geo::_plane_sigtype SigType_t
T get(std::string const &key) const
const evdb::ColorScale & CalQ(geo::SigType_t st) const
std::vector< double > fRawQHigh
high edge of ADC values for drawing raw digits
#define DEFINE_ART_SERVICE(svc)
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