LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
evd::RawDrawingOptions Class Reference

Display parameters for the raw data. More...

#include "RawDrawingOptions.h"

Inheritance diagram for evd::RawDrawingOptions:
evdb::Reconfigurable

Public Member Functions

 RawDrawingOptions (fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
 
 ~RawDrawingOptions ()
 
void reconfigure (fhicl::ParameterSet const &pset)
 
geo::TPCID CurrentTPC () const
 Returns the current TPC as a TPCID. More...
 
double RoIthreshold (geo::PlaneID const &planeID) const
 Returns the region of interest threshold for the specified wire plane. More...
 
double RoIthreshold (geo::PlaneID::PlaneID_t plane) const
 Returns the region of interest threshold for the specified wire plane. More...
 
void do_reconfigure (fhicl::ParameterSet const &pset)
 

Public Attributes

int fDrawRawDataOrCalibWires
 0 for raw More...
 
int fTicksPerPoint
 number of ticks to include in one point More...
 
int fScaleDigitsByCharge
 scale the size of the digit by the charge More...
 
double fMinSignal
 minimum ADC count to display a time bin More...
 
double fStartTick
 Starting tick for the display. More...
 
double fTicks
 number of TDC ticks to display, ie # fTicks past fStartTick More...
 
int fAxisOrientation
 0 = TDC values on y-axis, wire number on x-axis, 1 = swapped More...
 
unsigned int fTPC
 TPC number to draw, typically set by TWQProjectionView. More...
 
unsigned int fCryostat
 Cryostat number to draw, typically set by TWQProjectionView. More...
 
unsigned int fMinChannelStatus
 Display channels with this status and above. More...
 
unsigned int fMaxChannelStatus
 Display channels with this status and below. More...
 
art::InputTag fRawDataLabel
 module label that made the raw digits, default is daq More...
 
bool fUncompressWithPed
 Option to uncompress with pedestal. Turned off by default. More...
 
bool fSeeBadChannels
 Allow "bad" channels to be viewed. More...
 
std::vector< float > fRoIthresholds
 region of interest thresholds, per plane More...
 
int fPedestalOption
 0: use DetPedestalService; 1: Use pedestal in raw::RawDigt; 2: no ped subtraction More...
 

Detailed Description

Display parameters for the raw data.

Configuration parameters

This is an incomplete list of the supported parameters:

  • RoIthresholds (list of real numbers, default: empty): threshold in ADC counts for a tick on a wire to be "interesting", thus extending the region of interest to include it. The thresholds are specified one per plane; if no threshold is specified for a plane, the threshold for the last plane is used instead (therefore specifying just one threshold will apply the same threshold to all planes). If no threshold is specified at all, the value of 'MinSignal' parameter is used as threshold for all planes

Definition at line 40 of file RawDrawingOptions.h.

Constructor & Destructor Documentation

evd::RawDrawingOptions::RawDrawingOptions ( fhicl::ParameterSet const &  pset,
art::ActivityRegistry reg 
)
explicit

Definition at line 17 of file RawDrawingOptions_service.cc.

References reconfigure().

19  : evdb::Reconfigurable{pset}
20  {
21  this->reconfigure(pset);
22  }
void reconfigure(fhicl::ParameterSet const &pset)
evd::RawDrawingOptions::~RawDrawingOptions ( )

Definition at line 25 of file RawDrawingOptions_service.cc.

26  {
27  }

Member Function Documentation

geo::TPCID evd::RawDrawingOptions::CurrentTPC ( ) const
inline

Returns the current TPC as a TPCID.

Definition at line 69 of file RawDrawingOptions.h.

Referenced by evd::TQPad::BookHistogram(), evd::TQPad::Draw(), evd::RawDataDrawer::FillQHisto(), evd::RawDataDrawer::FillTQHisto(), evd::TWQMultiTPCProjectionView::PrintCharge(), evd::TWQProjectionView::PrintCharge(), evd::RawDataDrawer::RawDigit2D(), evd::RawDataDrawer::RunDrawOperation(), evd::RawDataDrawer::RunRoIextractor(), and evd::TWireProjPad::TWireProjPad().

69 { return geo::TPCID(fCryostat, fTPC); }
unsigned int fTPC
TPC number to draw, typically set by TWQProjectionView.
unsigned int fCryostat
Cryostat number to draw, typically set by TWQProjectionView.
The data type to uniquely identify a TPC.
Definition: geo_types.h:195
void evdb::Reconfigurable::do_reconfigure ( fhicl::ParameterSet const &  pset)
inlineinherited

Definition at line 17 of file Reconfigurable.h.

17 { reconfigure(pset); }
virtual void reconfigure(fhicl::ParameterSet const &)=0
void evd::RawDrawingOptions::reconfigure ( fhicl::ParameterSet const &  pset)
virtual

Implements evdb::Reconfigurable.

Definition at line 30 of file RawDrawingOptions_service.cc.

References DEFINE_ART_SERVICE, fAxisOrientation, fCryostat, fDrawRawDataOrCalibWires, fMaxChannelStatus, fMinChannelStatus, fMinSignal, fPedestalOption, fRawDataLabel, fRoIthresholds, fScaleDigitsByCharge, fSeeBadChannels, fStartTick, fTicks, fTicksPerPoint, fTPC, fUncompressWithPed, and fhicl::ParameterSet::get().

Referenced by RawDrawingOptions().

31  {
32  fDrawRawDataOrCalibWires = pset.get< int >("DrawRawDataOrCalibWires" );
33  fScaleDigitsByCharge = pset.get< int >("ScaleDigitsByCharge" );
34  fTicksPerPoint = pset.get< int >("TicksPerPoint" );
35  fMinSignal = pset.get< double >("MinimumSignal" );
36  fStartTick = pset.get< double >("StartTick", 0 );
37  fTicks = pset.get< double >("TotalTicks", 2048 );
38  fAxisOrientation = pset.get< int >("AxisOrientation", 0 );
39  fRawDataLabel = pset.get< art::InputTag >("RawDataLabel", "daq");
40  fTPC = pset.get< unsigned int>("TPC", 0 );
41  fCryostat = pset.get< unsigned int>("Cryostat", 0 );
42  fMinChannelStatus = pset.get< unsigned int>("MinChannelStatus", 0 );
43  fMaxChannelStatus = pset.get< unsigned int>("MaxChannelStatus", lariov::ChannelStatusProvider::InvalidStatus - 1);
44  fUncompressWithPed = pset.get< bool >("UncompressWithPed",false);
45  fSeeBadChannels = pset.get< bool >("SeeBadChannels", false);
46  fRoIthresholds = pset.get< std::vector<float> >("RoIthresholds", std::vector<float>());
47  fPedestalOption = pset.get< int >("PedestalOption", 0 );
48 
49  if (fRoIthresholds.empty()) fRoIthresholds.push_back((float) fMinSignal);
50  }
int fScaleDigitsByCharge
scale the size of the digit by the charge
unsigned int fTPC
TPC number to draw, typically set by TWQProjectionView.
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
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
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.
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.
double evd::RawDrawingOptions::RoIthreshold ( geo::PlaneID const &  planeID) const
inline

Returns the region of interest threshold for the specified wire plane.

Definition at line 72 of file RawDrawingOptions.h.

References geo::PlaneID::Plane.

73  { return RoIthreshold(planeID.Plane); }
double RoIthreshold(geo::PlaneID const &planeID) const
Returns the region of interest threshold for the specified wire plane.
double evd::RawDrawingOptions::RoIthreshold ( geo::PlaneID::PlaneID_t  plane) const
inline

Returns the region of interest threshold for the specified wire plane.

Definition at line 76 of file RawDrawingOptions.h.

References DECLARE_ART_SERVICE.

77  {
78  return (plane < fRoIthresholds.size())?
79  fRoIthresholds[plane]: fRoIthresholds.back();
80  } // RoIthreshold(plane number)
std::vector< float > fRoIthresholds
region of interest thresholds, per plane

Member Data Documentation

int evd::RawDrawingOptions::fDrawRawDataOrCalibWires

0 for raw

Definition at line 48 of file RawDrawingOptions.h.

Referenced by evd::RecoBaseDrawer::BezierTrack2D(), evd::RecoBaseDrawer::BezierTrack3D(), evd::RecoBaseDrawer::Cluster2D(), evd::TQPad::Draw(), evd::RecoBaseDrawer::Draw2DSlopeEndPoints(), evd::RecoBaseDrawer::EndPoint2D(), evd::RecoBaseDrawer::Event2D(), evd::RecoBaseDrawer::Event3D(), evd::RawDataDrawer::FillQHisto(), evd::RecoBaseDrawer::FillQHisto(), evd::RawDataDrawer::FillTQHisto(), evd::RecoBaseDrawer::FillTQHisto(), evd::RecoBaseDrawer::FillTQHistoDP(), evd::RecoBaseDrawer::Hit2D(), evd::RecoBaseDrawer::OpFlash2D(), evd::RecoBaseDrawer::OpFlashOrtho(), evd::RecoBaseDrawer::PFParticle3D(), evd::RecoBaseDrawer::PFParticleOrtho(), evd::TWQMultiTPCProjectionView::PrintCharge(), evd::TWQProjectionView::PrintCharge(), evd::RecoBaseDrawer::Prong2D(), evd::RecoBaseDrawer::Prong3D(), evd::RecoBaseDrawer::ProngOrtho(), evd::RawDataDrawer::RawDigit2D(), reconfigure(), evd::RawDataDrawer::RunDrawOperation(), evd::RecoBaseDrawer::Seed2D(), evd::TWQMultiTPCProjectionView::SetRawCalib(), evd::TWQProjectionView::SetRawCalib(), evd::TWireProjPad::ShowFull(), evd::RecoBaseDrawer::Slice2D(), evd::RecoBaseDrawer::Slice3D(), evd::RecoBaseDrawer::SpacePoint3D(), evd::RecoBaseDrawer::SpacePointOrtho(), evd::TWQMultiTPCProjectionView::TWQMultiTPCProjectionView(), evd::TWQProjectionView::TWQProjectionView(), evd::RecoBaseDrawer::Vertex2D(), evd::RecoBaseDrawer::Vertex3D(), evd::RecoBaseDrawer::VertexOrtho(), evd::RecoBaseDrawer::Wire2D(), evd::TWQMultiTPCProjectionView::ZoomInterest(), and evd::TWQProjectionView::ZoomInterest().

unsigned int evd::RawDrawingOptions::fMaxChannelStatus

Display channels with this status and below.

Definition at line 58 of file RawDrawingOptions.h.

Referenced by evd::RawDataDrawer::ProcessChannelWithStatus(), and reconfigure().

unsigned int evd::RawDrawingOptions::fMinChannelStatus

Display channels with this status and above.

Definition at line 57 of file RawDrawingOptions.h.

Referenced by reconfigure().

int evd::RawDrawingOptions::fPedestalOption

0: use DetPedestalService; 1: Use pedestal in raw::RawDigt; 2: no ped subtraction

Definition at line 66 of file RawDrawingOptions.h.

Referenced by evd::RawDataDrawer::FillQHisto(), evd::RawDataDrawer::FillTQHisto(), reconfigure(), and evd::RawDataDrawer::RunOperation().

art::InputTag evd::RawDrawingOptions::fRawDataLabel

module label that made the raw digits, default is daq

Definition at line 59 of file RawDrawingOptions.h.

Referenced by evd::RawDataDrawer::FillQHisto(), evd::RawDataDrawer::FillTQHisto(), evd::RawDataDrawer::RawDigit2D(), reconfigure(), and evd::RawDataDrawer::RunOperation().

std::vector<float> evd::RawDrawingOptions::fRoIthresholds

region of interest thresholds, per plane

Definition at line 64 of file RawDrawingOptions.h.

Referenced by reconfigure().

int evd::RawDrawingOptions::fScaleDigitsByCharge

scale the size of the digit by the charge

Definition at line 50 of file RawDrawingOptions.h.

Referenced by evd::RawDataDrawer::QueueDrawingBoxes(), reconfigure(), and evd::RecoBaseDrawer::Wire2D().

bool evd::RawDrawingOptions::fSeeBadChannels
double evd::RawDrawingOptions::fStartTick

Starting tick for the display.

Definition at line 52 of file RawDrawingOptions.h.

Referenced by evd::RawDataDrawer::RawDataDrawer(), and reconfigure().

double evd::RawDrawingOptions::fTicks
int evd::RawDrawingOptions::fTicksPerPoint

number of ticks to include in one point

Definition at line 49 of file RawDrawingOptions.h.

Referenced by evd::RawDataDrawer::BoxDrawer::Initialize(), reconfigure(), and evd::RecoBaseDrawer::Wire2D().

bool evd::RawDrawingOptions::fUncompressWithPed

Option to uncompress with pedestal. Turned off by default.

Definition at line 61 of file RawDrawingOptions.h.

Referenced by reconfigure(), and evd::details::RawDigitInfo_t::UncompressData().


The documentation for this class was generated from the following files: