![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
The eFEXtauBDTAlgo class calculates the tau BDT TOB variables.
More...
#include <eFEXtauBDTAlgo.h>
|
| eFEXtauBDTAlgo (const std::string &type, const std::string &name, const IInterface *parent) |
| Constructors. More...
|
|
virtual StatusCode | initialize () override |
| standard Athena-Algorithm method More...
|
|
virtual | ~eFEXtauBDTAlgo () |
| Destructor. More...
|
|
virtual void | setup (int inputTable[3][3], int efex_id, int fpga_id, int central_eta) override |
|
virtual void | compute () override |
|
virtual std::unique_ptr< eFEXtauTOB > | getTauTOB () const override |
|
virtual unsigned int | rHadCore () const override |
|
virtual unsigned int | rHadEnv () const override |
|
virtual unsigned int | getEt () const override |
|
virtual unsigned int | getBitwiseEt () const override |
|
virtual unsigned int | getBDTScore () const override |
|
virtual unsigned int | getBDTCondition () const override |
|
virtual unsigned int | getBDTHadFracCondition () const override |
|
virtual bool | isBDT () const override |
|
virtual void | setThresholds (const std::vector< unsigned int > &rHadThreshold, const std::vector< unsigned int > &bdtThreshold, unsigned int etThreshold, unsigned int etThresholdForRHad, unsigned int bdtMinEtThreshold) override |
|
virtual unsigned int | getSeed () const override |
|
virtual StatusCode | safetyTest () override |
|
virtual bool | isCentralTowerSeed () const override |
|
virtual void | getRCore (std::vector< unsigned int > &rCoreVec) const override |
|
virtual unsigned int | rCoreCore () const override |
|
virtual unsigned int | rCoreEnv () const override |
|
virtual float | getRealRCore () const override |
|
virtual void | getRHad (std::vector< unsigned int > &rHadVec) const override |
|
virtual float | getRealRHad () const override |
|
virtual void | getSums (unsigned int seed, bool UnD, std::vector< unsigned int > &RcoreSums, std::vector< unsigned int > &Remums) override |
|
void | setSCellEncoder (LVL1::eFEXtauTOB *tob) 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 |
|
The eFEXtauBDTAlgo class calculates the tau BDT TOB variables.
Definition at line 28 of file eFEXtauBDTAlgo.h.
◆ StoreGateSvc_t
◆ eFEXtauBDTAlgo()
LVL1::eFEXtauBDTAlgo::eFEXtauBDTAlgo |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~eFEXtauBDTAlgo()
LVL1::eFEXtauBDTAlgo::~eFEXtauBDTAlgo |
( |
| ) |
|
|
virtual |
◆ buildLayers()
void LVL1::eFEXtauAlgoBase::buildLayers |
( |
int |
efex_id, |
|
|
int |
fpga_id, |
|
|
int |
central_eta |
|
) |
| |
|
protectedinherited |
Definition at line 38 of file eFEXtauAlgoBase.cxx.
44 for (
unsigned int ieta = 0; ieta < 3; ieta++) {
45 for (
unsigned int iphi = 0; iphi < 3; iphi++) {
46 if (((efex_id % 3 == 0) && (fpga_id == 0) && (central_eta == 0) &&
48 ((efex_id % 3 == 2) && (fpga_id == 3) && (central_eta == 5) &&
54 for (
unsigned int i = 0;
i < 4;
i++) {
65 for (
unsigned int i = 0;
i < 4;
i++) {
◆ compute()
void LVL1::eFEXtauBDTAlgo::compute |
( |
| ) |
|
|
overridevirtual |
◆ 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);
◆ 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.
◆ 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.
◆ 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
◆ getBDTCondition()
unsigned int LVL1::eFEXtauBDTAlgo::getBDTCondition |
( |
| ) |
const |
|
overridevirtual |
◆ getBDTHadFracCondition()
unsigned int LVL1::eFEXtauBDTAlgo::getBDTHadFracCondition |
( |
| ) |
const |
|
overridevirtual |
◆ getBDTScore()
unsigned int LVL1::eFEXtauBDTAlgo::getBDTScore |
( |
| ) |
const |
|
overridevirtual |
◆ getBitwiseEt()
unsigned int LVL1::eFEXtauBDTAlgo::getBitwiseEt |
( |
| ) |
const |
|
overridevirtual |
◆ getEt()
unsigned int LVL1::eFEXtauBDTAlgo::getEt |
( |
| ) |
const |
|
overridevirtual |
◆ getRCore()
void LVL1::eFEXtauAlgoBase::getRCore |
( |
std::vector< unsigned int > & |
rCoreVec | ) |
const |
|
overridevirtualinherited |
◆ getRealRCore()
float LVL1::eFEXtauAlgoBase::getRealRCore |
( |
| ) |
const |
|
overridevirtualinherited |
◆ getRealRHad()
float LVL1::eFEXtauAlgoBase::getRealRHad |
( |
| ) |
const |
|
overridevirtualinherited |
◆ getRHad()
void LVL1::eFEXtauAlgoBase::getRHad |
( |
std::vector< unsigned int > & |
rHadVec | ) |
const |
|
overridevirtualinherited |
◆ getSeed()
virtual unsigned int LVL1::eFEXtauBDTAlgo::getSeed |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getSums()
void LVL1::eFEXtauAlgoBase::getSums |
( |
unsigned int |
seed, |
|
|
bool |
UnD, |
|
|
std::vector< unsigned int > & |
RcoreSums, |
|
|
std::vector< unsigned int > & |
Remums |
|
) |
| |
|
overridevirtualinherited |
◆ getTauTOB()
◆ getUnD()
virtual bool LVL1::eFEXtauAlgoBase::getUnD |
( |
| ) |
const |
|
inlineoverrideprotectedvirtualinherited |
◆ initBDTVars()
StatusCode LVL1::eFEXtauBDTAlgo::initBDTVars |
( |
| ) |
|
|
private |
◆ initialize()
StatusCode LVL1::eFEXtauBDTAlgo::initialize |
( |
| ) |
|
|
overridevirtual |
standard Athena-Algorithm method
Definition at line 29 of file eFEXtauBDTAlgo.cxx.
34 if (configPath.size() == 0) {
36 return StatusCode::FAILURE;
39 m_bdtAlgoImpl = std::make_unique<eFEXtauBDT>(
this, configPath);
49 }
catch (
const std::domain_error &ex) {
51 return StatusCode::FAILURE;
55 return StatusCode::SUCCESS;
◆ 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 & LVL1::IeFEXtauAlgo::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ isBDT()
bool LVL1::eFEXtauBDTAlgo::isBDT |
( |
| ) |
const |
|
overridevirtual |
◆ isCentralTowerSeed()
bool LVL1::eFEXtauAlgoBase::isCentralTowerSeed |
( |
| ) |
const |
|
overridevirtualinherited |
Implements LVL1::IeFEXtauAlgo.
Definition at line 131 of file eFEXtauAlgoBase.cxx.
135 "Layers not built, cannot accurately determine if a seed tower.");
145 for (
unsigned int bphi = 0; bphi < 3; bphi++) {
147 if ((
beta == 1) && (bphi == 1)) {
152 if (
beta == 2 || (
beta == 1 && bphi == 2)) {
159 else if (
beta == 0 || (
beta == 1 && bphi == 0)) {
◆ 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.
◆ rCoreCore()
virtual unsigned int LVL1::eFEXtauAlgoBase::rCoreCore |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ rCoreEnv()
virtual unsigned int LVL1::eFEXtauAlgoBase::rCoreEnv |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ renounce()
◆ renounceArray()
◆ rHadCore()
unsigned int LVL1::eFEXtauBDTAlgo::rHadCore |
( |
| ) |
const |
|
overridevirtual |
◆ rHadEnv()
unsigned int LVL1::eFEXtauBDTAlgo::rHadEnv |
( |
| ) |
const |
|
overridevirtual |
◆ safetyTest()
StatusCode LVL1::eFEXtauAlgoBase::safetyTest |
( |
| ) |
|
|
overridevirtualinherited |
◆ setSCellEncoder()
Definition at line 170 of file eFEXtauAlgoBase.cxx.
176 std::unique_ptr<SCellEncoder> scellEncoder = std::make_unique<SCellEncoder>();
◆ setSCellPointers()
void LVL1::eFEXtauBDTAlgo::setSCellPointers |
( |
| ) |
|
|
private |
◆ setSuperCells()
void LVL1::eFEXtauAlgoBase::setSuperCells |
( |
eFEXtauTOB * |
tob, |
|
|
bool |
withSupercells |
|
) |
| |
|
protectedinherited |
◆ setSupercellSeed()
virtual void LVL1::eFEXtauAlgoBase::setSupercellSeed |
( |
| ) |
|
|
inlineprotectedvirtualinherited |
◆ setThresholdPointers()
void LVL1::eFEXtauBDTAlgo::setThresholdPointers |
( |
| ) |
|
|
private |
◆ setThresholds()
void LVL1::eFEXtauBDTAlgo::setThresholds |
( |
const std::vector< unsigned int > & |
rHadThreshold, |
|
|
const std::vector< unsigned int > & |
bdtThreshold, |
|
|
unsigned int |
etThreshold, |
|
|
unsigned int |
etThresholdForRHad, |
|
|
unsigned int |
bdtMinEtThreshold |
|
) |
| |
|
overridevirtual |
◆ setUnDAndOffPhi()
virtual void LVL1::eFEXtauAlgoBase::setUnDAndOffPhi |
( |
| ) |
|
|
inlineprotectedvirtualinherited |
◆ setup()
void LVL1::eFEXtauBDTAlgo::setup |
( |
int |
inputTable[3][3], |
|
|
int |
efex_id, |
|
|
int |
fpga_id, |
|
|
int |
central_eta |
|
) |
| |
|
overridevirtual |
◆ 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_bdtAlgoImpl
std::unique_ptr<eFEXtauBDT> LVL1::eFEXtauBDTAlgo::m_bdtAlgoImpl |
|
private |
◆ m_bdtJsonConfigPath
Gaudi::Property<std::string> LVL1::eFEXtauBDTAlgo::m_bdtJsonConfigPath |
|
private |
Initial value:{
this, "BDTJsonConfigPath", "bdt_config_v16.json",
"Path to BDT json config file"}
Definition at line 88 of file eFEXtauBDTAlgo.h.
◆ m_bdtMinEtThreshold
unsigned int LVL1::eFEXtauBDTAlgo::m_bdtMinEtThreshold |
|
private |
◆ m_bdtScore
unsigned int LVL1::eFEXtauBDTAlgo::m_bdtScore |
|
private |
◆ m_bdtThresholds
unsigned int LVL1::eFEXtauBDTAlgo::m_bdtThresholds[3] |
|
private |
◆ m_bdtVarComputeSCellPointers
std::vector<std::vector<unsigned int *> > LVL1::eFEXtauBDTAlgo::m_bdtVarComputeSCellPointers |
|
private |
◆ m_bdtVars
std::vector<unsigned int> LVL1::eFEXtauBDTAlgo::m_bdtVars |
|
private |
◆ m_bdtVarsComputed
bool LVL1::eFEXtauBDTAlgo::m_bdtVarsComputed = false |
|
private |
◆ m_cellsSet
bool LVL1::eFEXtauAlgoBase::m_cellsSet = false |
|
protectedinherited |
◆ m_detStore
◆ m_dumpSCells
Gaudi::Property<bool> LVL1::eFEXtauAlgoBase::m_dumpSCells |
|
protectedinherited |
Initial value:{this, "DumpSuperCells", false,
"Should decorate TOBs with supercells"}
Definition at line 86 of file eFEXtauAlgoBase.h.
◆ m_eFexalgoTowerID
int LVL1::eFEXtauAlgoBase::m_eFexalgoTowerID[3][3] |
|
protectedinherited |
◆ m_em0cells
unsigned int LVL1::eFEXtauAlgoBase::m_em0cells[3][3] |
|
protectedinherited |
◆ m_em1cells
unsigned int LVL1::eFEXtauAlgoBase::m_em1cells[12][3] |
|
protectedinherited |
◆ m_em2cells
unsigned int LVL1::eFEXtauAlgoBase::m_em2cells[12][3] |
|
protectedinherited |
◆ m_em3cells
unsigned int LVL1::eFEXtauAlgoBase::m_em3cells[3][3] |
|
protectedinherited |
◆ m_eTowerContainerKey
Initial value:{
this, "MyETowers", "eTowerContainer", "Input container for eTowers"}
Definition at line 64 of file eFEXtauAlgoBase.h.
◆ m_etThreshold
unsigned int LVL1::eFEXtauBDTAlgo::m_etThreshold |
|
private |
◆ m_evtStore
◆ m_hadcells
unsigned int LVL1::eFEXtauAlgoBase::m_hadcells[3][3] |
|
protectedinherited |
◆ m_hadFracMultipliers
unsigned int LVL1::eFEXtauBDTAlgo::m_hadFracMultipliers[3] |
|
private |
◆ m_maxEtThreshold
unsigned int LVL1::eFEXtauBDTAlgo::m_maxEtThreshold |
|
private |
◆ m_twrcells
unsigned int LVL1::eFEXtauAlgoBase::m_twrcells[3][3] |
|
protectedinherited |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
Container class for eTower.
Extra patterns decribing particle interation process.
int getTotalET() const
Get ET sum of all cells in the eTower in MeV.
Scalar phi() const
phi method
The eTower class is an interface object for eFEX trigger algorithms The purposes are twofold:
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
SG::ReadHandleKey< LVL1::eTowerContainer > m_eTowerContainerKey
unsigned int m_em3cells[3][3]
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
Gaudi::Property< bool > m_dumpSCells
unsigned int m_maxEtThreshold
virtual unsigned int rHadCore() const override
const std::string & key() const
Return the StoreGate ID for the referenced object.
virtual unsigned int rHadCore() const =0
unsigned int m_bdtMinEtThreshold
virtual unsigned int getEt() const override
virtual void setOwner(IDataHandleHolder *o)=0
unsigned int m_em0cells[3][3]
void setSCellEncoder(LVL1::eFEXtauTOB *tob) const
unsigned int m_bdtThresholds[3]
unsigned int m_hadcells[3][3]
unsigned int m_em2cells[12][3]
virtual unsigned int rCoreCore() const override
virtual float getRealRCore() const override
void setSuperCellEncoder(std::unique_ptr< SCellEncoder > scell_encoder)
int m_eFexalgoTowerID[3][3]
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Gaudi::Property< std::string > m_bdtJsonConfigPath
int getET(unsigned int layer, int cell=0) const
Get ET of a specified cell in MeV.
unsigned int m_twrcells[3][3]
void setThresholdPointers()
int getLayerTotalET(unsigned int layer) const
Get total ET sum of all cells in a given layer in MeV.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
unsigned int m_em1cells[12][3]
virtual unsigned int rHadEnv() const override
unsigned int m_etThreshold
virtual void getRCore(std::vector< unsigned int > &rCoreVec) const override
virtual unsigned int getBitwiseEt() const override
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
void buildLayers(int efex_id, int fpga_id, int central_eta)
std::unique_ptr< eFEXtauBDT > m_bdtAlgoImpl
unsigned int m_hadFracMultipliers[3]
virtual unsigned int rCoreEnv() const override
virtual void getRHad(std::vector< unsigned int > &rHadVec) const override
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
virtual unsigned int rHadEnv() const =0
eFEXtauAlgoBase(const std::string &type, const std::string &name, const IInterface *parent)
Constructors.