 |
ATLAS Offline Software
|
Go to the documentation of this file.
9 ISvcLocator* pSvcLocator):
18 return StatusCode::SUCCESS;
30 return StatusCode::SUCCESS;
32 ATH_MSG_DEBUG (
"There are " << trackCollection->
size() <<
"tracks in this container " );
36 CHECK( filterCollection.
record(std::make_unique<TrackRecordCollection>()) );
39 for (
const auto& trkit : *trackCollection) {
40 int pdgId(trkit.GetPDGCode());
41 ATH_MSG_VERBOSE (
"Track found with pdg id= " << trkit.GetPDGCode() <<
" with energy "<< trkit.GetEnergy() );
52 ATH_MSG_DEBUG (
"There are " << filterCollection->
size() <<
"that satisfy the filter " );
53 return StatusCode::SUCCESS;
57 return StatusCode::SUCCESS;
StatusCode execute(const EventContext &ctx) const override
StatusCode initialize() override
#define ATH_MSG_VERBOSE(x)
An algorithm that can be simultaneously executed in multiple threads.
SG::WriteHandleKey< TrackRecordCollection > m_outputKey
::StatusCode StatusCode
StatusCode definition for legacy code.
TrackRecordFilter(const std::string &name, ISvcLocator *pSvcLocator)
#define CHECK(...)
Evaluate an expression and check for errors.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
SG::ReadHandleKey< TrackRecordCollection > m_inputKey
double charge(const T &p)
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
StatusCode finalize() override
bool isPresent() const
Is the referenced object present in SG?
void push_back(const T &t)