Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
25 static const std::string
prefix =
"HLT_TrigRoiDescriptorCollection";
26 static const std::string newPrefix =
"HLT_xAOD__RoiDescriptorStore";
38 std::vector< std::string >
keys;
42 std::vector< std::vector< uint32_t > > roiserial;
44 bool just_dandy =
true;
52 for(
const std::string&
key :
keys ) {
58 ( newPrefix +
key.substr(
prefix.size() ) ) :
73 auto store = std::make_unique< xAOD::RoiDescriptorStore >();
74 auto aux = std::make_unique< xAOD::RoiDescriptorStoreAuxInfo >();
75 store->setStore( aux.get() );
76 store->setSerialised( roiserial );
81 else just_dandy =
false;
85 return just_dandy ? StatusCode::SUCCESS : StatusCode::FAILURE;
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
RoiWriter(const std::string &name, ISvcLocator *pSvcLocator)
Algorithm constructor.
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Handle class for recording to StoreGate.
Property holding a SG store/key/clid from which a WriteHandle is made.
virtual StatusCode execute(const EventContext &ctx) const override
Execute the conversion.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Handle class for reading from StoreGate.