8 #ifndef HARDWAREMAPPERSERVICE_H 9 #define HARDWAREMAPPERSERVICE_H 36 class ActivityRegistry;
44 void printASICMap(
unsigned int num_asics_to_print=20);
45 void printBoardMap(
unsigned int num_boards_to_print=20);
46 void printTPCMap(
unsigned int num_tpcs_to_print=20);
47 void printAPAMap(
unsigned int num_apas_to_print=20);
48 void printHardwareMaps();
50 void printGeometryInfo();
52 unsigned int getNASICs()
const {
return fASICMap.size();}
53 unsigned int getNBoards()
const {
return fBoardMap.size();}
54 unsigned int getNAPAs()
const {
return fAPAMap.size();}
55 unsigned int getNTPCs()
const {
return fTPCMap.size();}
59 std::vector<raw::ChannelID_t>
const& getTPCChannels(
Hardware::ID tpc_id);
60 std::vector<raw::ChannelID_t>
const& getAPAChannels(
Hardware::ID apa_id);
63 std::set<raw::ChannelID_t>
const& getTPCChannelsSet(
Hardware::ID tpc_id);
64 std::set<raw::ChannelID_t>
const& getAPAChannelsSet(
Hardware::ID apa_id);
69 void checkGeomVsFileDetectorName(
art::Run const&
run);
88 void fillHardwareMaps();
unsigned int getNBoards() const
art::ServiceHandle< geo::Geometry > fGeometryService
Hardware::BoardMap fBoardMap
unsigned int getNAPAs() const
std::string fDetectorNameFromGeometry
art framework interface to geometry description
unsigned int fNBoardsPerAPA
unsigned int getNASICs() const
#define DECLARE_ART_SERVICE(svc, scope)
std::map< ID, std::shared_ptr< TPC >> TPCMap
std::map< ID, std::shared_ptr< ASIC >> ASICMap
unsigned int getNTPCs() const
unsigned int fNASICsPerBoard
std::map< ID, std::shared_ptr< APA >> APAMap
std::string fDetectorNameFromFile
Hardware::ASICMap fASICMap
std::map< ID, std::shared_ptr< Board >> BoardMap