17 std::string shortPrint(
const PixelRDO_Container *main_input_Pixel,
unsigned maxprint=25) {
18 std::ostringstream
os;
19 if(main_input_Pixel) {
20 for(
unsigned i=0;
i<maxprint;
i++) {
31 os<<
" [PixelRDO_Container==NULL]";
43 const PixelID* idhelper(
nullptr);
52 return StatusCode::SUCCESS;
57 ATH_MSG_DEBUG(
"createPersistent(): main converter. TRANS = "<<shortPrint(transCont));
63 unsigned int converter_num(1);
67 if(it_Coll != it_CollEnd) {
68 while (it_Coll != it_CollEnd && (*it_Coll) && (*it_Coll)->size() == 0 ) ++it_Coll;
69 if(it_Coll != it_CollEnd) {
72 ATH_MSG_DEBUG(
"Found container with Pixel1RawData concrete type objects");
75 ATH_MSG_FATAL(
"Converter not implemented for this concrete type ");
76 throw "Converter not implemented";
79 ATH_MSG_DEBUG(
"Container has only empty collections. Using TP1 converter");
87 if(converter_num == 1) {
99 static const pool::Guid p0_guid(
"7F2C09B6-0B47-4957-8BBA-EDC665A290AC");
100 static const pool::Guid TP1_guid(
"DA76970C-E019-43D2-B2F9-25660DCECD9D");
101 static const pool::Guid TP2_guid(
"7138342E-0A80-4A32-A387-2842A01C2539");
105 ATH_MSG_DEBUG(
"createTransient(): New TP version - TP2 branch");
110 ATH_MSG_DEBUG(
"createTransient(), TP2 branch: returns TRANS = "<<shortPrint(
res));
117 ATH_MSG_DEBUG(
"createTransient(): New TP version - TP1 branch");
122 ATH_MSG_DEBUG(
"createTransient(), TP1 branch: returns TRANS = "<<shortPrint(
res));
129 ATH_MSG_DEBUG(
"createTransient(): Old input file - p0 branch");
134 ATH_MSG_DEBUG(
"createTransient(), p0 branch: returns TRANS = "<<shortPrint(
res));
138 throw std::runtime_error(
"Unsupported persistent version of PixelRDO_Container");
#define ATH_CHECK
Evaluate an expression and check for errors.
std::pair< std::vector< unsigned int >, bool > res
This is an Identifier helper class for the Pixel subdetector.
InDetRawDataContainer_p2 PixelRDO_Container_PERS
InDetRawDataContainer< InDetRawDataCollection< PixelRDORawData > > PixelRDO_Container
const ServiceHandle< StoreGateSvc > & detStore() const
const_iterator end() const
return const_iterator for end of container
virtual const T * indexFindPtr(IdentifierHash hashId) const override final
return pointer on the found entry or null if out of range using hashed index - fast version,...
const_iterator begin() const
return const_iterator for first entry
This is an Identifier helper class for the Pixel subdetector.
virtual PixelRDO_Container * createTransient() override
virtual PixelRDO_Container_PERS * createPersistent(PixelRDO_Container *transCont) override
Pixel1RawDataContainerCnv_p1 m_converter_TP1
Pixel1RawDataContainerCnv_p2 m_converter_TP2
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
PixelRDO_ContainerCnv_p0 m_converter_p0
PixelRDO_ContainerCnv_PERS m_converter_PERS
virtual bool compareClassGuid(const Guid &clid) const
virtual StatusCode initialize()