|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
    9 #include "Identifier/Identifier.h" 
   31   m_elecNoiseRescaled(0),
 
   61   m_tree = 
new TTree(
"mytree",
"Calo Noise ntuple");
 
   75   ATH_MSG_INFO ( 
" end of CaloRescaleNoise::initialize " );
 
   76   return StatusCode::SUCCESS; 
 
   82   return StatusCode::SUCCESS; 
 
   88   const EventContext& ctx = Gaudi::Hive::currentContext();
 
   93      return StatusCode::FAILURE;
 
   96   FILE* 
fp = std::fopen(
"calonoise.txt",
"w");
 
  101      scaleCorr = *scaleCorrHdl;
 
  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;    
 
  194                 if (iCool<48 && m_elecNoise>0. && hvonline > 1.) {
 
  203                                       " layer/eta/phi " << 
m_layer << 
" " << 
m_eta << 
" " << 
m_phi << 
" OldNoise,NewNoise " <<
 
  220   return StatusCode::SUCCESS;
 
  225   return StatusCode::SUCCESS;
 
  
def retrieve(aClass, aKey=None)
virtual StatusCode stop() override
standard Athena-Algorithm method
std::string show_to_string(const Identifier id, const IdContext *context=0, char sep='.') const
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
bool is_em(const Identifier id) const
test if the id belongs to LArEM
This class initializes the Calo (LAr and Tile) offline identifiers.
size_type calo_cell_hash_max() const
cell 'global' hash table max size
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.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
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...
#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