Loading [MathJax]/jax/input/TeX/config.js
 |
ATLAS Offline Software
|
#include <TrigJetEJsHypoTool.h>
|
| TrigJetEJsHypoTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
| ~TrigJetEJsHypoTool () |
|
StatusCode | initialize () |
|
StatusCode | finalize () |
|
StatusCode | decide (std::vector< JetInfo > &decisions) const |
|
const HLT::Identifier & | getId () const |
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
HLT::Identifier | m_decisionId |
|
ToolHandle< ITrigJetHypoToolHelper > | m_helper |
|
Gaudi::Property< bool > | m_visitDebug {this, "visit_debug", false, "debug flag"} |
|
Gaudi::Property< std::string > | m_chainName |
|
Gaudi::Property< double > | m_ptf {this, "PTF", 1.0, ""} |
|
Gaudi::Property< double > | m_dr {this, "dR", 1.0, ""} |
|
Gaudi::Property< int > | m_trackless {this, "Trackless", 1.0, ""} |
|
double | m_trackEtaCut_Exotics = 2.4 |
|
double | m_trackEtaCut_Trackless = 2.4 |
|
double | m_trackPtCut_Exotics = 1.0*Gaudi::Units::GeV |
|
double | m_trackPtCut_Trackless = 2.0*Gaudi::Units::GeV |
|
double | m_jetPtCut_Exotics = 50.0*Gaudi::Units::GeV |
|
double | m_jetPtCut_Trackless = 50.0*Gaudi::Units::GeV |
|
double | m_jetEtaCut_Exotics = 2.0 |
|
double | m_jetEtaCut_Trackless = 2.0 |
|
double | m_PTFSigmaCut = 2.5 |
|
int | m_matchedTracksCut_Trackless = 0 |
|
double | m_PV_z = 10.0 |
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Definition at line 39 of file TrigJetEJsHypoTool.h.
◆ JetDecision
◆ StoreGateSvc_t
◆ TrigJetEJsHypoTool()
TrigJetEJsHypoTool::TrigJetEJsHypoTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~TrigJetEJsHypoTool()
TrigJetEJsHypoTool::~TrigJetEJsHypoTool |
( |
| ) |
|
◆ decide()
StatusCode TrigJetEJsHypoTool::decide |
( |
std::vector< JetInfo > & |
decisions | ) |
const |
Definition at line 66 of file TrigJetEJsHypoTool.cxx.
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;
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ finalize()
StatusCode TrigJetEJsHypoTool::finalize |
( |
| ) |
|
◆ getId()
◆ initialize()
StatusCode TrigJetEJsHypoTool::initialize |
( |
| ) |
|
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_chainName
Gaudi::Property<std::string> TrigJetEJsHypoTool::m_chainName |
|
private |
◆ m_decisionId
◆ m_detStore
◆ m_dr
Gaudi::Property< double > TrigJetEJsHypoTool::m_dr {this, "dR", 1.0, ""} |
|
private |
◆ m_evtStore
◆ m_helper
Initial value:{
this, "helper_tool", {}, "Jet hypo helper AlgTool"}
Definition at line 88 of file TrigJetEJsHypoTool.h.
◆ m_jetEtaCut_Exotics
double TrigJetEJsHypoTool::m_jetEtaCut_Exotics = 2.0 |
|
private |
◆ m_jetEtaCut_Trackless
double TrigJetEJsHypoTool::m_jetEtaCut_Trackless = 2.0 |
|
private |
◆ m_jetPtCut_Exotics
◆ m_jetPtCut_Trackless
◆ m_matchedTracksCut_Trackless
int TrigJetEJsHypoTool::m_matchedTracksCut_Trackless = 0 |
|
private |
◆ m_ptf
Gaudi::Property< double > TrigJetEJsHypoTool::m_ptf {this, "PTF", 1.0, ""} |
|
private |
◆ m_PTFSigmaCut
double TrigJetEJsHypoTool::m_PTFSigmaCut = 2.5 |
|
private |
◆ m_PV_z
double TrigJetEJsHypoTool::m_PV_z = 10.0 |
|
private |
◆ m_trackEtaCut_Exotics
double TrigJetEJsHypoTool::m_trackEtaCut_Exotics = 2.4 |
|
private |
◆ m_trackEtaCut_Trackless
double TrigJetEJsHypoTool::m_trackEtaCut_Trackless = 2.4 |
|
private |
◆ m_trackless
Gaudi::Property< int > TrigJetEJsHypoTool::m_trackless {this, "Trackless", 1.0, ""} |
|
private |
◆ m_trackPtCut_Exotics
◆ m_trackPtCut_Trackless
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_visitDebug
Gaudi::Property<bool> TrigJetEJsHypoTool::m_visitDebug {this, "visit_debug", false, "debug flag"} |
|
private |
The documentation for this class was generated from the following files:
TrigCompositeUtils::DecisionID numeric() const
numeric ID
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< std::string > lineSplitter(const std::string &s, char delimiter)
virtual void setOwner(IDataHandleHolder *o)=0
static HLT::Identifier fromToolName(const std::string &tname)
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
bool trackPt(const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>