Loading [MathJax]/jax/output/SVG/config.js
 |
ATLAS Offline Software
|
Generated the decision for hypo thats triggers disappearing track.
More...
#include <TrigDisappearingTrackHypoTool.h>
|
| TrigDisappearingTrackHypoTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~TrigDisappearingTrackHypoTool () |
|
virtual StatusCode | initialize () override |
|
StatusCode | decide (std::vector< DisTrkHypoInfo > &) const |
| decides upon a collection of tracks More...
|
|
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< std::vector< float > > | m_cutTrackPtGeV { this, "cutTrackPtGeV", { float(10.0) }, "Track pT requirement in GeV" } |
|
Gaudi::Property< std::vector< float > > | m_cutBDTPix4Sct0 { this, "cutBDTPix4Sct0", { float(0.05) }, "BDT score thershold for Pix4l_Sct0 category" } |
|
Gaudi::Property< std::vector< float > > | m_cutBDTPix4Sct1p { this, "cutBDTPix4Sct1p",{ float(0.04) }, "BDT score thershold for Pix4l_Sct1p category" } |
|
Gaudi::Property< std::vector< float > > | m_cutBDTPix3Sct0 { this, "cutBDTPix3Sct0", { float(0.05) }, "BDT score thershold for Pix3l_Sct0 category" } |
|
Gaudi::Property< std::vector< float > > | m_cutBDTPix3Sct1p { this, "cutBDTPix3Sct1p",{ float(0.04) }, "BDT score thershold for Pix3l_Sct1p category" } |
|
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 |
|
Generated the decision for hypo thats triggers disappearing track.
- Author
- Kunihiro Nagano kunih.nosp@m.iro..nosp@m.nagan.nosp@m.o@ce.nosp@m.rn.ch
Definition at line 20 of file TrigDisappearingTrackHypoTool.h.
◆ StoreGateSvc_t
◆ TrigDisappearingTrackHypoTool()
TrigDisappearingTrackHypoTool::TrigDisappearingTrackHypoTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~TrigDisappearingTrackHypoTool()
TrigDisappearingTrackHypoTool::~TrigDisappearingTrackHypoTool |
( |
| ) |
|
|
virtual |
◆ decide()
StatusCode TrigDisappearingTrackHypoTool::decide |
( |
std::vector< DisTrkHypoInfo > & |
toolInputs | ) |
const |
decides upon a collection of tracks
Definition at line 43 of file TrigDisappearingTrackHypoTool.cxx.
46 size_t numDisTrks = toolInputs.size();
50 if ( numTrigger == 1 ) {
59 return StatusCode::SUCCESS;
◆ decideOnSingleObject()
bool TrigDisappearingTrackHypoTool::decideOnSingleObject |
( |
DisTrkHypoInfo & |
input, |
|
|
size_t |
cutIndex |
|
) |
| const |
|
private |
Definition at line 134 of file TrigDisappearingTrackHypoTool.cxx.
137 const std::string
prefix =
"disTrk";
139 auto distrk =
input.disTrk;
142 float pt = distrk->getDetail<
float>(
prefix+
"_pt");
143 float refit_pt = distrk->getDetail<
float>(
prefix+
"_refit_pt");
144 float bdt_score = distrk->getDetail<
float>(
prefix+
"_bdtscore");
149 bool is_passed =
false;
153 if(
pt >= pt_threshold_pix4l_sct0 && bdt_score >= bdt_threshold_pix4l_sct0 ) is_passed =
true;
158 if( refit_pt >= refit_pt_threshold_pix4l_sct1p && bdt_score >= bdt_threshold_pix4l_sct1p ) is_passed =
true;
163 if(
pt >= pt_threshold_pix3l_sct0 && bdt_score >= bdt_threshold_pix3l_sct0 ) is_passed =
true;
168 if( refit_pt >= refit_pt_threshold_pix3l_sct1p && bdt_score >= bdt_threshold_pix3l_sct1p ) is_passed =
true;
173 ATH_MSG_VERBOSE(
" isPassed = " << is_passed <<
", cut index / pT / refitPt / BDT score = " << cutIndex <<
" / " <<
pt <<
" / " << refit_pt <<
" / " << bdt_score);
◆ 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
◆ inclusiveSelection()
StatusCode TrigDisappearingTrackHypoTool::inclusiveSelection |
( |
std::vector< DisTrkHypoInfo > & |
toolInputs | ) |
const |
|
private |
◆ initialize()
StatusCode TrigDisappearingTrackHypoTool::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()
◆ multiplicitySelection()
StatusCode TrigDisappearingTrackHypoTool::multiplicitySelection |
( |
std::vector< DisTrkHypoInfo > & |
toolInputs | ) |
const |
|
private |
Definition at line 90 of file TrigDisappearingTrackHypoTool.cxx.
94 for (
size_t cutIndex=0; cutIndex <
m_cutTrackPtGeV.size(); ++cutIndex ) {
95 size_t elementIndex{ 0 };
96 for (
auto&
input: toolInputs ) {
100 passingSelection[cutIndex].push_back( elementIndex );
109 if ( passingSelection[cutIndex].
empty() ) {
110 ATH_MSG_VERBOSE(
"No object passed selection " << cutIndex <<
" rejecting" );
111 return StatusCode::SUCCESS;
115 std::set<size_t> passingIndices;
118 if ( passingIndices.empty() ) {
120 return StatusCode::SUCCESS;
123 for (
auto idx: passingIndices ) {
128 return StatusCode::SUCCESS;
◆ 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_cutBDTPix3Sct0
Gaudi::Property< std::vector<float> > TrigDisappearingTrackHypoTool::m_cutBDTPix3Sct0 { this, "cutBDTPix3Sct0", { float(0.05) }, "BDT score thershold for Pix3l_Sct0 category" } |
|
private |
◆ m_cutBDTPix3Sct1p
Gaudi::Property< std::vector<float> > TrigDisappearingTrackHypoTool::m_cutBDTPix3Sct1p { this, "cutBDTPix3Sct1p",{ float(0.04) }, "BDT score thershold for Pix3l_Sct1p category" } |
|
private |
◆ m_cutBDTPix4Sct0
Gaudi::Property< std::vector<float> > TrigDisappearingTrackHypoTool::m_cutBDTPix4Sct0 { this, "cutBDTPix4Sct0", { float(0.05) }, "BDT score thershold for Pix4l_Sct0 category" } |
|
private |
◆ m_cutBDTPix4Sct1p
Gaudi::Property< std::vector<float> > TrigDisappearingTrackHypoTool::m_cutBDTPix4Sct1p { this, "cutBDTPix4Sct1p",{ float(0.04) }, "BDT score thershold for Pix4l_Sct1p category" } |
|
private |
◆ m_cutTrackPtGeV
Gaudi::Property< std::vector<float> > TrigDisappearingTrackHypoTool::m_cutTrackPtGeV { this, "cutTrackPtGeV", { float(10.0) }, "Track pT requirement in GeV" } |
|
private |
◆ m_decisionId
◆ m_detStore
◆ m_evtStore
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
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
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
#define ATH_MSG_VERBOSE(x)
setScaleOne setStatusOne setSaturated int16_t
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
bool empty() const noexcept
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
std::vector< Index1DVec > Index2DVec
void elementsInUniqueCombinations(const Index2DVec &indices, std::set< size_t > &participants, const std::function< bool(const Index1DVec &)> &filter)
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>