LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
RawDrawingOptions.h
Go to the documentation of this file.
1 //
3 // Display parameters for the raw data
4 //
5 // \author brebel@fnal.gov
7 #ifndef RAWDRAWINGOPTIONS_H
8 #define RAWDRAWINGOPTIONS_H
9 #ifndef __CINT__
10 #include <string>
11 #include <vector>
12 
14 
16 
17 namespace art {
18  class ActivityRegistry;
19 }
22 #include "fhiclcpp/ParameterSet.h"
23 
24 namespace evd {
43  public:
44  explicit RawDrawingOptions(fhicl::ParameterSet const& pset);
45 
46  void reconfigure(fhicl::ParameterSet const& pset) override;
47 
51  double fMinSignal;
52  double fStartTick;
53  double fTicks;
55  unsigned int fTPC;
56  unsigned int fCryostat;
57  unsigned int fMinChannelStatus;
58  unsigned int fMaxChannelStatus;
59  std::vector<art::InputTag>
61 
64 
65  std::vector<float> fRoIthresholds;
66 
67  int
69 
72 
74  geo::TPCID CurrentTPC() const { return geo::TPCID(fCryostat, fTPC); }
75 
77  double RoIthreshold(geo::PlaneID const& planeID) const { return RoIthreshold(planeID.Plane); }
78 
81  {
82  return (plane < fRoIthresholds.size()) ? fRoIthresholds[plane] : fRoIthresholds.back();
83  } // RoIthreshold(plane number)
84  };
85 } //namespace
86 #endif // __CINT__
88 #endif
int fScaleDigitsByCharge
scale the size of the digit by the charge
unsigned int fTPC
TPC number to draw, typically set by TWQProjectionView.
Display parameters for the raw data.
int fDrawRawDataOrCalibWires
0 for raw
std::vector< float > fRoIthresholds
region of interest thresholds, per plane
unsigned int PlaneID_t
Type for the ID number.
Definition: geo_types.h:464
The data type to uniquely identify a Plane.
Definition: geo_types.h:463
fhicl::ParameterSet fRawDigitDrawerParams
FHICL parameters for the RawDigit waveform display.
double RoIthreshold(geo::PlaneID const &planeID) const
Returns the region of interest threshold for the specified wire plane.
LArSoft includes.
#define DECLARE_ART_SERVICE(svc, scope)
unsigned int fCryostat
Cryostat number to draw, typically set by TWQProjectionView.
unsigned int fMaxChannelStatus
Display channels with this status and below.
double fMinSignal
minimum ADC count to display a time bin
double fTicks
number of TDC ticks to display, ie # fTicks past fStartTick
geo::TPCID CurrentTPC() const
Returns the current TPC as a TPCID.
Interface class to services that are intended to be reconfigurable through the event display...
The data type to uniquely identify a TPC.
Definition: geo_types.h:381
PlaneID_t Plane
Index of the plane within its TPC.
Definition: geo_types.h:481
Definition of data types for geometry description.
int fTicksPerPoint
number of ticks to include in one point
bool fSeeBadChannels
Allow "bad" channels to be viewed.
unsigned int fMinChannelStatus
Display channels with this status and above.
int fAxisOrientation
0 = TDC values on y-axis, wire number on x-axis, 1 = swapped
std::vector< art::InputTag > fRawDataLabels
module label that made the raw digits, default is daq
Definition: MVAAlg.h:12
double fStartTick
Starting tick for the display.
IDparameter< geo::TPCID > TPCID
Member type of validated geo::TPCID parameter.
double RoIthreshold(geo::PlaneID::PlaneID_t plane) const
Returns the region of interest threshold for the specified wire plane.
int fPedestalOption
0: use DetPedestalService; 1: Use pedestal in raw::RawDigt; 2: no ped subtraction ...
bool fUncompressWithPed
Option to uncompress with pedestal. Turned off by default.