|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "GaudiKernel/SystemOfUnits.h"
51 return StatusCode::FAILURE;
56 return StatusCode::FAILURE;
57 }
else if(m_idWP < IDWP::None || m_idWP >
IDWP::Tight) {
59 return StatusCode::FAILURE;
61 ATH_MSG_ERROR(
"IDMethod=0 must be set together with IDWP=-1");
62 return StatusCode::FAILURE;
64 ATH_MSG_ERROR(
"There need to be 4 TauID WPs passed to IDWPNames if using IDMethod=2 (Decorator)");
65 return StatusCode::FAILURE;
74 if(
p.first.empty() ||
p.second.empty()) {
75 ATH_MSG_ERROR(
"Invalid score variable names; skipping this entry for the monitoring!");
82 return StatusCode::SUCCESS;
96 std::map<std::string, Monitored::Scalar<float>> monitoredIdVariables;
106 std::vector<std::reference_wrapper<Monitored::IMonitoredVariable>> monVars = {
118 ATH_MSG_DEBUG(
"AcceptAll property is set: taking all events");
125 NInputTaus = TauContainer->
size();
130 float pT =
Tau->pt();
145 int numTrack = 0, numIsoTrack = 0;
157 numTrack =
Tau->nTracks();
158 numIsoTrack =
Tau->nTracksIsolation();
176 NTracksAccepted = numTrack;
177 NIsoTracksAccepted = numIsoTrack;
193 ATH_MSG_WARNING(
" RNNJetScoreSigTrans not available. Make sure the TauWPDecorator too lis run for the RNN Tau ID!");
208 }
else if(
m_idMethod == IDMethod::Decorator) {
215 ATH_MSG_WARNING(
"The TauID WP variables for the current configuration are missing! Make sure the correct inferences are included in the chain reconstruction sequence!");
234 if(!
p.first.isAvailable(*
Tau))
235 ATH_MSG_WARNING(
"TauID Score " <<
m_monitoredIdScores.value().at(
key).first <<
" is not available. Make sure the correct inferences are included in the chain reconstruction sequence!");
237 if(!
p.second.isAvailable(*
Tau))
238 ATH_MSG_WARNING(
"TauID ScoreSigTrans " <<
m_monitoredIdScores.value().at(
key).second <<
" is not available. Make sure the correct inferences are included in the chain reconstruction sequence!");
243 if(
Tau->nTracks() == 0) {
244 monitoredIdVariables.at(
key +
"_TauJetScoreAccepted_0p") =
p.first(*
Tau);
245 monitoredIdVariables.at(
key +
"_TauJetScoreTransAccepted_0p") =
p.second(*
Tau);
246 }
else if(
Tau->nTracks() == 1) {
247 monitoredIdVariables.at(
key +
"_TauJetScoreAccepted_1p") =
p.first(*
Tau);
248 monitoredIdVariables.at(
key +
"_TauJetScoreTransAccepted_1p") =
p.second(*
Tau);
250 monitoredIdVariables.at(
key +
"_TauJetScoreAccepted_mp") =
p.first(*
Tau);
251 monitoredIdVariables.at(
key +
"_TauJetScoreTransAccepted_mp") =
p.second(*
Tau);
279 return StatusCode::SUCCESS;
@ RNNJetScoreSigTrans
RNN score which is signal transformed/flattened.
Group
Properties of a chain group.
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
TrigCompositeUtils::DecisionID numeric() const
numeric ID
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
Helper class to provide constant type-safe access to aux data.
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
::StatusCode StatusCode
StatusCode definition for legacy code.
Class describing a tau jet.
Header file to be included by clients of the Monitored infrastructure.
#define ATH_MSG_WARNING(x)
const boost::regex ref(r_ef)
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
Declare a monitored scalar variable.
size_type size() const noexcept
Returns the number of elements in the collection.