#include <ColdBoxChannelMapAlg.h>
Classes | |
struct | ChannelRange_t |
struct | PlaneInfo_t |
Collection of information on one plane. More... | |
struct | ReadoutMappingInfo_t |
Collected information about TPC sets and readout planes in the geometry. More... | |
Public Member Functions | |
ColdBoxChannelMapAlg (fhicl::ParameterSet const &p) | |
virtual void | Initialize (geo::GeometryData_t const &geodata) override |
Prepares the algorithm extracting information from the geometry. More... | |
virtual void | Uninitialize () override |
Frees the resources of this algorithm. More... | |
virtual std::vector< geo::WireID > | ChannelToWire (raw::ChannelID_t channel) const override |
Returns a collection of ID of wires connected to the channel . More... | |
virtual unsigned int | Nchannels () const override |
Returns the number of readout channels (ID's go 0 to Nchannels() ). More... | |
virtual unsigned int | Nchannels (readout::ROPID const &ropid) const override |
Returns the number of channels in the specified ROP. More... | |
virtual std::set< geo::PlaneID > const & | PlaneIDs () const override |
Returns a list of the plane IDs in the whole detector. More... | |
virtual geo::GeoObjectSorter const & | Sorter () const override |
Return the sorter. More... | |
virtual raw::ChannelID_t | PlaneWireToChannel (geo::WireID const &wireID) const override |
Returns the channel ID a wire is connected to. More... | |
virtual raw::ChannelID_t | PlaneWireToChannel (unsigned int plane, unsigned int wire, unsigned int tpc, unsigned int cstat) const override |
Returns the channel ID a wire is connected to. More... | |
Deprecated functions. | |
These methods are legacy and might be replaced by | |
virtual double | WireCoordinate (double YPos, double ZPos, geo::PlaneID const &planeID) const override |
Returns the index of the wire nearest to the specified position. More... | |
virtual double | WireCoordinate (double YPos, double ZPos, unsigned int PlaneNo, unsigned int TPCNo, unsigned int cstat) const override |
Returns the index of the wire nearest to the specified position. More... | |
virtual geo::WireID | NearestWireID (const TVector3 &worldPos, geo::PlaneID const &planeID) const override |
Returns the ID of the wire nearest to the specified position. More... | |
virtual geo::WireID | NearestWireID (const TVector3 &worldPos, unsigned int PlaneNo, unsigned int TPCNo, unsigned int cstat) const override |
Returns the ID of the wire nearest to the specified position. More... | |
TPC set mapping | |
virtual unsigned int | NTPCsets (readout::CryostatID const &cryoid) const override |
Returns the total number of TPC sets in the specified cryostat. More... | |
virtual unsigned int | MaxTPCsets () const override |
Returns the largest number of TPC sets any cryostat in the detector has. More... | |
virtual bool | HasTPCset (readout::TPCsetID const &tpcsetid) const override |
virtual readout::TPCsetID | TPCtoTPCset (geo::TPCID const &tpcid) const override |
Returns the ID of the TPC set the specified TPC belongs to. More... | |
virtual std::vector< geo::TPCID > | TPCsetToTPCs (readout::TPCsetID const &tpcsetid) const override |
Returns a list of ID of TPCs belonging to the specified TPC set. More... | |
virtual geo::TPCID | FirstTPCinTPCset (readout::TPCsetID const &tpcsetid) const override |
Returns the ID of the first TPC belonging to the specified TPC set. More... | |
Readout plane mapping | |
virtual unsigned int | NROPs (readout::TPCsetID const &tpcsetid) const override |
Returns the total number of readout planes in the specified TPC set. More... | |
virtual unsigned int | MaxROPs () const override |
Returns the largest number of ROPs a TPC set in the detector has. More... | |
virtual bool | HasROP (readout::ROPID const &ropid) const override |
virtual readout::ROPID | WirePlaneToROP (geo::PlaneID const &planeid) const override |
Returns the ID of the ROP planeid belongs to, or invalid if none. More... | |
virtual std::vector< geo::PlaneID > | ROPtoWirePlanes (readout::ROPID const &ropid) const override |
Returns a list of ID of wire planes belonging to the specified ROP. More... | |
virtual std::vector< geo::TPCID > | ROPtoTPCs (readout::ROPID const &ropid) const override |
Returns a list of ID of TPCs the specified ROP spans. More... | |
virtual readout::ROPID | ChannelToROP (raw::ChannelID_t channel) const override |
Returns the ID of the ROP the channel belongs to (invalid if none). More... | |
virtual raw::ChannelID_t | FirstChannelInROP (readout::ROPID const &ropid) const override |
Returns the ID of the first channel in the specified readout plane. More... | |
virtual geo::PlaneID | FirstWirePlaneInROP (readout::ROPID const &ropid) const override |
Returns the ID of the first plane belonging to the specified ROP. More... | |
Public Member Functions inherited from geo::ChannelMapAlg | |
virtual | ~ChannelMapAlg ()=default |
Virtual destructor. More... | |
virtual unsigned int | NOpChannels (unsigned int NOpDets) const |
Returns the number of optical channels contained in some detectors. More... | |
virtual unsigned int | MaxOpChannel (unsigned int NOpDets) const |
Returns the number of optical channels contained in some detectors. More... | |
virtual unsigned int | NOpHardwareChannels (unsigned int opDet) const |
Returns the number of channels in the specified optical detectors. More... | |
virtual bool | IsValidOpChannel (unsigned int opChannel, unsigned int NOpDets) const |
Returns whether the ID identifies a valid optical detector channel. More... | |
virtual unsigned int | OpChannel (unsigned int detNum, unsigned int hwchannel=0) const |
Returns the channel ID of the specified hardware channel. More... | |
virtual unsigned int | OpDetFromOpChannel (unsigned int opChannel) const |
Returns the optical detector the specified optical channel belongs. More... | |
virtual unsigned int | HardwareChannelFromOpChannel (unsigned int opChannel) const |
Returns the hardware channel number of specified optical channel. More... | |
unsigned int | NearestWire (const TVector3 &worldPos, geo::PlaneID const &planeID) const |
Returns the index of the wire nearest to the specified position. More... | |
unsigned int | NearestWire (const TVector3 &worldPos, unsigned int PlaneNo, unsigned int TPCNo, unsigned int cstat) const |
Returns the index of the wire nearest to the specified position. More... | |
virtual size_t | NearestAuxDet (const double *point, std::vector< geo::AuxDetGeo > const &auxDets, double tolerance=0) const |
Returns the auxiliary detector closest to the specified point. More... | |
virtual size_t | NearestSensitiveAuxDet (const double *point, std::vector< geo::AuxDetGeo > const &auxDets, double tolerance=0) const |
Returns sensitive auxiliary detector closest to specified point. More... | |
virtual size_t | ChannelToAuxDet (std::vector< geo::AuxDetGeo > const &auxDets, std::string const &detName, uint32_t const &channel) const |
Returns the index of the detector containing the specified channel. More... | |
virtual std::pair< size_t, size_t > | ChannelToSensitiveAuxDet (std::vector< geo::AuxDetGeo > const &auxDets, std::string const &detName, uint32_t const &channel) const |
Returns the index of the sensitive detector containing the channel. More... | |
const std::vector< std::vector< std::vector< raw::ChannelID_t > > > | FirstChannelInNextPlane () const |
Retrieve the private fFirstChannelInNextPlane vector for testing. More... | |
const std::vector< std::vector< std::vector< raw::ChannelID_t > > > | FirstChannelInThisPlane () const |
Retrieve the private fFirstChannelInThisPlane vector for testing. More... | |
virtual bool | HasChannel (raw::ChannelID_t channel) const |
Returns whether the specified channel is valid This default implementation assumes all channels up to Nchannels() valid. More... | |
geo::SigType_t | SignalTypeForChannel (raw::ChannelID_t const channel) const |
Return the signal type of the specified channel. More... | |
geo::SigType_t | SignalTypeForROPID (readout::ROPID const &ropid) const |
Return the signal type on the specified readout plane. More... | |
Private Types | |
using | TPCColl_t = std::vector< geo::TPCID > |
using | PlaneColl_t = std::vector< geo::PlaneID > |
Private Member Functions | |
bool | HasCryostat (readout::CryostatID const &cryoid) const |
Returns whether the specified cryostat is known to the mapping. More... | |
void | fillChannelToWireMap (geo::GeometryData_t::CryostatList_t const &Cryostats) |
Fills the information about readout channel mapping. More... | |
void | buildReadoutPlanes (geo::GeometryData_t::CryostatList_t const &Cryostats) |
Fills information about the TPC set and readout plane structure. More... | |
PlaneType_t | findPlaneType (readout::ROPID const &ropid) const |
Returns the "type" of readout plane. More... | |
virtual geo::SigType_t | SignalTypeForChannelImpl (raw::ChannelID_t const channel) const override |
Returns the type of signal on the specified channel . More... | |
Readout element information access | |
std::vector< unsigned int > const & | TPCsetCount () const |
Returns the number of TPC sets in each cryostat. More... | |
unsigned int | TPCsetCount (readout::CryostatID const &cid) const |
Returns the number of TPC sets in the specified cryostat cid . More... | |
readout::TPCsetDataContainer< TPCColl_t > const & | TPCsetTPCs () const |
All geo::TPCGeo objects in each TPC set. More... | |
TPCColl_t const & | TPCsetTPCs (readout::TPCsetID const &sid) const |
All geo::TPCID objects in the specified TPC set sid . More... | |
readout::TPCsetDataContainer< unsigned int > const & | ROPcount () const |
Number of readout planes in each TPC set. More... | |
unsigned int | ROPcount (readout::TPCsetID const &sid) const |
Number of readout planes in the specified TPC set sid . More... | |
readout::ROPDataContainer< PlaneColl_t > const & | ROPplanes () const |
All geo::PlaneGeo objects in each readout plane. More... | |
PlaneColl_t const & | ROPplanes (readout::ROPID const &rid) const |
All geo::PlaneId objects in the specified readout plane rid . More... | |
geo::TPCDataContainer< readout::TPCsetID > const & | TPCtoTPCset () const |
The TPC set including each TPC. More... | |
geo::PlaneDataContainer< readout::ROPID > const & | PlaneToROP () const |
The readout plane including each wire plane. More... | |
readout::ROPID const & | PlaneToROP (geo::PlaneID const &pid) const |
The readout plane the specified wire plane pid belongs to. More... | |
Static Private Member Functions | |
static std::string | PlaneTypeName (PlaneType_t planeType) |
Returns the name of the specified plane type. More... | |
Private Attributes | |
std::string | fLogCategory = "ColdBoxChannelMapAlg" |
Readout element information | |
Type for counts of wireless channels: per TPC set (even/odd), then per plane starting from the closest to the cathode; The geometry and readout data containers have currently no support for resizing and their size is assigned on construction. Access should happen via the corresponding member functions. | |
using | PlaneType_t = std::size_t |
Type for plane type identifier. More... | |
ReadoutMappingInfo_t | fReadoutMapInfo |
Information about TPC sets and readout planes in the geometry. More... | |
geo::dune::vd::ChannelToWireMap | fChannelToWireMap |
Mapping of channels and ROP's. More... | |
geo::PlaneDataContainer< PlaneInfo_t > | fPlaneInfo |
Range of channels covered by each of the wire planes. More... | |
geo::GeoObjectSorterCRU | fSorter |
class to sort geo objects More... | |
static constexpr PlaneType_t | kFirstInductionType = 0U |
Identifier for first induction plane type. More... | |
static constexpr PlaneType_t | kSecondInductionType = 1U |
Identifier for second induction plane type. More... | |
static constexpr PlaneType_t | kCollectionType = 2U |
Identifier for collection plane type. More... | |
static constexpr PlaneType_t | kUnknownType = std::numeric_limits<PlaneType_t>::max() |
Identifier for unknown plane type. More... | |
Additional Inherited Members | |
Protected Types inherited from geo::ChannelMapAlg | |
template<typename T > | |
using | TPCInfoMap_t = std::vector< std::vector< T >> |
Data type for per-TPC information. More... | |
template<typename T > | |
using | PlaneInfoMap_t = TPCInfoMap_t< std::vector< T >> |
Data type for per-plane information. More... | |
Protected Member Functions inherited from geo::ChannelMapAlg | |
template<typename T > | |
T const & | AccessElement (PlaneInfoMap_t< T > const &map, geo::PlaneID const &id) const |
Returns the specified element of the plane map. More... | |
template<typename T > | |
size_t | AccessElementSize (PlaneInfoMap_t< T > const &map, geo::TPCID const &id) const |
Returns the number of elements in the specified TPC of the plane map. More... | |
template<typename T > | |
T const * | GetElementPtr (PlaneInfoMap_t< T > const &map, geo::PlaneID const &id) const |
Returns a pointer to the specified element, or nullptr if invalid. More... | |
template<typename T > | |
T const & | AccessElement (TPCInfoMap_t< T > const &map, geo::TPCID const &id) const |
Returns the specified element of the TPC map. More... | |
template<typename T > | |
size_t | AccessElementSize (TPCInfoMap_t< T > const &map, geo::CryostatID const &id) const |
Returns the number of elements in the specified cryostat of the TPC map. More... | |
template<typename T > | |
bool | isValidElement (TPCInfoMap_t< T > const &map, geo::CryostatID const &id) const |
Returns whether the ID specifies a valid entry. More... | |
template<typename T > | |
bool | isValidElement (TPCInfoMap_t< T > const &map, geo::TPCID const &id) const |
template<typename T > | |
bool | isValidElement (PlaneInfoMap_t< T > const &map, geo::CryostatID const &id) const |
Returns whether the ID specifies a valid entry. More... | |
template<typename T > | |
bool | isValidElement (PlaneInfoMap_t< T > const &map, geo::TPCID const &id) const |
template<typename T > | |
bool | isValidElement (PlaneInfoMap_t< T > const &map, geo::PlaneID const &id) const |
virtual geo::SigType_t | SignalTypeForROPIDImpl (readout::ROPID const &ropid) const |
Return the signal type on the specified readout plane. More... | |
Protected Attributes inherited from geo::ChannelMapAlg | |
PlaneInfoMap_t< raw::ChannelID_t > | fFirstChannelInThisPlane |
PlaneInfoMap_t< raw::ChannelID_t > | fFirstChannelInNextPlane |
std::map< std::string, size_t > | fADNameToGeo |
map the names of the dets to the AuxDetGeo objects More... | |
std::map< size_t, std::vector< size_t > > | fADChannelToSensitiveGeo |
Definition at line 121 of file ColdBoxChannelMapAlg.h.
|
private |
Definition at line 125 of file ColdBoxChannelMapAlg.h.
|
private |
Type for plane type identifier.
Definition at line 509 of file ColdBoxChannelMapAlg.h.
|
private |
Definition at line 124 of file ColdBoxChannelMapAlg.h.
geo::ColdBoxChannelMapAlg::ColdBoxChannelMapAlg | ( | fhicl::ParameterSet const & | p | ) |
Definition at line 61 of file ColdBoxChannelMapAlg.cxx.
|
private |
Fills information about the TPC set and readout plane structure.
Cryostats | the sorted list of cryostats in the detector |
Definition at line 522 of file ColdBoxChannelMapAlg.cxx.
|
overridevirtual |
Returns the ID of the ROP the channel belongs to (invalid if none).
Implements geo::ChannelMapAlg.
Definition at line 351 of file ColdBoxChannelMapAlg.cxx.
|
overridevirtual |
Returns a collection of ID of wires connected to the channel
.
channel | TPC readout channel number |
channel
cet::exception | (category: "Geometry") if non-existent channel |
If the TPC readout channel
is invalid or non-existing, an exception is thrown. Channels are expected to be associated with at least one wire.
Implements geo::ChannelMapAlg.
Definition at line 92 of file ColdBoxChannelMapAlg.cxx.
|
private |
Fills the information about readout channel mapping.
Cryostats | the sorted list of cryostats in the detector |
The readout information must have been already filled (buildReadoutPlanes()
).
Definition at line 394 of file ColdBoxChannelMapAlg.cxx.
|
private |
Returns the "type" of readout plane.
ropid | ID of the readout plane to query |
Here the "type" refers to the position of the plane in the TPC and as a consequence to its signal type. The type of the readout plane is deduced from the type of the planes it contains.
The returned value is kFirstInductionType
, kSecondInductionType
, kCollectionType
or kUnknownType
.
Definition at line 667 of file ColdBoxChannelMapAlg.cxx.
|
overridevirtual |
Returns the ID of the first channel in the specified readout plane.
ropid | ID of the readout plane |
Note that this check is performed on the validity of the readout plane ID, that does not necessarily imply that the readout plane specified by the ID actually exists. Check if the ROP exists with HasROP(). The behaviour for non-existing readout planes is undefined.
Implements geo::ChannelMapAlg.
Definition at line 363 of file ColdBoxChannelMapAlg.cxx.
|
overridevirtual |
Returns the ID of the first TPC belonging to the specified TPC set.
Implements geo::ChannelMapAlg.
Definition at line 271 of file ColdBoxChannelMapAlg.cxx.
|
overridevirtual |
Returns the ID of the first plane belonging to the specified ROP.
The wire planes within a readout plane are supposed to be sorted by beam (z) coordinate, so that the first one should be the closest to the beam entrance point.
Implements geo::ChannelMapAlg.
Definition at line 375 of file ColdBoxChannelMapAlg.cxx.
|
private |
Returns whether the specified cryostat is known to the mapping.
Definition at line 385 of file ColdBoxChannelMapAlg.cxx.
|
overridevirtual |
Returns whether we have the specified ROP
Implements geo::ChannelMapAlg.
Definition at line 296 of file ColdBoxChannelMapAlg.cxx.
|
overridevirtual |
Returns whether we have the specified TPC set.
Returns whether we have the specified TPC set
Implements geo::ChannelMapAlg.
Definition at line 243 of file ColdBoxChannelMapAlg.cxx.
|
overridevirtual |
Prepares the algorithm extracting information from the geometry.
Implements geo::ChannelMapAlg.
Definition at line 67 of file ColdBoxChannelMapAlg.cxx.
|
overridevirtual |
Returns the largest number of ROPs a TPC set in the detector has.
Implements geo::ChannelMapAlg.
Definition at line 290 of file ColdBoxChannelMapAlg.cxx.
|
overridevirtual |
Returns the largest number of TPC sets any cryostat in the detector has.
Implements geo::ChannelMapAlg.
Definition at line 233 of file ColdBoxChannelMapAlg.cxx.
|
overridevirtual |
Returns the number of readout channels (ID's go 0
to Nchannels()
).
Implements geo::ChannelMapAlg.
Definition at line 142 of file ColdBoxChannelMapAlg.cxx.
|
overridevirtual |
Returns the number of channels in the specified ROP.
Implements geo::ChannelMapAlg.
Definition at line 150 of file ColdBoxChannelMapAlg.cxx.
|
overridevirtual |
Returns the ID of the wire nearest to the specified position.
worldPos | position to be tested |
planeID | plane containing the wire |
InvalidWireIDError | the ID found is not present in the detector |
The plane is required to be valid and exist in the detector. Otherwise, the behaviour is undefined. An exception is thrown if the wire that would be the closest is actually not present; but no check is performed whether the specified position is outside the wire plane: wires are extrapolated to be infinitely long. In other words, the result can be trusted only as long as the position is within the specified wire plane.
Reimplemented from geo::ChannelMapAlg.
Definition at line 179 of file ColdBoxChannelMapAlg.cxx.
|
inlineoverridevirtual |
Returns the ID of the wire nearest to the specified position.
worldPos | position to be tested |
PlaneNo | number of plane containing the wire |
TPCNo | number of TPC containing the wire |
cstat | number of cryostat containing the wire |
geo::PlaneID
instead Implements geo::ChannelMapAlg.
Definition at line 194 of file ColdBoxChannelMapAlg.h.
|
overridevirtual |
Returns the total number of readout planes in the specified TPC set.
tpcsetid | TPC set ID |
0
if ID is invalidThe validity of the requested TPC set is performed like in HasTPCset()
.
Implements geo::ChannelMapAlg.
Definition at line 283 of file ColdBoxChannelMapAlg.cxx.
|
overridevirtual |
Returns the total number of TPC sets in the specified cryostat.
cryoid | cryostat ID |
Implements geo::ChannelMapAlg.
Definition at line 225 of file ColdBoxChannelMapAlg.cxx.
|
overridevirtual |
Returns a list of the plane IDs in the whole detector.
Implements geo::ChannelMapAlg.
Definition at line 205 of file ColdBoxChannelMapAlg.cxx.
|
inlineprivate |
The readout plane including each wire plane.
Definition at line 563 of file ColdBoxChannelMapAlg.h.
|
inlineprivate |
The readout plane the specified wire plane pid
belongs to.
Definition at line 567 of file ColdBoxChannelMapAlg.h.
|
staticprivate |
Returns the name of the specified plane type.
Definition at line 720 of file ColdBoxChannelMapAlg.cxx.
|
overridevirtual |
Returns the channel ID a wire is connected to.
wireID | ID of the wire |
Behaviour on an invalid or not present wires is undefined.
geo::WireID
Reimplemented from geo::ChannelMapAlg.
Definition at line 198 of file ColdBoxChannelMapAlg.cxx.
|
inlineoverridevirtual |
Returns the channel ID a wire is connected to.
plane | number of plane |
wire | number of wire |
tpc | number of TPC |
cstat | number of cryostat |
geo::WireID
Implements geo::ChannelMapAlg.
Definition at line 163 of file ColdBoxChannelMapAlg.h.
|
inlineprivate |
Number of readout planes in each TPC set.
Definition at line 543 of file ColdBoxChannelMapAlg.h.
|
inlineprivate |
Number of readout planes in the specified TPC set sid
.
Definition at line 547 of file ColdBoxChannelMapAlg.h.
|
inlineprivate |
All geo::PlaneGeo
objects in each readout plane.
Definition at line 551 of file ColdBoxChannelMapAlg.h.
|
inlineprivate |
All geo::PlaneId
objects in the specified readout plane rid
.
Definition at line 555 of file ColdBoxChannelMapAlg.h.
|
overridevirtual |
Returns a list of ID of TPCs the specified ROP spans.
ropid | ID of the readout plane |
In this mapping, readout planes and wire planes are mapped one-to-one. The returned list contains always one entry, unless the specified readout plane ID is invalid, in which case the list is empty. Note that this check is performed on the validity of the readout plane ID, that does not necessarily imply that the readout plane specified by the ID actually exists. Check if the ROP exists with HasROP(). The behaviour on non-existing readout planes is undefined.
Implements geo::ChannelMapAlg.
Definition at line 334 of file ColdBoxChannelMapAlg.cxx.
|
overridevirtual |
Returns a list of ID of wire planes belonging to the specified ROP.
ropid | ID of the readout plane to convert into wire planes |
Note that this check is performed on the validity of the readout plane ID, that does not necessarily imply that the readout plane specified by the ID actually exists.
In this mapping, readout planes contain one or two wire planes each, depending on the view.
Implements geo::ChannelMapAlg.
Definition at line 324 of file ColdBoxChannelMapAlg.cxx.
|
overrideprivatevirtual |
Returns the type of signal on the specified channel
.
Implements geo::ChannelMapAlg.
Definition at line 699 of file ColdBoxChannelMapAlg.cxx.
|
inlineoverridevirtual |
Return the sorter.
Implements geo::ChannelMapAlg.
Definition at line 356 of file ColdBoxChannelMapAlg.h.
|
inlineprivate |
Returns the number of TPC sets in each cryostat.
Definition at line 527 of file ColdBoxChannelMapAlg.h.
|
inlineprivate |
Returns the number of TPC sets in the specified cryostat cid
.
Definition at line 531 of file ColdBoxChannelMapAlg.h.
|
overridevirtual |
Returns a list of ID of TPCs belonging to the specified TPC set.
tpcsetid | ID of the TPC set to convert into TPC IDs |
Each TPC set contains one TPC if on first induction plane, where wires are split, or two in the second induction and collection planes, which have shared channels.
Implements geo::ChannelMapAlg.
Definition at line 260 of file ColdBoxChannelMapAlg.cxx.
|
inlineprivate |
All geo::TPCGeo
objects in each TPC set.
Definition at line 535 of file ColdBoxChannelMapAlg.h.
|
inlineprivate |
All geo::TPCID
objects in the specified TPC set sid
.
Definition at line 539 of file ColdBoxChannelMapAlg.h.
|
overridevirtual |
Returns the ID of the TPC set the specified TPC belongs to.
tpcid | ID of the TPC |
If the TPC ID is not valid, an invalid TPC set ID is returned. Note that this check is performed on the validity of the TPC ID, that does not necessarily imply that the TPC specified by the ID actually exists.
Implements geo::ChannelMapAlg.
Definition at line 252 of file ColdBoxChannelMapAlg.cxx.
|
inlineprivate |
The TPC set including each TPC.
Definition at line 559 of file ColdBoxChannelMapAlg.h.
|
overridevirtual |
Frees the resources of this algorithm.
Implements geo::ChannelMapAlg.
Definition at line 81 of file ColdBoxChannelMapAlg.cxx.
|
overridevirtual |
Returns the index of the wire nearest to the specified position.
YPos | y coordinate on the wire plane |
ZPos | z coordinate on the wire plane |
planeID | ID of the plane |
Respect to NearestWireID(), this method returns a real number, representing a continuous coordinate in the wire axis, with the round values corresponding to the actual wires.
The plane is required to be valid and exist in the detector. Otherwise, the behaviour is undefined.
Reimplemented from geo::ChannelMapAlg.
Definition at line 160 of file ColdBoxChannelMapAlg.cxx.
|
inlineoverridevirtual |
Returns the index of the wire nearest to the specified position.
YPos | y coordinate on the wire plane |
ZPos | z coordinate on the wire plane |
PlaneNo | number of plane |
TPCNo | number of TPC |
cstat | number of cryostat |
geo::PlaneID
instead Implements geo::ChannelMapAlg.
Definition at line 184 of file ColdBoxChannelMapAlg.h.
|
overridevirtual |
Returns the ID of the ROP planeid belongs to, or invalid if none.
planeid | ID of the plane |
planeid
isIf the plane ID is not valid, an invalid readout plane ID is returned. Note that this check is performed on the validity of the plane ID, that does not necessarily imply that the plane specified by the ID actually exists.
planeid | ID of the plane |
In this mapping, readout planes and wire planes are mapped one-to-one. The returned value mirrors the plane ID in the readout space. If the plane ID is not valid, an invalid readout plane ID is returned. Note that this check is performed on the validity of the plane ID, that does not necessarily imply that the plane specified by the ID actually exists.
Implements geo::ChannelMapAlg.
Definition at line 315 of file ColdBoxChannelMapAlg.cxx.
|
private |
Mapping of channels and ROP's.
Definition at line 501 of file ColdBoxChannelMapAlg.h.
|
private |
Definition at line 623 of file ColdBoxChannelMapAlg.h.
|
private |
Range of channels covered by each of the wire planes.
Definition at line 504 of file ColdBoxChannelMapAlg.h.
|
private |
Information about TPC sets and readout planes in the geometry.
Definition at line 498 of file ColdBoxChannelMapAlg.h.
|
private |
class to sort geo objects
Definition at line 506 of file ColdBoxChannelMapAlg.h.
|
staticprivate |
Identifier for collection plane type.
Definition at line 516 of file ColdBoxChannelMapAlg.h.
|
staticprivate |
Identifier for first induction plane type.
Definition at line 512 of file ColdBoxChannelMapAlg.h.
|
staticprivate |
Identifier for second induction plane type.
Definition at line 514 of file ColdBoxChannelMapAlg.h.
|
staticprivate |
Identifier for unknown plane type.
Definition at line 519 of file ColdBoxChannelMapAlg.h.