7 #ifndef LCVN_PIXELMAPPRODUCER_H 8 #define LCVN_PIXELMAPPRODUCER_H 31 typedef std::vector<std::map<double, double>>
Waveform;
80 template <
class T,
class U>
83 PixelMapProducer(
unsigned int nWire,
unsigned int nTdc,
double tRes,
double threshold = 0.);
89 unsigned int NWire()
const {
return fNWire; }
90 unsigned int NTdc()
const {
return fNTdc; }
91 double TRes()
const {
return fTRes; }
92 unsigned int TotHits()
const {
return fTotHits; }
96 void SetTotHits(
unsigned int tothits) { fTotHits = tothits; }
101 const std::vector<const T*>&
cluster);
103 virtual void ConvertLocaltoGlobal(
geo::WireID wireid,
104 unsigned int& globalWire,
105 unsigned int& globalPlane)
const;
107 virtual void ConvertLocaltoGlobalTDC(
geo::WireID wireid,
109 unsigned int& globalWire,
110 unsigned int& globalPlane,
111 double& globalTDC)
const;
116 const std::vector<const T*>& cluster);
119 const std::vector<const T*>& cluster,
142 #endif // CVN_PIXELMAPPRODUCER_H
bool MultipleDrifts() const
PixelMapProducer< sim::SimChannel, lcvn::SimChannelHelper > PixelMapSimProducer
Energy deposited on a readout channel by simulated tracks.
virtual Waveform GetWaveform()
Declaration of signal hit object.
PixelMap, basic input to CVN neural net.
Utility class for truth labels.
cout<< "Opened file "<< fin<< " ixs= "<< ixs<< endl;if(ixs==0) hhh=(TH1F *) fff-> Get("h1")
Cluster finding and building.
Producer algorithm for PixelMap, input to CVN neural net.
HitHelper(recob::Hit hit, double thresh=0.)
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Access the description of the physical detector geometry.
unsigned int NWire() const
WireHelper(recob::Wire wire, double thresh=0.)
SimChannelHelper(sim::SimChannel simchan, double thresh=0.)
PixelMapProducer< recob::Hit, lcvn::HitHelper > PixelMapHitProducer
Interface for a class providing readout channel mapping to geometry.
Description of the physical geometry of one entire detector.
PixelMapProducer< recob::Wire, lcvn::WireHelper > PixelMapWireProducer
virtual geo::WireID GetID()
Detector simulation of raw signals on wires.
geo::GeometryCore const * fGeometry
double fThreshold
Charge threshold to consider for hits/waveforms etc.
unsigned int NTdc() const
unsigned int fNTdc
Number of tdcs, width of pixel map.
void SetMultipleDrifts(bool multipledrifts=true)
unsigned int fNWire
Number of wires, length for pixel maps.
void SetTotHits(unsigned int tothits)
object containing MC truth information necessary for making RawDigits and doing back tracking ...
unsigned int fTotHits
Total hits in the pixel map.
Class holding the regions of interest of signal from a channel.
Declaration of basic channel signal object.
2D representation of charge deposited in the TDC/wire plane
double fTRes
Timing resolution for pixel map.
unsigned int TotHits() const
std::vector< std::map< double, double > > Waveform
art framework interface to geometry description
Boundary for CVN PixelMap.
bool fMultipleDrifts
True if making the pixel map requires handling for multiple drift regions.