This class is a simple tool to count the jet multiplicity using the existing EventHistoVarTool and JetEventSelector.
More...
#include <NumJetVarTool.h>
|
| Gaudi::Property< float > | m_ptCut = {this,"PtCut", 0.} |
| Gaudi::Property< float > | m_etCut = {this,"EtCut", 0.} |
| Gaudi::Property< float > | m_etaMin = {this,"EtaMin", -10.} |
| Gaudi::Property< float > | m_etaMax = {this,"EtaMax", 10.} |
| Gaudi::Property< std::string > | m_varName {this,"VarName", ""} |
| bool | m_failureOnMissingContainer |
| StoreGateSvc_t | m_evtStore |
| | Pointer to StoreGate (event store by default)
|
| StoreGateSvc_t | m_detStore |
| | Pointer to StoreGate (detector store by default)
|
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
This class is a simple tool to count the jet multiplicity using the existing EventHistoVarTool and JetEventSelector.
Definition at line 19 of file NumJetVarTool.h.
◆ StoreGateSvc_t
◆ NumJetVarTool()
| NumJetVarTool::NumJetVarTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Definition at line 9 of file NumJetVarTool.cxx.
9 :
12{
13 declareInterface<IEventHistoVarTool>(this);
15
16}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ ~NumJetVarTool()
| virtual NumJetVarTool::~NumJetVarTool |
( |
| ) |
|
|
inlinevirtual |
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ 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 NumJetVarTool::initialize |
( |
| ) |
|
|
virtual |
Definition at line 18 of file NumJetVarTool.cxx.
18 {
19
21
22 return StatusCode::SUCCESS;
23
24}
◆ 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.
◆ interfaceID()
| const InterfaceID & IEventHistoVarTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ 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()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
◆ 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()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ value()
the value of the variable for a given Event
Implements IEventHistoVarTool.
Definition at line 26 of file NumJetVarTool.cxx.
26 {
27
30 ATH_MSG_ERROR(
"Input JetContainer could not be found or is empty");
31 return 0.;
32 } else {
33 ATH_MSG_DEBUG(
"Input JetContainer could not be found or is empty");
34 return 0.;
35 }
36 }
37
38 float njets = 0.;
41 njets++;
42 }
43 }
44 return njets;
45}
Jet_v1 Jet
Definition of the current "jet version".
◆ varName()
| virtual std::string NumJetVarTool::varName |
( |
| ) |
const |
|
inlinevirtual |
◆ m_detStore
◆ m_etaMax
| Gaudi::Property<float> NumJetVarTool::m_etaMax = {this,"EtaMax", 10.} |
|
private |
◆ m_etaMin
| Gaudi::Property<float> NumJetVarTool::m_etaMin = {this,"EtaMin", -10.} |
|
private |
◆ m_etCut
| Gaudi::Property<float> NumJetVarTool::m_etCut = {this,"EtCut", 0.} |
|
private |
◆ m_evtStore
◆ m_failureOnMissingContainer
| bool NumJetVarTool::m_failureOnMissingContainer |
|
private |
◆ m_ptCut
| Gaudi::Property<float> NumJetVarTool::m_ptCut = {this,"PtCut", 0.} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_varName
| Gaudi::Property<std::string> NumJetVarTool::m_varName {this,"VarName", ""} |
|
private |
◆ m_vhka
The documentation for this class was generated from the following files: