LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 
15 #include "fhiclcpp/ParameterSet.h"
21 
22 namespace evd {
41  {
42  public:
45 
46  void reconfigure(fhicl::ParameterSet const& pset) ;
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;
60 
63 
64  std::vector<float> fRoIthresholds;
65 
67  geo::TPCID CurrentTPC() const { return geo::TPCID(fCryostat, fTPC); }
68 
70  double RoIthreshold(geo::PlaneID const& planeID) const
71  { return RoIthreshold(planeID.Plane); }
72 
75  {
76  return (plane < fRoIthresholds.size())?
77  fRoIthresholds[plane]: fRoIthresholds.back();
78  } // RoIthreshold(plane number)
79 
80  };
81 }//namespace
82 #endif // __CINT__
84 #endif
85 
int fScaleDigitsByCharge
scale the size of the digit by the charge
unsigned int fTPC
TPC number to draw, typically set by TWQProjectionView.
RawDrawingOptions(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
Display parameters for the raw data.
int fDrawRawDataOrCalibWires
0 for raw
std::vector< float > fRoIthresholds
region of interest thresholds, per plane
art::InputTag fRawDataLabel
module label that made the raw digits, default is daq
The data type to uniquely identify a Plane.
Definition: geo_types.h:250
double RoIthreshold(geo::PlaneID const &planeID) const
Returns the region of interest threshold for the specified wire plane.
#define DECLARE_ART_SERVICE(svc, scope)
Definition: ServiceMacros.h:91
unsigned int PlaneID_t
Type for the ID number.
Definition: geo_types.h:251
LArSoft includes.
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
void reconfigure(fhicl::ParameterSet const &pset)
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:195
PlaneID_t Plane
Index of the plane within its TPC.
Definition: geo_types.h:258
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
double fStartTick
Starting tick for the display.
double RoIthreshold(geo::PlaneID::PlaneID_t plane) const
Returns the region of interest threshold for the specified wire plane.
bool fUncompressWithPed
Option to uncompress with pedestal. Turned off by default.