62 auto lsc = std::make_unique<LArShapeComplete>();
64 if (lsc->setGroupingType(
m_groupingType,
msg()).isFailure() || lsc->initialize().isFailure()) {
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...");
85 return StatusCode::FAILURE;
89 std::vector<const EventData*> events;
90 for (
unsigned int g = 0; g < 3; g++) {
92 events.push_back(
new EventData(-1,-1,-1,-1));
95 History* history =
new History(*histCont, events, k, errorGetter.get());
97 for (
unsigned int g = 0; g < 3; g++) {
106 std::vector<std::vector<float> > deltaVal(
m_nPhases, phaseVect);
107 std::vector<std::vector<float> > deltaDer(
m_nPhases, phaseVect);
111 ATH_MSG_DEBUG(
"--> Setting channel " << k <<
", id = " << channelID <<
", gain = " << gain <<
", size = "
112 << deltaVal.size() <<
" " << deltaDer.size());
113 for (
unsigned int i = 0; i <
m_nSamples; i++) {
120 ATH_MSG_DEBUG(
"--> No information for channel " << k<<
", id = " << channelID <<
", gain = " << gain);
122 lsc->set(channelID, gain, deltaVal, deltaDer);
133 return StatusCode::FAILURE;
138 return StatusCode::SUCCESS;
void add(const DataContainer *data)
append data (takes ownership)
const ShapeErrorData * shapeErrorData(CaloGain::CaloGain gain, ShapeErrorType shapeErrorType=BestShapeError, const Residual *res=0) const