|
ATLAS Offline Software
|
Generated the decision for hypo thats triggers on dispalced vertex.
More...
#include <TrigHitDVHypoTool.h>
|
| TrigHitDVHypoTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~TrigHitDVHypoTool () |
|
virtual StatusCode | initialize () override |
|
StatusCode | decide (std::vector< HitDVHypoInfo > &) 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 |
|
|
StatusCode | inclusiveSelection (std::vector< HitDVHypoInfo > &) const |
|
StatusCode | multiplicitySelection (std::vector< HitDVHypoInfo > &) const |
|
bool | decideOnSingleObject (HitDVHypoInfo &, size_t, bool) const |
|
float | deltaR (float, float, float, float) const |
|
int | getSPLayer (int, float) const |
|
StatusCode | findSPSeeds (const xAOD::TrigCompositeContainer *, std::vector< float > &, std::vector< float > &) const |
|
StatusCode | findJetSeeds (const xAOD::JetContainer *, const float, const float, std::vector< float > &, std::vector< float > &) const |
|
StatusCode | calculateBDT (const xAOD::TrigCompositeContainer *, const xAOD::TrigCompositeContainer *, const std::vector< float > &, const std::vector< float > &, const float, const int, xAOD::TrigCompositeContainer *, int &) const |
|
float | getBDTthreshold_0eta1 (float, float) const |
|
float | getBDTthreshold_1eta2 (float, float) const |
|
float | getBDTthreshold (float) const |
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
|
HLT::Identifier | m_decisionId |
|
Gaudi::Property< std::vector< float > > | m_cutJetPtGeV { this, "cutJetPtGeV", { 20.0 }, "Jet pT requirement in GeV" } |
|
Gaudi::Property< std::vector< float > > | m_cutJetEta { this, "cutJetEta", { 2.5 }, "Jet Eta requirement" } |
|
Gaudi::Property< std::vector< float > > | m_effBDT { this, "effBDT", { 0.7 }, "Efficiency for BDT cut." } |
|
Gaudi::Property< std::vector< bool > > | m_doSPseed { this, "doSPseed", { true }, "Switch to do SP seeding" } |
|
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 on dispalced vertex.
- Author
- Kunihiro Nagano kunih.nosp@m.iro..nosp@m.nagan.nosp@m.o@ce.nosp@m.rn.ch - KEK
Definition at line 25 of file TrigHitDVHypoTool.h.
◆ StoreGateSvc_t
◆ SeedType
◆ TrigHitDVHypoTool()
TrigHitDVHypoTool::TrigHitDVHypoTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~TrigHitDVHypoTool()
TrigHitDVHypoTool::~TrigHitDVHypoTool |
( |
| ) |
|
|
virtual |
◆ calculateBDT()
◆ decide()
StatusCode TrigHitDVHypoTool::decide |
( |
std::vector< HitDVHypoInfo > & |
toolInputs | ) |
const |
decides upon a collection of tracks
Definition at line 130 of file TrigHitDVHypoTool.cxx.
133 size_t numHitDVs = toolInputs.size();
137 if ( numTrigger == 1 ) {
146 return StatusCode::SUCCESS;
◆ decideOnSingleObject()
bool TrigHitDVHypoTool::decideOnSingleObject |
( |
HitDVHypoInfo & |
input, |
|
|
size_t |
cutIndex, |
|
|
bool |
isOnlyJetCut |
|
) |
| const |
|
private |
Definition at line 249 of file TrigHitDVHypoTool.cxx.
256 int seed_type =
dv->getDetail<
int> (
"hitDV_seed_type");
257 float seed_eta =
dv->getDetail<
float>(
"hitDV_seed_eta");
258 float seed_pt =
dv->getDetail<
float>(
"hitDV_seed_pt");
262 if( seed_type != SeedType::HLTJet )
return false;
263 if( std::abs(seed_eta) > etaThreshold )
return false;
264 if( seed_pt < ptThreshold )
return false;
269 if(
input.isSPOverflow )
return true;
274 float bdt_score =
dv->getDetail<
float>(
"hitDV_bdt_score");
276 if ( std::abs(seed_eta) < 1 ) {
278 }
else if ( std::abs(seed_eta) < 2 ) {
282 if( ! doSPseed && seed_type==SeedType::SP )
return false;
283 if( seed_type==SeedType::HLTJet && seed_pt < ptThreshold )
return false;
284 if( std::abs(seed_eta) > etaThreshold )
return false;
285 if( bdt_score < BDTthreshold )
return false;
287 ATH_MSG_DEBUG(
" Selected, cut index / seed_type / seed_eta / bdt_score = " << cutIndex <<
" / " << seed_type <<
" / " << seed_eta <<
" / " << 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]
◆ deltaR()
float TrigHitDVHypoTool::deltaR |
( |
float |
, |
|
|
float |
, |
|
|
float |
, |
|
|
float |
|
|
) |
| const |
|
private |
◆ 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
◆ findJetSeeds()
◆ findSPSeeds()
◆ getBDTthreshold()
float TrigHitDVHypoTool::getBDTthreshold |
( |
float |
mu | ) |
const |
|
private |
Definition at line 110 of file TrigHitDVHypoTool.cxx.
112 const float defaultBDTthreshold = 0.03773;
114 if(
mu<10 || 60<
mu )
return defaultBDTthreshold;
117 const float par0 = 0.404727;
118 const float par1 = -0.00344154;
119 const float par2 = -6.54218e-05;
120 const float par3 = -3.39841e-07;
121 const float par4 = 9.93062e-09;
◆ getBDTthreshold_0eta1()
float TrigHitDVHypoTool::getBDTthreshold_0eta1 |
( |
float |
mu, |
|
|
float |
eff |
|
) |
| const |
|
private |
Definition at line 46 of file TrigHitDVHypoTool.cxx.
48 const float defaultBDTthreshold = 0.33482806;
50 if(
mu<10 || 80<
mu )
return defaultBDTthreshold;
51 if(
eff<0.5 || 1.<
eff )
return defaultBDTthreshold;
54 const std::vector<std::vector<float>>
par = {
55 { 2.9044277, -6.3516751, -4.0085606, 25.456841, -18.208683 },
56 { 0.066196623, -0.098157640, 0.027455008, -0.19900459, 0.16721183 },
57 { -0.00091570959, 1.4831281e-05, 0.0028768317, -0.00053051617, 0.00040427140 },
58 { 2.5249073e-06, 1.7882097e-06, -7.1741129e-06, -9.7309257e-07, -3.2151707e-05 },
59 { -8.2905419e-08, 3.9337893e-07, -5.8968642e-07, 2.6341441e-07, 2.4551736e-07 }
62 float thres = defaultBDTthreshold;
63 for (
size_t i = 0;
i < 5;
i++) {
64 for (
size_t j = 0; j < 5; j++) {
66 for (
size_t imu = 0; imu <
i; imu++)
tmp *=
mu;
67 for (
size_t jeff = 0; jeff < j; jeff++)
tmp *=
eff;
◆ getBDTthreshold_1eta2()
float TrigHitDVHypoTool::getBDTthreshold_1eta2 |
( |
float |
mu, |
|
|
float |
eff |
|
) |
| const |
|
private |
Definition at line 78 of file TrigHitDVHypoTool.cxx.
80 const float defaultBDTthreshold = 0.27072057;
82 if(
mu<10 || 80<
mu )
return defaultBDTthreshold;
83 if(
eff<0.5 || 1.<
eff )
return defaultBDTthreshold;
86 const std::vector<std::vector<float>>
par = {
87 { 1.8938782, -1.7096217, -8.7938548, 19.779355, -10.656187 },
88 { 0.048863505, -0.18192399, 0.30932576, -0.11527519, -0.13591443 },
89 { -0.00060239060, 0.00096109052, -0.0015378287, -0.0030951666, 0.0063958596 },
90 { 2.5855329e-06, 7.3128949e-06, -6.9676558e-06, 4.2141737e-05, -7.1813827e-05 },
91 { -4.8077006e-08, 1.0646790e-07, -8.0539473e-08, -1.9821312e-07, 3.4713098e-07 }
94 float thres = defaultBDTthreshold;
95 for (
size_t i = 0;
i < 5;
i++) {
96 for (
size_t j = 0; j < 5; j++) {
98 for (
size_t imu = 0; imu <
i; imu++)
tmp *=
mu;
99 for (
size_t jeff = 0; jeff < j; jeff++)
tmp *=
eff;
◆ getSPLayer()
int TrigHitDVHypoTool::getSPLayer |
( |
int |
, |
|
|
float |
|
|
) |
| const |
|
private |
◆ inclusiveSelection()
StatusCode TrigHitDVHypoTool::inclusiveSelection |
( |
std::vector< HitDVHypoInfo > & |
toolInputs | ) |
const |
|
private |
Definition at line 152 of file TrigHitDVHypoTool.cxx.
154 bool isJetCutPassed =
false;
155 for (
auto&
input: toolInputs ) {
158 isJetCutPassed =
true;
164 if( ! isJetCutPassed )
return StatusCode::SUCCESS;
166 bool isPassed =
false;
168 for (
auto&
input: toolInputs ) {
182 ATH_MSG_DEBUG(
"Inclusive selection isPassed = " << isPassed);
183 return StatusCode::SUCCESS;
◆ initialize()
StatusCode TrigHitDVHypoTool::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 TrigHitDVHypoTool::multiplicitySelection |
( |
std::vector< HitDVHypoInfo > & |
toolInputs | ) |
const |
|
private |
Definition at line 189 of file TrigHitDVHypoTool.cxx.
191 unsigned int n_jetpassed = 0;
192 for (
size_t cutIndex=0; cutIndex <
m_cutJetPtGeV.size(); ++cutIndex ) {
193 bool isJetCutPassed =
false;
194 for (
auto&
input: toolInputs ) {
197 isJetCutPassed =
true;
202 if( isJetCutPassed ) ++n_jetpassed;
204 if( n_jetpassed <
m_cutJetPtGeV.size() )
return StatusCode::SUCCESS;
209 for (
size_t cutIndex=0; cutIndex <
m_cutJetPtGeV.size(); ++cutIndex ) {
210 size_t elementIndex{ 0 };
211 for (
auto&
input: toolInputs ) {
215 passingSelection[cutIndex].push_back( elementIndex );
224 if ( passingSelection[cutIndex].
empty() ) {
225 ATH_MSG_DEBUG(
"No object passed selection " << cutIndex <<
" rejecting" );
226 return StatusCode::SUCCESS;
230 std::set<size_t> passingIndices;
233 if ( passingIndices.empty() ) {
235 return StatusCode::SUCCESS;
238 for (
auto idx: passingIndices ) {
243 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_cutJetEta
Gaudi::Property< std::vector<float> > TrigHitDVHypoTool::m_cutJetEta { this, "cutJetEta", { 2.5 }, "Jet Eta requirement" } |
|
private |
◆ m_cutJetPtGeV
Gaudi::Property< std::vector<float> > TrigHitDVHypoTool::m_cutJetPtGeV { this, "cutJetPtGeV", { 20.0 }, "Jet pT requirement in GeV" } |
|
private |
◆ m_decisionId
◆ m_detStore
◆ m_doSPseed
Gaudi::Property< std::vector<bool> > TrigHitDVHypoTool::m_doSPseed { this, "doSPseed", { true }, "Switch to do SP seeding" } |
|
private |
◆ m_effBDT
Gaudi::Property< std::vector<float> > TrigHitDVHypoTool::m_effBDT { this, "effBDT", { 0.7 }, "Efficiency for BDT cut." } |
|
private |
◆ 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
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)
Class used to describe composite objects in the HLT.
void elementsInUniqueCombinations(const Index2DVec &indices, std::set< size_t > &participants, std::function< bool(const Index1DVec &)> &&filter)
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.
std::vector< Index1DVec > Index2DVec
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>