 |
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, unsigned int etThresholdForRHadFrac) override |
|
virtual unsigned int | getSeed () const override |
|
virtual StatusCode | safetyTest () |
|
virtual bool | isCentralTowerSeed () const |
|
virtual void | getRCore (std::vector< unsigned int > &rCoreVec) const |
|
virtual unsigned int | rCoreCore () const |
|
virtual unsigned int | rCoreEnv () const |
|
virtual float | getRealRCore () const |
|
virtual void | getRHad (std::vector< unsigned int > &rHadVec) const |
|
virtual float | getRealRHad () const |
|
virtual void | getSums (unsigned int seed, bool UnD, std::vector< unsigned int > &RcoreSums, std::vector< unsigned int > &Remums) |
|
void | setSCellEncoder (LVL1::eFEXtauTOB *tob) const |
|
virtual bool | getUnD () 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, V, H > &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 | initBDTVars () |
|
void | setSCellPointers () |
|
void | setThresholdPointers () |
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
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 37 of file eFEXtauAlgoBase.cxx.
43 for (
unsigned int ieta = 0; ieta < 3; ieta++) {
44 for (
unsigned int iphi = 0; iphi < 3; iphi++) {
45 if (((efex_id % 3 == 0) && (fpga_id == 0) && (central_eta == 0) &&
47 ((efex_id % 3 == 2) && (fpga_id == 3) && (central_eta == 5) &&
53 for (
unsigned int i = 0;
i < 4;
i++) {
64 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);
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
◆ 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 |
|
virtualinherited |
◆ getRealRCore()
float LVL1::eFEXtauAlgoBase::getRealRCore |
( |
| ) |
const |
|
virtualinherited |
◆ getRealRHad()
float LVL1::eFEXtauAlgoBase::getRealRHad |
( |
| ) |
const |
|
virtualinherited |
◆ getRHad()
void LVL1::eFEXtauAlgoBase::getRHad |
( |
std::vector< unsigned int > & |
rHadVec | ) |
const |
|
virtualinherited |
◆ 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 |
|
) |
| |
|
virtualinherited |
◆ getTauTOB()
◆ getUnD()
virtual bool LVL1::eFEXtauAlgoBase::getUnD |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ initBDTVars()
StatusCode LVL1::eFEXtauBDTAlgo::initBDTVars |
( |
| ) |
|
|
private |
◆ initialize()
StatusCode LVL1::eFEXtauBDTAlgo::initialize |
( |
| ) |
|
|
overridevirtual |
standard Athena-Algorithm method
Definition at line 28 of file eFEXtauBDTAlgo.cxx.
31 ATH_MSG_ERROR(
"eFEX tau BDT json config file path not set in configuration");
32 return StatusCode::FAILURE;
46 }
catch (
const std::domain_error &ex) {
48 return StatusCode::FAILURE;
52 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()
static const InterfaceID& LVL1::eFEXtauAlgoBase::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ isBDT()
bool LVL1::eFEXtauBDTAlgo::isBDT |
( |
| ) |
const |
|
overridevirtual |
◆ isCentralTowerSeed()
bool LVL1::eFEXtauAlgoBase::isCentralTowerSeed |
( |
| ) |
const |
|
virtualinherited |
Definition at line 130 of file eFEXtauAlgoBase.cxx.
134 "Layers not built, cannot accurately determine if a seed tower.");
144 for (
unsigned int bphi = 0; bphi < 3; bphi++) {
146 if ((
beta == 1) && (bphi == 1)) {
151 if (
beta == 2 || (
beta == 1 && bphi == 2)) {
158 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 |
|
inlinevirtualinherited |
◆ rCoreEnv()
virtual unsigned int LVL1::eFEXtauAlgoBase::rCoreEnv |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ renounce()
◆ renounceArray()
◆ rHadCore()
unsigned int LVL1::eFEXtauBDTAlgo::rHadCore |
( |
| ) |
const |
|
overridevirtual |
◆ rHadEnv()
unsigned int LVL1::eFEXtauBDTAlgo::rHadEnv |
( |
| ) |
const |
|
overridevirtual |
◆ safetyTest()
StatusCode LVL1::eFEXtauAlgoBase::safetyTest |
( |
| ) |
|
|
virtualinherited |
Definition at line 24 of file eFEXtauAlgoBase.cxx.
31 return StatusCode::FAILURE;
33 return StatusCode::SUCCESS;
◆ setSCellEncoder()
◆ 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, |
|
|
unsigned int |
etThresholdForRHadFrac |
|
) |
| |
|
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", "",
"Path to BDT json config file"}
Definition at line 89 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_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 72 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_maxEtThresholdFrac
unsigned int LVL1::eFEXtauBDTAlgo::m_maxEtThresholdFrac {} |
|
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.
virtual float getRealRCore() const
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:
SG::ReadHandleKey< LVL1::eTowerContainer > m_eTowerContainerKey
unsigned int m_em3cells[3][3]
Scalar eta() const
pseudorapidity method
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
unsigned int m_maxEtThreshold
virtual unsigned int rHadCore() const override
const std::string & key() const
Return the StoreGate ID for the referenced object.
virtual void getRCore(std::vector< unsigned int > &rCoreVec) const
unsigned int m_bdtMinEtThreshold
virtual unsigned int getEt() const override
virtual void setOwner(IDataHandleHolder *o)=0
unsigned int m_em0cells[3][3]
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
unsigned int m_bdtThresholds[3]
unsigned int m_maxEtThresholdFrac
unsigned int m_hadcells[3][3]
unsigned int m_em2cells[12][3]
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
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()
virtual void getRHad(std::vector< unsigned int > &rHadVec) const
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
virtual unsigned int rCoreEnv() const
unsigned int m_etThreshold
virtual unsigned int rHadCore() const =0
virtual unsigned int getBitwiseEt() const override
virtual unsigned int rHadEnv() const =0
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 rCoreCore() const
eFEXtauAlgoBase(const std::string &type, const std::string &name, const IInterface *parent)
Constructors.