#include <DuneApaChannelMapAlg.h>
Classes | |
struct | PlaneData_t |
all data we need for each APA More... | |
Public Member Functions | |
DuneApaChannelMapAlg (const fhicl::ParameterSet &pset) | |
void | setSorter (const geo::GeoObjectSorter &sort) |
void | Initialize (GeometryData_t const &geodata) override |
Geometry initialisation. More... | |
void | Uninitialize () override |
Deconfiguration: prepare for a following call of Initialize() More... | |
std::vector< WireID > | ChannelToWire (raw::ChannelID_t channel) const override |
unsigned int | Nchannels () const override |
Returns the total number of channels present (not necessarily contiguous) More... | |
unsigned int | Nchannels (readout::ROPID const &ropid) const override |
Returns the number of channels in the specified ROP. More... | |
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... | |
double | WireCoordinate (double YPos, double ZPos, geo::PlaneID const &planeID) const override |
Returns the index of the wire nearest to the specified position. More... | |
SigType_t | SignalTypeForChannelImpl (raw::ChannelID_t const channel) const override |
Return the signal type of the specified channel. More... | |
std::set< PlaneID > const & | PlaneIDs () const override |
Returns a list of the plane IDs in the whole detector. More... | |
virtual geo::GeoObjectSorter const & | Sorter () const override |
Returns the object to sort geometry with. More... | |
unsigned int | NOpChannels (unsigned int NOpDets) const override |
Returns the number of optical channels contained in some detectors. More... | |
unsigned int | NOpHardwareChannels (unsigned int opDet) const override |
Returns the number of channels in the specified optical detectors. More... | |
unsigned int | OpChannel (unsigned int detNum, unsigned int channel=0) const override |
Returns the channel ID of the specified hardware channel. More... | |
unsigned int | OpDetFromOpChannel (unsigned int opChannel) const override |
Returns the optical detector the specified optical channel belongs. More... | |
unsigned int | HardwareChannelFromOpChannel (unsigned int opChannel) const override |
Returns the hardware channel number of specified optical channel. More... | |
virtual 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... | |
virtual WireID | NearestWireID (const TVector3 &worldPos, geo::PlaneID const &planeID) const override |
Returns the ID of the wire nearest to the specified position. 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... | |
virtual raw::ChannelID_t | PlaneWireToChannel (geo::WireID const &wireID) const override |
Returns the channel ID a wire is connected to. 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 |
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 |
Readout plane mapping | |
virtual unsigned int | NROPs (readout::TPCsetID const &tpcsetid) const override |
Returns the total number of ROP in the specified TPC set. More... | |
virtual unsigned int | MaxROPs () const override |
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 |
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 | MaxOpChannel (unsigned int NOpDets) const |
Returns the number of optical channels contained in some detectors. More... | |
virtual bool | IsValidOpChannel (unsigned int opChannel, unsigned int NOpDets) const |
Returns whether the ID identifies a valid optical detector 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... | |
Protected Types | |
template<class T > | |
using | Vector = std::vector< T > |
template<class T > | |
using | TwoVector = Vector< Vector< T >> |
template<class T > | |
using | ThreeVector = Vector< TwoVector< T >> |
template<class T > | |
using | FourVector = Vector< ThreeVector< T >> |
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 | |
bool | HasCryostat (CryostatID const &cid) const |
Returns whether the specified ID represents a valid cryostat. 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 | |
unsigned int | fOpDetFlag |
unsigned int | fChannelsPerOpDet |
Flag for OpDet channel map. More... | |
unsigned int | fNcryostat |
number of cryostats in the detector More... | |
unsigned int | fNchannels |
number of channels in the detector More... | |
unsigned int | fChannelsPerAPA |
number of channels in each APA More... | |
raw::ChannelID_t | fTopChannel |
book keeping highest channel # More... | |
unsigned int | fNTpcMax |
Max # TPCs in any cryostat. More... | |
unsigned int | fNApaMax |
Max # TPCs in any cryostat. More... | |
unsigned int | fNRopMax |
Max # ROPs in any APA. More... | |
std::vector< unsigned int > | fNTpc |
number of TPCs in each cryostat More... | |
std::vector< unsigned int > | fNApa |
number of APAs in each cryostat More... | |
std::set< View_t > | fViews |
vector of the views present in the detector More... | |
std::set< PlaneID > | fPlaneIDs |
vector of the PlaneIDs present in the detector More... | |
ThreeVector< unsigned int > | fWiresPerPlane |
wires/TPC plane for each (cry, tpc, pla)More... | |
TwoVector< unsigned int > | fPlanesPerTpc |
planes for each (cry, tpc)More... | |
TwoVector< unsigned int > | fRopsPerApa |
ROPs for each (cry, apa)More... | |
ThreeVector< unsigned int > | fApaTpcs |
TPCs for each APA. More... | |
ThreeVector< unsigned int > | fPlanesPerRop |
TPC planes for each (cry, apa, rop)More... | |
FourVector< unsigned int > | fRopTpc |
TPC planes for each (cry, apa, rop, rpl)More... | |
FourVector< unsigned int > | fRopPlane |
TPC plane index for each (cry, apa, rop, rpl)More... | |
TwoVector< unsigned int > | fChannelsPerApa |
channels for each APAMore... | |
ThreeVector< unsigned int > | fChannelsPerRop |
channels for each RopMore... | |
ThreeVector< unsigned int > | fAnchoredWires |
anchored wires for each (cry, tpc, pla)More... | |
ThreeVector< unsigned int > | fPlaneApa |
APA for each TPC plane (cry, tpc, pla) More... | |
ThreeVector< unsigned int > | fPlaneRop |
ROP for each TPC plane (cry, tpc, pla) More... | |
ThreeVector< unsigned int > | fPlaneRopIndex |
Index in ROP for each TPC plane (cry, tpc, pla) More... | |
ThreeVector< unsigned int > | fAnchoredPlaneRop |
ROP holding the anchored wires for (cry, tpc, pla) More... | |
ThreeVector< unsigned int > | fWiresPerRop |
wires/ROP for each (cry, apa, rop)More... | |
PlaneInfoMap_t< raw::ChannelID_t > | fFirstChannelInThisRop |
(cry, apa, rop) More... | |
PlaneInfoMap_t< raw::ChannelID_t > | fFirstChannelInNextRop |
(cry, apa, rop) More... | |
const geo::GeoObjectSorter * | fSorter |
sorts geo::XXXGeo objects More... | |
PlaneInfoMap_t< PlaneData_t > | fPlaneData |
std::vector< double > | fWirePitch |
std::vector< double > | fOrientation |
std::vector< double > | fSinOrientation |
std::vector< double > | fCosOrientation |
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 45 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 244 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 242 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 240 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 238 of file DuneApaChannelMapAlg.h.
DuneApaChannelMapAlg::DuneApaChannelMapAlg | ( | const fhicl::ParameterSet & | pset | ) |
Definition at line 43 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns the ID of the ROP the channel belongs to (invalid if none)
cet::exception | (category: "Geometry") if non-existent channel |
Implements geo::ChannelMapAlg.
Definition at line 707 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns a list of TPC wires connected to the specified readout channel ID
cet::exception | (category: "Geometry") if non-existent channel |
Implements geo::ChannelMapAlg.
Definition at line 324 of file DuneApaChannelMapAlg.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 732 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns the ID of the first TPC belonging to the specified TPC set
Implements geo::ChannelMapAlg.
Definition at line 637 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns the ID of the first plane belonging to the specified ROP.
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 742 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns the hardware channel number of specified optical channel.
opChannel | the optical detector channel being queried |
If the specified optical channel is invalid, behaviour is undefined.
Reimplemented from geo::ChannelMapAlg.
Reimplemented in geo::ProtoDUNEChannelMapAlg, geo::ProtoDUNEChannelMapAlgv7, and geo::ProtoDUNEChannelMapAlgv8.
Definition at line 589 of file DuneApaChannelMapAlg.cxx.
|
inlineprotected |
Returns whether the specified ID represents a valid cryostat.
Definition at line 298 of file DuneApaChannelMapAlg.h.
|
overridevirtual |
Returns whether we have the specified ROP
Implements geo::ChannelMapAlg.
Definition at line 662 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns whether we have the specified TPC set
Implements geo::ChannelMapAlg.
Definition at line 611 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Geometry initialisation.
Implements geo::ChannelMapAlg.
Reimplemented in geo::ProtoDUNEChannelMapAlg, geo::ProtoDUNEChannelMapAlgv7, and geo::ProtoDUNEChannelMapAlgv8.
Definition at line 61 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns the largest number of ROPs a TPC set in the detector has
Implements geo::ChannelMapAlg.
Definition at line 656 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns the largest number of TPC sets any cryostat in the detector has
Implements geo::ChannelMapAlg.
Definition at line 605 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns the total number of channels present (not necessarily contiguous)
Implements geo::ChannelMapAlg.
Definition at line 396 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns the number of channels in the specified ROP.
Implements geo::ChannelMapAlg.
Definition at line 402 of file DuneApaChannelMapAlg.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 77 of file DuneApaChannelMapAlg.h.
|
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 446 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns the number of optical channels contained in some detectors.
NOpDets | number of optical detectors |
This function returns how many channels can be expected to be present in a detector with NOpDets optical detectors. This is an upper limit, as not all channels have necessarily to be present.
For example: if a detector has four channels per optical detector, the returned value will be four times the argument NOpDets. If there is a single channel on each optical detector, the return value will be the value NOpDets (this is in fact the fallback implementation). If each optical detector can have anywhere between 2 and 12 channels, the returned value is 12 times NOpDets, and it will be an overestimation of the number of channels.
Reimplemented from geo::ChannelMapAlg.
Reimplemented in geo::ProtoDUNEChannelMapAlg, geo::ProtoDUNEChannelMapAlgv7, and geo::ProtoDUNEChannelMapAlgv8.
Definition at line 552 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns the number of channels in the specified optical detectors.
opDet | ID of the chosen optical detector |
This function returns how many channels are actually present in the optical detector with the specified ID.
For example: if a detector has four channels per optical detector, the returned value will be four, regardless opDet, and . If there is a single channel on each optical detector, the return value will be 1, again ignoring opDet (this is in fact the fallback implementation). If each optical detector can have anywhere between 2 and 12 channels, the returned value will be 2, 12, etc., that is the exact number of channels in opDet.
Although implementations are encouraged to return 0 on invalid optical detectors, the actual return value in that case is undefined.
Reimplemented from geo::ChannelMapAlg.
Reimplemented in geo::ProtoDUNEChannelMapAlg, geo::ProtoDUNEChannelMapAlgv7, and geo::ProtoDUNEChannelMapAlgv8.
Definition at line 559 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns the total number of ROP in the specified TPC set.
tpcsetid | TPC set ID |
Note that this methods explicitly check the existence of the TPC set.
Implements geo::ChannelMapAlg.
Definition at line 647 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns the total number of TPC sets in the specified cryostat.
cryoid | cryostat ID |
Implements geo::ChannelMapAlg.
Definition at line 597 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns the channel ID of the specified hardware channel.
detNum | optical detector ID |
hwchannel | hardware channel within the specified optical detector |
If the input IDs identify a non-existing channel, the result is undefined.
Reimplemented from geo::ChannelMapAlg.
Reimplemented in geo::ProtoDUNEChannelMapAlg, geo::ProtoDUNEChannelMapAlgv7, and geo::ProtoDUNEChannelMapAlgv8.
Definition at line 573 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns the optical detector the specified optical channel belongs.
opChannel | the optical detector channel being queried |
If the specified optical channel is invalid, behaviour is undefined.
Reimplemented from geo::ChannelMapAlg.
Reimplemented in geo::ProtoDUNEChannelMapAlg, geo::ProtoDUNEChannelMapAlgv7, and geo::ProtoDUNEChannelMapAlgv8.
Definition at line 581 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns a list of the plane IDs in the whole detector.
Implements geo::ChannelMapAlg.
Definition at line 546 of file DuneApaChannelMapAlg.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 86 of file DuneApaChannelMapAlg.h.
|
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 469 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns a list of ID of TPCs the specified ROP spans.
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 on non-existing readout planes is undefined.
Implements geo::ChannelMapAlg.
Definition at line 695 of file DuneApaChannelMapAlg.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. Check if the ROP exists with HasROP(). The behaviour on non-existing readout planes is undefined.
Implements geo::ChannelMapAlg.
Definition at line 679 of file DuneApaChannelMapAlg.cxx.
void DuneApaChannelMapAlg::setSorter | ( | const geo::GeoObjectSorter & | sort | ) |
Definition at line 55 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Return the signal type of the specified channel.
channel | ID of the channel |
On any type of error (e.g., invalid or unknown channel ID), geo::kMysteryType is returned.
Implements geo::ChannelMapAlg.
Definition at line 499 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns the object to sort geometry with.
Implements geo::ChannelMapAlg.
Definition at line 724 of file DuneApaChannelMapAlg.cxx.
|
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 |
Implements geo::ChannelMapAlg.
Definition at line 627 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns the ID of the TPC set the specified TPC belongs to.
tpcid | ID of the TPC |
Implements geo::ChannelMapAlg.
Definition at line 617 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Deconfiguration: prepare for a following call of Initialize()
Implements geo::ChannelMapAlg.
Reimplemented in geo::ProtoDUNEChannelMapAlg, geo::ProtoDUNEChannelMapAlgv7, and geo::ProtoDUNEChannelMapAlgv8.
Definition at line 317 of file DuneApaChannelMapAlg.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 |
PlaneNo | number of plane |
TPCNo | number of TPC |
cstat | number of cryostat |
geo::PlaneID
instead Implements geo::ChannelMapAlg.
Definition at line 414 of file DuneApaChannelMapAlg.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 422 of file DuneApaChannelMapAlg.cxx.
|
overridevirtual |
Returns the ID of the ROP planeid belongs to, or invalid if none.
planeid | ID of the wire plane |
Note that this check is performed on the validity of the wire plane ID, that does not necessarily imply that the wire plane specified by the ID actually exists. Check if the wire plane exists with HasPlane(). The behaviour on non-existing wire planes is undefined.
Implements geo::ChannelMapAlg.
Definition at line 668 of file DuneApaChannelMapAlg.cxx.
|
protected |
ROP holding the anchored wires for (cry, tpc, pla)
Definition at line 271 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 267 of file DuneApaChannelMapAlg.h.
|
protected |
TPCs for each APA.
Definition at line 261 of file DuneApaChannelMapAlg.h.
|
protected |
number of channels in each APA
Definition at line 249 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 265 of file DuneApaChannelMapAlg.h.
|
protected |
Flag for OpDet channel map.
Definition at line 246 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 266 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 295 of file DuneApaChannelMapAlg.h.
|
protected |
(cry, apa, rop)
Definition at line 274 of file DuneApaChannelMapAlg.h.
|
protected |
(cry, apa, rop)
Definition at line 273 of file DuneApaChannelMapAlg.h.
|
protected |
number of APAs in each cryostat
Definition at line 255 of file DuneApaChannelMapAlg.h.
|
protected |
Max # TPCs in any cryostat.
Definition at line 252 of file DuneApaChannelMapAlg.h.
|
protected |
number of channels in the detector
Definition at line 248 of file DuneApaChannelMapAlg.h.
|
protected |
number of cryostats in the detector
Definition at line 247 of file DuneApaChannelMapAlg.h.
|
protected |
Max # ROPs in any APA.
Definition at line 253 of file DuneApaChannelMapAlg.h.
|
protected |
number of TPCs in each cryostat
Definition at line 254 of file DuneApaChannelMapAlg.h.
|
protected |
Max # TPCs in any cryostat.
Definition at line 251 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 245 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 293 of file DuneApaChannelMapAlg.h.
|
protected |
APA for each TPC plane (cry, tpc, pla)
Definition at line 268 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 290 of file DuneApaChannelMapAlg.h.
|
protected |
vector of the PlaneIDs present in the detector
Definition at line 257 of file DuneApaChannelMapAlg.h.
|
protected |
ROP for each TPC plane (cry, tpc, pla)
Definition at line 269 of file DuneApaChannelMapAlg.h.
|
protected |
Index in ROP for each TPC plane (cry, tpc, pla)
Definition at line 270 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 262 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 259 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 264 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 260 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 263 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 294 of file DuneApaChannelMapAlg.h.
|
protected |
sorts geo::XXXGeo objects
Definition at line 275 of file DuneApaChannelMapAlg.h.
|
protected |
book keeping highest channel #
Definition at line 250 of file DuneApaChannelMapAlg.h.
|
protected |
vector of the views present in the detector
Definition at line 256 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 292 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 258 of file DuneApaChannelMapAlg.h.
|
protected |
Definition at line 272 of file DuneApaChannelMapAlg.h.