10#include "GaudiKernel/MsgStream.h"
52 return AthAlgorithm::initialize();
66 return StatusCode::FAILURE;
76 const Identifier id = onOffMap->cnvToIdentifier(channelID);
77 if (
id.get_compact() == 0xffffffff) {
84 ATH_MSG_ERROR(
"Problem making cell info for hash = " << k <<
", terminating...");
86 return StatusCode::FAILURE;
90 std::vector<const EventData*> events;
91 for (
unsigned int g = 0; g < 3; g++) {
93 events.push_back(
new EventData(-1,-1,-1,-1));
98 for (
unsigned int g = 0; g < 3; g++) {
104 std::vector<std::vector<float> > deltaVal, deltaDer;
108 for (
unsigned int j = 0; j <
m_nSamples; j++) phaseVect[j] = 0;
109 for (
unsigned int i = 0; i <
m_nPhases; i++) {
110 deltaVal.push_back(phaseVect);
111 deltaDer.push_back(phaseVect);
115 ATH_MSG_DEBUG(
"--> Setting channel " << k <<
", id = " << channelID <<
", gain = " << gain <<
", size = "
116 << deltaVal.size() <<
" " << deltaDer.size());
117 for (
unsigned int i = 0; i <
m_nSamples; i++) {
124 ATH_MSG_DEBUG(
"--> No information for channel " << k<<
", id = " << channelID <<
", gain = " << gain);
126 lsc->
set(channelID, gain, deltaVal, deltaDer);
137 return StatusCode::FAILURE;
142 return StatusCode::SUCCESS;
152 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
char data[hepevt_bytes_allocation_ATLAS]
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
const ServiceHandle< StoreGateSvc > & detStore() const
This is a "hash" representation of an Identifier.
void setGroupingType(GroupingType type)
allow group type to be set externally - need to (re)initialize after setting grouping type
virtual StatusCode initialize()
Initialization done after creation or read back - derived classes may augment the functionality.
storage of the time histories of all the cells
void add(const DataContainer *data)
append data (takes ownership)
const ShapeErrorData * shapeErrorData(CaloGain::CaloGain gain, ShapeErrorType shapeErrorType=BestShapeError, const Residual *res=0) const
const TVectorD & xi() const
const TVectorD & xip() const
virtual StatusCode finalize() override final
Gaudi::Property< std::string > m_shapeErrorFileName
Gaudi::Property< std::string > m_groupingType
Gaudi::Property< std::string > m_outputFileName
LArSamples::DataStore * m_template
Gaudi::Property< std::string > m_sgKey
Gaudi::Property< std::string > m_outputTemplateFileName
ToolHandle< ILArShapeDumperTool > m_dumperTool
LArShapeCompleteMakerAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual ~LArShapeCompleteMakerAlg()
const LArOnlineID * m_onlineHelper
virtual StatusCode execute() override final
virtual StatusCode initialize() override final
SG::ReadCondHandleKey< LArOnOffIdMapping > m_onOffMapKey
Gaudi::Property< int > m_minNPulses
This class implements the ILArShape interface.
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.)
static const unsigned int nChannels