|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
   22 #include "CoolKernel/types.h" 
   23 #include "CoolKernel/Record.h" 
   24 #include "CoralBase/AttributeListSpecification.h" 
   27                         ISvcLocator* pSvcLocator ) : 
 
   42   return StatusCode::SUCCESS;
 
   47   return StatusCode::SUCCESS;
 
   52   return StatusCode::SUCCESS;
 
   57   const EventContext& ctx = Gaudi::Hive::currentContext();
 
   70      return StatusCode::FAILURE;
 
   73   ATH_MSG_INFO( 
"Working on hash range 0 to " << hashMax  );
 
   75   coral::AttributeListSpecification* 
spec = 
new coral::AttributeListSpecification();
 
   76   spec->extend(
"CaloCondBlob16M",
"blob");
 
   85   std::vector<std::vector<float> > 
defVec;
 
   91   std::vector<float> setVec(1,1);
 
   92   unsigned nFCAL=0, nSmall=0, nSet=0;
 
   93   for(
unsigned h=0;
h<hashMax;++
h) {
 
   99       const float corr=scaleCorr->HVScaleCorr(hwid);
 
  101       if (std::fabs(1.0-corr)>0.01) {
 
  111     flt->setData(
h,0,setVec);
 
  114   ATH_MSG_INFO( 
"Found " << nFCAL << 
" FCAL channels of which " << nSet << 
" have a correction. (" << nSmall << 
" below threshold)"  );
 
  116   return StatusCode::SUCCESS;
 
  
def retrieve(aClass, aKey=None)
Class for storing a number of floats (Flt) and functions on those.
virtual ~FCAL_HV_Energy_Rescale()
Destructor:
const std::string & key() const
Return the StoreGate ID for the referenced object.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
void calo_cell_hash_range(const Identifier id, IdentifierHash &caloCellMin, IdentifierHash &caloCellMax) const
to loop on 'global' cell hashes of one sub-calorimeter alone
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)
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
#define CHECK(...)
Evaluate an expression and check for errors.
Helper class for offline cell identifiers.
virtual StatusCode execute()
FCAL_HV_Energy_Rescale(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Helpers for checking error return status codes and reporting errors.
virtual StatusCode finalize()
StatusCode initialize(bool used=true)
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,...
static CaloCondBlobFlt * getInstance(coral::Blob &blob)
Returns a pointer to a non-const CaloCondBlobFlt.
SG::ReadCondHandleKey< ILArHVScaleCorr > m_scaleCorrKey
virtual StatusCode initialize()
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...