 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef GLOBALSIM_GLOBALLARCELLCONTAINER_H
6 #define GLOBALSIM_GLOBALLARCELLCONTAINER_H
53 const std::vector<GlobalLArCell*>&
getCellsForFeb2(
const std::string& feb2)
const;
68 const std::string&
getMuxForFeb2(
const std::string& feb2Key)
const;
80 bool muxInError(
const std::string& muxKey)
const;
std::size_t getMaxCellsPerFeb2() const
Function to get maximum number of cells per FEB2.
bool feb2InOverflow(const std::string &feb2Key) const
Check if a given FEB2 is in overflow.
const std::vector< std::string > & getOrderedFeb2sForMux(const std::string &mux) const
Function to get ordered list of FEB2s for a given MUX name.
bool feb2InError(const std::string &feb2Key) const
Check if a given FEB2 is in error.
GlobalLArCellContainer()=default
Default constructor.
Helper struct to hold overflow and error flags.
void push_back(const GlobalLArCell &theCell)
Reimplementation of the push_back function to fill LArCells.
std::map< std::string, StatusFlags > m_muxFlags
map which stores overflow and error bits for each MUX
std::unordered_set< std::string > m_muxKeys
vector of all MUX names
const std::unordered_set< std::string > & getMuxKeys() const
Function to return the full list of MUX names.
const std::unordered_set< std::string > & getFeb2Keys() const
Function to return the full list of FEB2 names.
std::size_t m_maxCellsPerFeb2
Maximum number of cells per FEB2 in given energy encoding scheme.
AlgTool to obtain a selection of eFex RoIs read in from the event store.
const std::vector< GlobalLArCell * > & getCellsForFeb2(const std::string &feb2) const
Function to get all GlobalLArCells for a given FEB2 name.
std::unordered_set< std::string > m_feb2Keys
vector of all FEB2 names
std::map< std::string, StatusFlags > m_feb2Flags
map which stores overflow and error bits for each FEB2
const std::string & getMuxForFeb2(const std::string &feb2Key) const
Function to get the associated MUX name for a given FEB2.
An STL vector of pointers that by default owns its pointed-to elements.
bool muxInOverflow(const std::string &muxKey) const
Check if a given MUX is in overflow.
Helper struct to keep track of correct order of FEB2 for each MUX.
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
void setFeb2Flags(const std::string &feb2Key, bool overflow, bool error)
Set overflow and error flag for a FEB2.
void setMaxCellsPerFeb2(int n)
Function to set maximum number of cells per FEB2.
std::map< std::string, std::vector< GlobalLArCell * > > m_feb2ToCells
map which keeps track of which cells are associated with which FEB2
std::map< std::string, std::vector< std::string > > m_muxToFeb2Ordered
map which holds the ordered list of FEB2s for each MUX
SG_BASE(GlobalSim::GlobalLArCellContainer, DataVector< GlobalSim::GlobalLArCell >)
std::map< std::string, std::string > m_feb2ToMux
map which acts as lookuptable to get the associated MUX from a FEB2 name
macros to associate a CLID to a type
bool muxInError(const std::string &muxKey) const
Check if a given MUX is in error.