|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #include "GaudiKernel/StatusCode.h"
34 const std::string&
name,
35 const IInterface*
parent) :
58 return StatusCode::SUCCESS;
62 return StatusCode::SUCCESS;
76 bool objDecision =
true;
79 auto jetPt= (
i.jet)->
pt();
86 auto jetEta=std::abs( (
i.jet)->p4().Eta() );
93 float promptTrackFrac = -2.0;
95 if (objDecision ==
true) {
99 promptTrackFrac = 0.0;
100 for (
auto trackIter =
i.AllTracks->begin(); trackIter !=
i.AllTracks->end(); ++trackIter){
101 float trackPt = (*trackIter)->pt();
115 if (promptTrackFrac/jetPt >
m_ptf)
break;
118 promptTrackFrac /= jetPt;
120 ATH_MSG_DEBUG(
"exotics jets chain promptTrackFrac: " << promptTrackFrac);
121 if (promptTrackFrac < -0.5 || promptTrackFrac >
m_ptf) objDecision =
false;
126 int matchedtracks = 0;
128 for (
auto trackIter =
i.AllTracks->begin(); trackIter !=
i.AllTracks->end(); ++trackIter){
130 || (
i.jet)->p4().DeltaR((*trackIter)->p4()) >
m_dr)
139 ATH_MSG_DEBUG(
"Number of matched tracks (" << matchedtracks <<
") greater than cutoff - in trackless jet chain");
144 if ( objDecision ==
true ) {
145 ATH_MSG_DEBUG(
"passed exotics/trackless jet chain decision with PTF: " << promptTrackFrac <<
"\ttrackless: " <<
m_trackless <<
"\tpt: " << jetPt <<
"\teta: " << jetEta);
151 return StatusCode::SUCCESS;
virtual std::string toString() const override
xAOD::TrigCompositeContainer DecisionContainer
TrigCompositeUtils::DecisionID numeric() const
numeric ID
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
std::vector< std::string > lineSplitter(const std::string &s, char delimiter)
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.
#define CHECK(...)
Evaluate an expression and check for errors.
bool trackPt(const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
xAOD::TrigComposite Decision
std::set< DecisionID > DecisionIDContainer
void decisionIDs(const Decision *d, DecisionIDContainer &destination)
Extracts DecisionIDs stored in the Decision object.