5#include "GaudiKernel/Bootstrap.h"
6#include "GaudiKernel/ISvcLocator.h"
9#include "LArReadoutGeometry/FCAL_ChannelMap.h"
13 : GeoVDetectorManager()
17 for (
int s=0;s<2;s++) {
18 for (
int m=0;m<3;m++) {
23 SmartIF<StoreGateSvc> detStore{Gaudi::svcLocator()->service(
"DetectorStore")};
24 if (!detStore.isValid()) {
25 throw std::runtime_error(
"Error in FCALDetectorManager: cannot access DetectorStore");
29 if (detStore->retrieve(cMap)==StatusCode::FAILURE) {
30 throw std::runtime_error(
"You must construct the GeoModel FCAL before instantiating FCALDetectorManager");
40 for (
int s=0;s<2;s++) {
41 for (
int m=0;m<3;m++) {
void addModule(FCALModule *fcalModule)
Adds an FCAL Module.
ModulePtr m_Module[2][3]
This is the array in which three modules in two sides are kept.
FCALDetectorManager(const FCALHVManager *hvManager=nullptr)
Constructor.
std::vector< constFCALModule * >::const_iterator ConstIterator
std::vector< PVLink > m_treeTop
This is the set of tree tops managed by this detector node.
virtual ~FCALDetectorManager() override
Desctructor.
const FCAL_ChannelMap * m_fcal_channel_map
FCALDetectorManager::ConstIterator beginFCAL() const
Iterate over FCAL Modules.
std::vector< const FCALModule * > m_DetList
Vector of FCAL Modules.
FCALDetectorManager::ConstIterator endFCAL() const
Iterate over FCAL Modules.
void addTreeTop(const PVLink &treeTop)
Add a Tree Top.
const FCALModule * getFCAL(FCALModule::Module module, FCALModule::Endcap endcap) const
Retreive a specific FCAL Module.
const FCALHVManager & getHVManager() const
Get the HV Manager:
virtual unsigned int getNumTreeTops() const override
Gets the number of tree tops.
const FCALHVManager * m_HVManager
virtual PVConstLink getTreeTop(unsigned int i) const override
Gets the ith tree top.
This class provides direct access to information on the HV electrodes within the barrels.
FCALModule::Endcap getEndcapIndex() const
Returns the side (O=Negative, 1=Positive)
void setManager(FCALDetectorManager *fcalManager)
Sets the manager.
FCALModule::Module getModuleIndex() const
Returns the Module (1,2, or 3)
This class contains the tube and tile maps for the FCAL A tile is of a set of FCAL tubes.