 |
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "GaudiKernel/SystemOfUnits.h"
42 return StatusCode::FAILURE;
47 return StatusCode::FAILURE;
48 }
else if(m_idWP < IDWP::None || m_idWP >
IDWP::Tight) {
50 return StatusCode::FAILURE;
52 ATH_MSG_ERROR(
"IDMethod=0 must be set together with IDWP=-1");
53 return StatusCode::FAILURE;
55 ATH_MSG_ERROR(
"There need to be 4 TauID WPs passed to IDWPNames if using IDMethod=2 (Decorator)");
56 return StatusCode::FAILURE;
65 if(
p.first.empty() ||
p.second.empty()) {
66 ATH_MSG_ERROR(
"Invalid score variable names; skipping this entry for the monitoring!");
73 return StatusCode::SUCCESS;
87 std::map<std::string, Monitored::Scalar<float>> monitoredIdVariables;
97 std::vector<std::reference_wrapper<Monitored::IMonitoredVariable>> monVars = {
109 ATH_MSG_DEBUG(
"AcceptAll property is set: taking all events");
116 NInputTaus = TauContainer->
size();
121 float pT =
Tau->pt();
136 int numTrack = 0, numIsoTrack = 0;
148 numTrack =
Tau->nTracks();
149 numIsoTrack =
Tau->nTracksIsolation();
170 NTracksAccepted = numTrack;
171 NIsoTracksAccepted = numIsoTrack;
187 ATH_MSG_WARNING(
" RNNJetScoreSigTrans not available. Make sure the TauWPDecorator is run for the RNN Tau ID!");
202 }
else if(
m_idMethod == IDMethod::Decorator) {
209 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!");
228 if(!
p.first.isAvailable(*
Tau))
229 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!");
231 if(!
p.second.isAvailable(*
Tau))
232 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!");
237 if(
Tau->nTracks() == 0) {
238 monitoredIdVariables.at(
key +
"_TauJetScoreAccepted_0p") =
p.first(*
Tau);
239 monitoredIdVariables.at(
key +
"_TauJetScoreTransAccepted_0p") =
p.second(*
Tau);
240 }
else if(
Tau->nTracks() == 1) {
241 monitoredIdVariables.at(
key +
"_TauJetScoreAccepted_1p") =
p.first(*
Tau);
242 monitoredIdVariables.at(
key +
"_TauJetScoreTransAccepted_1p") =
p.second(*
Tau);
244 monitoredIdVariables.at(
key +
"_TauJetScoreAccepted_mp") =
p.first(*
Tau);
245 monitoredIdVariables.at(
key +
"_TauJetScoreTransAccepted_mp") =
p.second(*
Tau);
273 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.
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.