Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
#include <DisplacedJetDispHypoTool.h>
|
| DisplacedJetDispHypoTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~DisplacedJetDispHypoTool ()=default |
|
virtual StatusCode | initialize () override |
|
StatusCode | decide (Info &info) 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 |
|
Gaudi::Property< float > | m_min_trk_pt {this, "min_trk_pt",{0}, "Minimum pt for a track [GeV]"} |
|
Gaudi::Property< float > | m_d0cut {this, "trk_d0cut",{4}, "D0 cut applied to split prompt/displaced"} |
|
Gaudi::Property< float > | m_z0stcut {this, "max_z0st",{3.0}, "Maximum value for z0*sin(theta) [mm]"} |
|
Gaudi::Property< float > | m_d0sigcut {this, "d0sigcut",{25.0}, "Maximum value for z0*sin(theta) [mm]"} |
|
Gaudi::Property< int > | m_maxprompt {this, "max_prompt_trk",{2}, "Max number of prompt tracks in a jet"} |
|
Gaudi::Property< int > | m_mindisp {this, "min_disp_trk",{3}, "Min number of disp tracks in a jet"} |
|
Gaudi::Property< float > | m_nother_frac {this, "nother_frac",{0.75}, "nother frac"} |
|
Gaudi::Property< std::string > | m_cutname {this, "cut_name",{""}, "Name of cuts, used for decoration names"} |
|
Gaudi::Property< bool > | m_usebeamspot {this, "use_beamspot",{true}, "Use beamspot info"} |
|
ToolHandle< GenericMonitoringTool > | m_monTool {this,"MonTool","","Monitoring tool"} |
|
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 18 of file DisplacedJetDispHypoTool.h.
◆ StoreGateSvc_t
◆ DisplacedJetDispHypoTool()
DisplacedJetDispHypoTool::DisplacedJetDispHypoTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~DisplacedJetDispHypoTool()
virtual DisplacedJetDispHypoTool::~DisplacedJetDispHypoTool |
( |
| ) |
|
|
virtualdefault |
◆ decide()
StatusCode DisplacedJetDispHypoTool::decide |
( |
Info & |
info | ) |
const |
Definition at line 22 of file DisplacedJetDispHypoTool.cxx.
25 return StatusCode::SUCCESS;
32 std::vector<float> monvec_trk_d0sig;
33 std::vector<float> monvec_trk_z0st;
34 std::vector<float> monvec_trk_d0;
44 int nother =
info.counts->getDetail<
int>(
"nother_"+
m_cutname);
45 int nprompt =
info.counts->getDetail<
int>(
"nprompt_"+
m_cutname);
48 for(
auto trk: *(
info.lrt_tracks)){
50 unsigned int track_class = 0;
52 monvec_trk_d0.push_back(std::abs(trk->d0()));
54 if(std::abs(trk->d0()) <
m_d0cut){
55 double dz0 = trk->z0() + trk->vz() -
info.primary_vertex->z();
56 double dz0st = std::abs(
std::sin(trk->theta()) * dz0);
58 monvec_trk_z0st.push_back(dz0st);
72 monvec_trk_d0sig.push_back(d0sig);
85 }
else if(track_class == 2){
87 }
else if(track_class == 0){
91 double nother_frac = 0.0;
93 if((nother + ndisp + nprompt) > 0){
94 nother_frac = nother*1.0/(nother + ndisp + nprompt);
100 mon_nprompt = nprompt;
101 mon_frac_other = nother_frac;
109 mon_jeteta =
info.jet->eta();
114 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
◆ initialize()
StatusCode DisplacedJetDispHypoTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ 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_cutname
Gaudi::Property<std::string> DisplacedJetDispHypoTool::m_cutname {this, "cut_name",{""}, "Name of cuts, used for decoration names"} |
|
private |
◆ m_d0cut
Gaudi::Property<float> DisplacedJetDispHypoTool::m_d0cut {this, "trk_d0cut",{4}, "D0 cut applied to split prompt/displaced"} |
|
private |
◆ m_d0sigcut
Gaudi::Property<float> DisplacedJetDispHypoTool::m_d0sigcut {this, "d0sigcut",{25.0}, "Maximum value for z0*sin(theta) [mm]"} |
|
private |
◆ m_decisionId
◆ m_detStore
◆ m_evtStore
◆ m_maxprompt
Gaudi::Property<int> DisplacedJetDispHypoTool::m_maxprompt {this, "max_prompt_trk",{2}, "Max number of prompt tracks in a jet"} |
|
private |
◆ m_min_trk_pt
Gaudi::Property<float> DisplacedJetDispHypoTool::m_min_trk_pt {this, "min_trk_pt",{0}, "Minimum pt for a track [GeV]"} |
|
private |
◆ m_mindisp
Gaudi::Property<int> DisplacedJetDispHypoTool::m_mindisp {this, "min_disp_trk",{3}, "Min number of disp tracks in a jet"} |
|
private |
◆ m_monTool
◆ m_nother_frac
Gaudi::Property<float> DisplacedJetDispHypoTool::m_nother_frac {this, "nother_frac",{0.75}, "nother frac"} |
|
private |
◆ m_usebeamspot
Gaudi::Property<bool> DisplacedJetDispHypoTool::m_usebeamspot {this, "use_beamspot",{true}, "Use beamspot info"} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_z0stcut
Gaudi::Property<float> DisplacedJetDispHypoTool::m_z0stcut {this, "max_z0st",{3.0}, "Maximum value for z0*sin(theta) [mm]"} |
|
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.
double d0significance(const xAOD::TrackParticle *tp, double d0_uncert_beam_spot_2)
Group of local monitoring quantities and retain correlation when filling histograms
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
virtual void setOwner(IDataHandleHolder *o)=0
static HLT::Identifier fromToolName(const std::string &tname)
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
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.
Declare a monitored scalar variable.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>