20 :
evdb::Reconfigurable{pset}
22 ,
fRawDiv (pset.get< std::vector<int> >(
"RawDiv") )
23 ,
fRecoDiv (pset.get< std::vector<int> >(
"RecoDiv") )
24 ,
fRawQLow (pset.get< std::vector<double> >(
"RawQLow") )
25 ,
fRawQHigh (pset.get< std::vector<double> >(
"RawQHigh") )
26 ,
fRecoQLow (pset.get< std::vector<double> >(
"RecoQLow") )
27 ,
fRecoQHigh (pset.get< std::vector<double> >(
"RecoQHigh") )
31 for(
size_t i = 0; i <
fRawDiv.size(); ++i){
47 for(
size_t i = 0; i <
fRecoDiv.size(); ++i){
80 mf::LogWarning(
"ColorDrawingOptions") <<
"only 1 value given for raw color scale: " 81 <<
"number of divisions, low and high values.\n" 82 <<
"Pad out those values for the number of signal types.";
85 throw cet::exception(
"ColorDrawingOptionsUnclear") <<
"You have specified an incorrect number of " 86 <<
"values for the raw color/gray scale " 87 <<
"than there are types of signal planes in " 88 <<
"the detector. It is unclear what your " 89 <<
"intention is, so bail.\n";
98 mf::LogWarning(
"ColorDrawingOptions") <<
"only 1 value given for reco color scale: " 99 <<
"number of divisions, low and high values.\n" 100 <<
"Pad out those values for the number of signal types.";
103 throw cet::exception(
"ColorDrawingOptionsUnclear") <<
"You have specified an incorrect number of " 104 <<
"values for the reco color/gray scale " 105 <<
"than there are types of signal planes in " 106 <<
"the detector. It is unclear what your " 107 <<
"intention is, so bail.\n";
117 fRawDiv = pset.
get< std::vector<int> >(
"RawDiv");
118 fRecoDiv = pset.
get< std::vector<int> >(
"RecoDiv");
119 fRawQLow = pset.
get< std::vector<double> >(
"RawQLow");
120 fRawQHigh = pset.
get< std::vector<double> >(
"RawQHigh");
121 fRecoQLow = pset.
get< std::vector<double> >(
"RecoQLow");
126 for(
size_t i = 0; i < fRawDiv.size(); ++i){
131 for(
size_t i = 0; i < fRecoDiv.size(); ++i){
142 size_t pos = (size_t)st;
145 throw cet::exception(
"ColorDrawingOptions") <<
"asked for RawQ with geo::kMysteryType, " 146 <<
"bad things will happen, so bail\n";
156 size_t pos = (size_t)st;
159 throw cet::exception(
"ColorDrawingOptions") <<
"asked for CalQ with geo::kMysteryType, " 160 <<
"bad things will happen, so bail\n";
170 size_t pos = (size_t)st;
173 throw cet::exception(
"ColorDrawingOptions") <<
"asked for RawT with geo::kMysteryType, " 174 <<
"bad things will happen, so bail\n";
185 size_t pos = (size_t)st;
188 throw cet::exception(
"ColorDrawingOptions") <<
"asked for CalT with geo::kMysteryType, " 189 <<
"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
#define DEFINE_ART_SERVICE(svc)
std::vector< evdb::ColorScale > fColorScaleReco
std::vector< evdb::ColorScale > fColorScaleRaw
void reconfigure(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
Rainbow with high and low flipped.
std::vector< double > fRawQHigh
high edge of ADC values for drawing raw digits
ColorDrawingOptions(fhicl::ParameterSet const &pset, art::ActivityRegistry ®)
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