RawDrawingOptions.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file RawDrawingOptions.h
3 /// \brief Global drawing options that apply to all displays
4 /// \author messier@indiana.edu
5 /// \version $Id: RawDrawingOptions.h,v 1.8 2012-07-19 04:21:45 ksachdev Exp $
6 ///
7 #ifndef EVD_RAWDRAWINGOPTIONS_H
8 #define EVD_RAWDRAWINGOPTIONS_H
9 #ifndef __CINT__
10 
11 #include <vector>
12 #include <string>
13 
14 #include "fhiclcpp/ParameterSet.h"
19 
20 
21 namespace evd {
22  /// \brief Global drawing options that apply to all displays
24  {
25  public:
26 
27  explicit RawDrawingOptions(fhicl::ParameterSet const& pset,
30 
31  void reconfigure(fhicl::ParameterSet const& pset) override;
32 
33  int fColor;
34  static const int kCOLOR_BY_CHARGE = 0;
35  static const int kCOLOR_BY_TIME = 1;
36 
38  static const int kRAW_HITS = 0;
39  static const int kCAL_HITS = 1;
40 
41  int fWhichQ;
42  static const int kPE = 0;
43  static const int kPECOR = 1;
44 
46  static const int kMASK_BAD_CHANNELS = 1<<0;
47  static const int kSCALE_HITS_BY_CHARGE = 1<<1;
48  static const int kSUPPRESS_GHOSTED_HITS = 1<<2;
49  static const int kSUPPRESS_DIMMED_HITS = 1<<3;
50 
51  float fScaleFactor;
52  std::vector<float> fTimeRange;
53  float fTimeBinSize;
55 
57 
58  // Modules and instance labels
59  std::vector<std::string> fRawDigitsModules;
60  std::vector<std::string> fRawDigitsInstances;
61  std::vector<std::string> fCellHitsModules;
62  std::vector<std::string> fCellHitsInstances;
63 
64  std::vector<float> fADCRange;
65  float fADCBinSize;
66 
68  static const int kHIT3D_BOXES = 1<<0;
69  static const int kHIT3D_TOWERS = 1<<1;
70  static const int kHIT3D_CROSSINGS = 1<<2;
71  protected:
72 
73  /// \brief Parse apart a "module_instance" string. Input the
74  /// joined string as mod. If there is no underscore, mod is
75  /// unaltered and inst is set to the empty string (""). If
76  /// there is an underscore, mod is set to the part before
77  /// the underscore, and inst to the part after.
79  std::string& inst) const;
80 
81  void ModuleList(fhicl::ParameterSet const& pset,
82  std::vector<std::string>& modules,
83  std::vector<std::string>& instances,
84  const char* object);
85 
86  };
87 }
88 #endif // __CINT__
90 #endif
91 ////////////////////////////////////////////////////////////////////////
std::vector< float > fTimeRange
static const int kSUPPRESS_GHOSTED_HITS
RawDrawingOptions(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
void reconfigure(fhicl::ParameterSet const &pset) override
Global drawing options that apply to all displays.
void ParseModuleInstanceString(std::string &mod, std::string &inst) const
Parse apart a "module_instance" string. Input the joined string as mod. If there is no underscore...
std::vector< std::string > fCellHitsModules
#define DECLARE_ART_SERVICE(svc, scope)
Definition: ServiceMacros.h:91
static const int kSCALE_HITS_BY_CHARGE
static const int kSUPPRESS_DIMMED_HITS
static const int kCOLOR_BY_TIME
static const int kHIT3D_TOWERS
std::vector< std::string > fRawDigitsModules
nova event display
std::vector< std::string > fRawDigitsInstances
static const int kCAL_HITS
static const int kCOLOR_BY_CHARGE
Interface class to services that are intended to be reconfigurable through the event display...
static const int kMASK_BAD_CHANNELS
void ModuleList(fhicl::ParameterSet const &pset, std::vector< std::string > &modules, std::vector< std::string > &instances, const char *object)
static const int kHIT3D_CROSSINGS
static const int kPECOR
std::vector< float > fADCRange
static const int kRAW_HITS
std::vector< std::string > fCellHitsInstances
static const int kHIT3D_BOXES
enum BeamMode string