Loading [MathJax]/jax/output/SVG/config.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
28 return StatusCode::SUCCESS;
50 ATH_CHECK(outputCands.
record(std::make_unique<L0Muon::BarrelCandDataContainer>()));
55 if (!mcEventCollectionHandle.isValid())
58 return StatusCode::FAILURE;
60 mcCollptr = mcEventCollectionHandle.cptr();
63 for (
unsigned int cntr = 0; cntr < mcCollptr->
size(); ++cntr)
65 const HepMC::GenEvent *genEvt = (mcCollptr->
at(cntr));
67 for (
const auto&
p : *genEvt)
72 if (fabs(
p->momentum().eta())>1.05)
78 float eta =
p->momentum().eta();
79 float phi =
p->momentum().phi();
80 float pt =
p->momentum().perp();
86 uint16_t subdetectorId = eta > 0 ? 0x65 : 0x66;
87 auto cand = std::make_unique<L0Muon::BarrelCandData>(subdetectorId,
93 cand->setThreshold(0);
103 return StatusCode::SUCCESS;
SG::WriteHandleKey< L0Muon::BarrelCandDataContainer > m_outputCandKey
Output Trigger candidates.
ToolHandle< GenericMonitoringTool > m_monTool
const std::string & key() const
Return the StoreGate ID for the referenced object.
virtual StatusCode initialize() override
SG::ReadHandleKey< McEventCollection > m_mcEventCollectionKey
truth container
::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.
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
virtual StatusCode execute(const EventContext &ctx) const override
double charge(const T &p)
value_type push_back(value_type pElem)
Add an element to the end of the collection.
StatusCode initialize(bool used=true)
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
SG::ReadCondHandleKey< Muon::RpcCablingMap > m_cablingKey
NRPC cabling map.
SG::ReadHandleKey< xAOD::NRPCRDOContainer > m_keyRpcRdo
RPC Rdo.
bool isPresent() const
Is the referenced object present in SG?
const T * at(size_type n) const
Access an element, as an rvalue.
Declare a monitored scalar variable.
size_type size() const noexcept
Returns the number of elements in the collection.