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 #include "nuevdb/EventDisplayBase/ColorScale.h"
9 
10 #include "fhiclcpp/ParameterSet.h"
11 #include "nuevdb/EventDisplayBase/Reconfigurable.h"
12 
13 namespace evd {
14  class ColorDrawingOptions : public evdb::Reconfigurable{
15  public:
16 
17  explicit ColorDrawingOptions(fhicl::ParameterSet const& pset);
18 
19  void reconfigure(fhicl::ParameterSet const& pset) ;
20 
21  const evdb::ColorScale& RawQ(geo::SigType_t st) const;
22  const evdb::ColorScale& CalQ(geo::SigType_t st) const;
23  const evdb::ColorScale& RawT(geo::SigType_t st) const;
24  const evdb::ColorScale& CalT(geo::SigType_t st) const;
25 
26  int fColorOrGray; ///< 0 = color, 1 = gray
27  std::vector<int > fRawDiv; ///< number of divisions in raw
28  std::vector<int > fRecoDiv; ///< number of divisions in raw
29  std::vector<double> fRawQLow; ///< low edge of ADC values for drawing raw digits
30  std::vector<double> fRawQHigh; ///< high edge of ADC values for drawing raw digits
31  std::vector<double> fRecoQLow; ///< low edge of ADC values for drawing raw digits
32  std::vector<double> fRecoQHigh; ///< high edge of ADC values for drawing raw digits
33 
34  private:
35 
36  void CheckInputVectorSizes();
37 
38  std::vector<evdb::ColorScale> fColorScaleRaw;
39  std::vector<evdb::ColorScale> fColorScaleReco;
40  std::vector<evdb::ColorScale> fGrayScaleRaw;
41  std::vector<evdb::ColorScale> fGrayScaleReco;
42  };
43 }
44 #endif // __CINT__
46 #endif
47 ////////////////////////////////////////////////////////////////////////
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)
art framework interface to geometry description
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
LArSoft includes.
Definition: InfoTransfer.h:33
#define DECLARE_ART_SERVICE(svc, scope)
const evdb::ColorScale & RawQ(geo::SigType_t st) const
enum geo::_plane_sigtype SigType_t
const evdb::ColorScale & CalQ(geo::SigType_t st) const
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