All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ColorDrawingOptions.h
Go to the documentation of this file.
1 /// \file ColorDrawingOptions.h
2 /// \brief The color scales used by the event display
3 /// \author messier@indiana.edu
4 #ifndef EVD_COLORDRAWINGOPTIONS_H
5 #define EVD_COLORDRAWINGOPTIONS_H
6 #ifndef __CINT__
7 
9 
10 #include "nuevdb/EventDisplayBase/ColorScale.h"
11 #include "nuevdb/EventDisplayBase/Reconfigurable.h"
12 
13 #include "art/Framework/Services/Registry/ServiceDeclarationMacros.h"
14 
15 namespace fhicl { class ParameterSet; }
16 
17 namespace evd {
18  class ColorDrawingOptions : public evdb::Reconfigurable{
19  public:
20 
21  explicit ColorDrawingOptions(fhicl::ParameterSet const& pset);
22 
23  void reconfigure(fhicl::ParameterSet const& pset) ;
24 
25  const evdb::ColorScale& RawQ(geo::SigType_t st) const;
26  const evdb::ColorScale& CalQ(geo::SigType_t st) const;
27  const evdb::ColorScale& RawT(geo::SigType_t st) const;
28  const evdb::ColorScale& CalT(geo::SigType_t st) const;
29 
30  int fColorOrGray; ///< 0 = color, 1 = gray
31  std::vector<int > fRawDiv; ///< number of divisions in raw
32  std::vector<int > fRecoDiv; ///< number of divisions in raw
33  std::vector<double> fRawQLow; ///< low edge of ADC values for drawing raw digits
34  std::vector<double> fRawQHigh; ///< high edge of ADC values for drawing raw digits
35  std::vector<double> fRecoQLow; ///< low edge of ADC values for drawing raw digits
36  std::vector<double> fRecoQHigh; ///< high edge of ADC values for drawing raw digits
37 
38  private:
39 
40  void CheckInputVectorSizes();
41 
42  std::vector<evdb::ColorScale> fColorScaleRaw;
43  std::vector<evdb::ColorScale> fColorScaleReco;
44  std::vector<evdb::ColorScale> fGrayScaleRaw;
45  std::vector<evdb::ColorScale> fGrayScaleReco;
46  };
47 }
48 #endif // __CINT__
49 DECLARE_ART_SERVICE(evd::ColorDrawingOptions, LEGACY)
50 #endif
51 ////////////////////////////////////////////////////////////////////////
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
const evdb::ColorScale & RawQ(geo::SigType_t st) const
enum geo::_plane_sigtype SigType_t
const evdb::ColorScale & CalQ(geo::SigType_t st) const
Definition of data types for geometry description.
std::vector< double > fRawQHigh
high edge of ADC values for drawing raw digits
int fColorOrGray
0 = color, 1 = gray
std::vector< int > fRecoDiv
number of divisions in raw
std::vector< evdb::ColorScale > fGrayScaleReco
const evdb::ColorScale & RawT(geo::SigType_t st) const