|
ATLAS Offline Software
|
Go to the documentation of this file.
30 return StatusCode::SUCCESS;
50 return StatusCode::SUCCESS;
64 <<
" is not a valid Calorimeter sampling name and will be ignored! " );
67 acceptedSamplings[
static_cast<int> (samp)] =
true;
78 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
static CaloSample getSampling(const std::string &name)
Return the sampling code for a given name.
virtual StatusCode execute(const EventContext &ctx) const override
Execute the algorithm.
Handle for requesting thinning for a data object.
int calo_sample(const Identifier id) const
returns an int taken from Sampling enum and describing the subCalo to which the Id belongs.
std::vector< IdentifierHash > m_cellHashes
Decoded list of cells to save.
Handle for requesting thinning for a data object.
StatusCode initialize(const std::string &stream, const std::string &qualifier, bool used=true)
Should be called during the initialize phase.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Thin calorimeter cells by sampling.
StringProperty m_streamName
Name of the stream being thinned.
::StatusCode StatusCode
StatusCode definition for legacy code.
StringArrayProperty m_samplingNames
virtual StatusCode initialize() override
Gaudi initialize method.
SG::ThinningHandleKey< CaloCellContainer > m_cells
Cell container to thin.
static constexpr unsigned int getNumberOfSamplings()
Get number of available samplings.
const CaloCell_ID * m_caloID
Calo ID helper.
Handle class for reading from StoreGate.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
StatusCode decodeSamplings()
Decode the provided list of calorimeter samplings.
size_type calo_cell_hash_max(void) const
cell 'global' hash table max size