|
ATLAS Offline Software
|
Go to the documentation of this file.
22 double lead_track_pt = 0;
26 for (
const auto trk : *offlineTrkHandle) {
28 double pT = trk->pt()*1.e-3;
29 double abs_eta = std::abs(trk->eta());
30 double abs_d0 = std::abs(trk->d0());
32 if (
pT > 0.1 and abs_eta < 2 and abs_d0 < 2) {
35 if(
pT > lead_track_pt){
42 if(!(offlineTrkHandle->size()==2 and good_tracks==2))
51 auto passedL1 = [](
unsigned int bits) {
return (bits & TrigDefs::L1_isPassedBeforePrescale) != 0; };
52 auto activeHLT = [](
unsigned int bits) {
return (bits & TrigDefs::EF_prescaled) == 0; };
53 auto isHLT = [](
const std::string&
name) {
return name.compare(0, 4,
"HLT_") == 0; };
54 auto isRefPassed = [trigDecTool](
const std::string&
ref) {
return trigDecTool->isPassed(
ref, TrigDefs::requireDecision); };
62 const unsigned int passBits = trigDecTool->isPassedBits(trig);
63 if (isHLT(trig) and activeHLT(
passBits)) {
64 const auto decision = passedL1(
passBits);
65 ATH_MSG_DEBUG(
"chain " << trig <<
" is " << (decision ?
"passed" :
"failed") <<
" at L1");
68 fill(trig, effPassed, n_trk, lead_trk_pT);
73 return StatusCode::SUCCESS;
Gaudi::Property< std::vector< std::string > > m_triggerList
virtual StatusCode initialize() override
initialize
ToolHandle< InDet::IInDetTrackSelectionTool > m_trackSelectionTool
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_offlineTrkKey
virtual StatusCode fillHistograms(const EventContext &context) const override
adds event to the monitoring histograms
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool() const
Get the trigger decision tool member.
Base class for Athena Monitoring Algorithms.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
::StatusCode StatusCode
StatusCode definition for legacy code.
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
Fills a vector of variables to a group by reference.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual StatusCode initialize() override
initialize
TRTMonitoringAlg(const std::string &name, ISvcLocator *pSvcLocator)
const boost::regex ref(r_ef)
Gaudi::Property< std::vector< std::string > > m_refTriggerList
Declare a monitored scalar variable.