|
ATLAS Offline Software
|
Go to the documentation of this file.
28 return StatusCode::SUCCESS;
37 return StatusCode::SUCCESS;
46 auto out = std::make_unique<CaloNoiseSigmaDiff>(hash_max,0.0);
51 for(
int i=0;
i<hash_max;++
i){
53 if (calo_cell_id->
is_tile(
h) )
continue;
56 float sigma_diff = nn1*nn1-nn0*nn0;
57 if ( sigma_diff < 0.0 ) {
out->at(
i)=0;
continue;}
58 out->at(
i)=std::sqrt(sigma_diff);
61 output.addDependency(noiseCDO);
64 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
virtual StatusCode initialize() override
Gaudi initialize method.
bool is_tile(const Identifier id) const
test if the id belongs to the Tiles
float getNoise(const IdentifierHash h, const int gain) const
Accessor by IdentifierHash and gain.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
An algorithm that can be simultaneously executed in multiple threads.
CaloNoiseSigmaDiffCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
NAME : CaloNoiseSigmaDiffCondAlg.cxx PACKAGE : Calorimeter/CaloRec.
This class initializes the Calo (LAr and Tile) offline identifiers.
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
Helper class for offline cell identifiers.
const CaloCell_ID * getCaloCell_ID(void) const
Access to IdHelper.
StatusCode initialize(bool used=true)
SG::ReadCondHandleKey< CaloNoise > m_noiseCDOKey
Property: CaloNoise (conditions input).
virtual StatusCode execute(const EventContext &ctx) const override
Execute the algorithm.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
SG::WriteCondHandleKey< CaloNoiseSigmaDiff > m_noiseSigmaDiff
size_type calo_cell_hash_max(void) const
cell 'global' hash table max size
const_pointer_type cptr()