|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "GaudiKernel/MsgStream.h"
25 m_dumperTool(
"LArShapeDumperTool")
65 return StatusCode::FAILURE;
76 if (
id.get_compact() == 0xffffffff) {
83 ATH_MSG_ERROR(
"Problem making cell info for hash = " <<
k <<
", terminating...");
84 return StatusCode::FAILURE;
88 std::vector<const EventData*>
events;
89 for (
unsigned int g = 0;
g < 3;
g++) {
96 for (
unsigned int g = 0;
g < 3;
g++) {
102 std::vector<std::vector<float> > deltaVal, deltaDer;
106 for (
unsigned int j = 0; j <
m_nSamples; j++) phaseVect[j] = 0;
108 deltaVal.push_back(phaseVect);
109 deltaDer.push_back(phaseVect);
113 ATH_MSG_DEBUG(
"--> Setting channel " <<
k <<
", id = " << channelID <<
", gain = " <<
gain <<
", size = "
114 << deltaVal.size() <<
" " << deltaDer.size());
122 ATH_MSG_DEBUG(
"--> No information for channel " <<
k<<
", id = " << channelID <<
", gain = " <<
gain);
124 lsc->
set(channelID,
gain, deltaVal, deltaDer);
135 return StatusCode::FAILURE;
140 return StatusCode::SUCCESS;
150 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
virtual ~LArShapeCompleteMakerAlg()
char data[hepevt_bytes_allocation_ATLAS]
Gaudi::Property< int > m_minNPulses
virtual StatusCode execute() override final
Gaudi::Property< std::string > m_shapeErrorFileName
const LArOnlineID * m_onlineHelper
LArShapeCompleteMakerAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::string > m_outputFileName
This class implements the ILArShape interface.
virtual StatusCode initialize() override final
virtual StatusCode finalize() override final
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
const TVectorD & xip() const
Gaudi::Property< std::string > m_outputTemplateFileName
static const unsigned int nChannels
::StatusCode StatusCode
StatusCode definition for legacy code.
HWIdentifier channel_Id(int barrel_ec, int pos_neg, int feedthrough, int slot, int channel) const
create channel identifier from fields
LArSamples::DataStore * m_template
InDet::SiSpacePointsSeedMakerEventData EventData
ToolHandle< ILArShapeDumperTool > m_dumperTool
void set(const HWIdentifier &CellID, int gain, const std::vector< std::vector< float > > &vShape, const std::vector< std::vector< float > > &vShapeDer, float timeOffset=0, float timeBinWidth=25./24.)
StatusCode initialize(bool used=true)
storage of the time histories of all the cells
const ShapeErrorData * shapeErrorData(CaloGain::CaloGain gain, ShapeErrorType shapeErrorType=BestShapeError, const Residual *res=0) const
Identifier cnvToIdentifier(const HWIdentifier &sid) const
create an Identifier from a HWIdentifier (inline)
virtual StatusCode initialize()
Initialization done after creation or read back - derived classes may augment the functionality.
#define ATH_MSG_WARNING(x)
void add(const DataContainer *data)
append data (takes ownership)
SG::ReadCondHandleKey< LArOnOffIdMapping > m_onOffMapKey
const TVectorD & xi() const
const ScaledErrorData * sed
Gaudi::Property< std::string > m_sgKey
Gaudi::Property< std::string > m_groupingType
bool writeTrees(const char *fileName)
HistoryContainer * makeNewHistory(const IdentifierHash &hash, CellInfo *info)
append data (takes ownership of everything)