|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "Identifier/Identifier.h"
32 m_elecNoiseRescaled(0),
63 m_tree =
new TTree(
"mytree",
"Calo Noise ntuple");
78 ATH_MSG_INFO (
" end of CaloRescaleNoise::initialize " );
79 return StatusCode::SUCCESS;
85 return StatusCode::SUCCESS;
91 const EventContext& ctx = Gaudi::Hive::currentContext();
96 return StatusCode::FAILURE;
99 FILE*
fp = std::fopen(
"calonoise.txt",
"w");
107 if( not caloMgrHandle.isValid()){
109 ATH_MSG_ERROR(
"CaloRescaleNoise::stop: caloMgrHandle invalid.");
110 return StatusCode::FAILURE;
149 int ii = (
int) (idSubHash);
154 m_OffId = (
int)(
id.get_identifier32().get_compact());
161 if (subCalo<3)
ngain=3;
195 if (iCool<48 && m_elecNoise>0. && hvonline > 1.) {
204 " layer/eta/phi " <<
m_layer <<
" " <<
m_eta <<
" " <<
m_phi <<
" OldNoise,NewNoise " <<
221 return StatusCode::SUCCESS;
226 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
virtual StatusCode stop() override
standard Athena-Algorithm method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
bool is_em_endcap(const Identifier id) const
test if the id belongs to the EM Endcap
int pos_neg(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
CaloRescaleNoise(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
int calo_sample(const Identifier id) const
returns an int taken from Sampling enum and describing the subCalo to which the Id belongs.
SG::ReadCondHandleKey< CaloNoise > m_pileupNoiseKey
const std::string & key() const
Return the StoreGate ID for the referenced object.
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.
bool is_hec(const Identifier id) const
test if the id belongs to the HEC
float eta_raw() const
cell eta_raw
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
ServiceHandle< ITHistSvc > m_thistSvc
SG::ReadCondHandleKey< CaloNoise > m_totalNoiseKey
bool is_em(const Identifier id) const
test if the id belongs to LArEM
This class initializes the Calo (LAr and Tile) offline identifiers.
SG::ReadCondHandleKey< CaloNoise > m_elecNoiseKey
bool is_fcal(const Identifier id) const
test if the id belongs to the FCAL - true also for MiniFCAL
int sampling(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
::StatusCode StatusCode
StatusCode definition for legacy code.
int eta(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
IdentifierHash subcalo_cell_hash(const Identifier cellId, int &subCalo) const
create hash id from 'global' cell id
bool is_em_barrel(const Identifier id) const
test if the id belongs to the EM barrel
SG::ReadCondHandleKey< ILArHVScaleCorr > m_onlineScaleCorrKey
float m_elecNoiseRescaled
StatusCode initialize(bool used=true)
virtual StatusCode initialize() override
standard Athena-Algorithm method
int phi(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
Identifier cell_id(const int subCalo, const int barec_or_posneg, const int sampling_or_fcalmodule, const int region_or_dummy, const int eta, const int phi) const
Make a cell (== channel) ID from constituting fields and subCalo index; for (Mini)FCAL,...
This class provides the client interface for accessing the detector description information common to...
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
#define ATH_MSG_WARNING(x)
SG::ReadCondHandleKey< ILArHVScaleCorr > m_scaleCorrKey
virtual ~CaloRescaleNoise()
Default Destructor.
virtual const float & HVScaleCorr(const HWIdentifier &id) const =0
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
virtual StatusCode execute() override
standard Athena-Algorithm method
const CaloCell_ID * m_calo_id
virtual StatusCode finalize() override
standard Athena-Algorithm method
float phi_raw() const
cell phi_raw
size_type calo_cell_hash_max(void) const
cell 'global' hash table max size