|
ATLAS Offline Software
|
Go to the documentation of this file.
39 std::string
varName, varCutExpr;
46 return StatusCode::FAILURE;
51 return StatusCode::FAILURE;
59 if (varCutExpr.empty()) {
61 return StatusCode::FAILURE;
82 return StatusCode::FAILURE;
90 return StatusCode::FAILURE;
96 return StatusCode::FAILURE;
101 ATH_MSG_ERROR(
"Tagger variable names and cuts vectors don't have the same size." ) ;
102 return StatusCode::FAILURE;
113 ATH_MSG_INFO(
"Smoothed top Tagger tool initialized with cuts:" );
121 ATH_MSG_INFO(
"Additional decorators that will be attached to jet :" );
151 return StatusCode::SUCCESS;
169 float jet_pt =
jet.pt()/1000.0;
170 float jet_mass =
jet.m()/1000.0;
180 bool passCuts =
true;
196 decMCut(
jet) = cut_var;
199 if(jet_mass > cut_var) {
203 passCuts = passCuts && acceptData.
getCutResult(
"PassMass");
206 float sphericity = 0;
214 decSphericityCut(
jet) = cut_var;
218 ATH_MSG_VERBOSE(
"The Sphericity variable is not available in your file" );
220 decValidJetContent(
jet) =
false;
223 sphericity = readSphericity(
jet);
227 if (sphericity > cut_var) {
232 passCuts = passCuts && acceptData.
getCutResult(
"PassSphericity");
238 decTagged(
jet) = passCuts;
240 return StatusCode::SUCCESS;
StatusCode resetCuts(asg::AcceptData &acceptData) const
Reset cuts.
std::vector< std::unique_ptr< TF1 > > m_varCutFuncs
std::string find(const std::string &s)
return a remapped string
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decPassSphericityKey
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::string m_configFile
Configuration file name.
TEnv m_configReader
TEnv instance to read config files.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_dec_sphericitycut
float m_jetPtMin
Kinematic bounds for the jet - the units are controlled by m_ptGeV.
std::string m_decorationName
Decoration name.
#define ATH_MSG_VERBOSE(x)
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidJetContentKey
SmoothedTopTagger(const std::string &name)
virtual StatusCode tag(const xAOD::Jet &jet) const override
Decorate single jet with tagging info.
Handle class for reading a decoration on an object.
string varName
end cluster ToT and charge
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode checkKinRange(const xAOD::Jet &jet, asg::AcceptData &acceptData) const
Check and record if jet passes kinematic constraints.
Handle class for adding a decoration to an object.
int calculateJSSRatios(const xAOD::Jet &jet) const
Calculate JSS moment ratios in case they are not already saved TODO: Remove this once JSSMomentTools ...
std::string m_wkpt
Tagger information.
virtual StatusCode initialize() override
Initialize the tool.
asg::AcceptInfo m_acceptInfo
Object that stores the results for a jet.
std::string to_string(const DetectorType &type)
SG::WriteDecorHandleKey< xAOD::JetContainer > m_dec_mcut
virtual StatusCode initialize() override
Initialize the tool.
void printCuts() const
Print configured cuts.
void setCutResult(const std::string &cutName, bool cutResult)
Set the result of a cut, based on the cut name (safer)
bool getCutResult(const std::string &cutName) const
Get the result of a cut, based on the cut name (safer)
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readSphericityKey
StatusCode getConfigReader()
Get configReader StatusCode.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decPassMassKey
std::vector< std::string > m_recognisedCuts
std::vector< std::string > m_varCutExprs
bool isAvailable()
Test to see if this variable exists in the store, for the referenced object.
std::vector< std::string > m_varCutNames
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decTaggedKey
WriteDecorHandle keys for tagging bools.
int addCut(const std::string &cutName, const std::string &cutDescription)
Add a cut; returning the cut position.
std::string m_containerName
Configurable members.