 |
ATLAS Offline Software
|
Algorithm to count create inputs and expectations to test the eEmMultAlgTool class.
More...
#include <eEmMultTestBench.h>
|
| | eEmMultTestBench (const std::string &name, ISvcLocator *pSvcLocator) |
| |
| virtual StatusCode | initialize () override |
| |
| virtual StatusCode | execute () override |
| |
| virtual StatusCode | sysInitialize () override |
| | Override sysInitialize. More...
|
| |
| virtual const DataObjIDColl & | extraOutputDeps () const override |
| | Return the list of extra output dependencies. 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 | 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 |
| |
|
| std::unique_ptr< TIPword > | TIPword_from_file () const |
| |
| GlobalSim::IOBitwise::IeEmTOB * | make_tob (const std::string &s) const |
| |
| 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...
|
| |
Algorithm to count create inputs and expectations to test the eEmMultAlgTool class.
Definition at line 41 of file eEmMultTestBench.h.
◆ StoreGateSvc_t
◆ eEmMultTestBench()
| GlobalSim::eEmMultTestBench::eEmMultTestBench |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ 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]
◆ execute()
| StatusCode GlobalSim::eEmMultTestBench::execute |
( |
| ) |
|
|
overridevirtual |
Definition at line 70 of file eEmMultTestBench.cxx.
74 auto padded_line = std::string();
75 auto tobs = std::make_unique<GlobalSim::IOBitwise::IeEmTOBContainer>();
83 return StatusCode::FAILURE;
86 if(
line ==
"EOE") {
break;}
88 if (
line.starts_with(
"//")){
continue;}
95 CHECK(h_write_tobs.record(std::move(tobs)));
99 CHECK(h_write_TIPword.record(std::move(twp)));
101 return StatusCode::SUCCESS;
◆ 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
◆ extraOutputDeps()
| const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ initialize()
| StatusCode GlobalSim::eEmMultTestBench::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 23 of file eEmMultTestBench.cxx.
34 <<
" on " <<
"$DATAPATH");
35 return StatusCode::FAILURE;
42 return StatusCode::FAILURE;
47 return StatusCode::FAILURE;
54 <<
" on " <<
"$DATAPATH");
55 return StatusCode::FAILURE;
62 return StatusCode::FAILURE;
66 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.
◆ make_tob()
| IeEmTOB * GlobalSim::eEmMultTestBench::make_tob |
( |
const std::string & |
s | ) |
const |
|
private |
Definition at line 116 of file eEmMultTestBench.cxx.
119 std::stringstream
ss(trimmed_line);
120 std::string
et,
eta,
phi, RHad, WsTot, REta,
seed, UpNotDown, SeedIsMax;
128 std::bitset<s_eta_width>(
eta),
129 std::bitset<s_phi_width>(
phi));
142 std::bitset(std::bitset<s_RHad_width>(RHad)),
143 std::bitset(std::bitset<s_REta_width>(REta)),
144 std::bitset(std::bitset<s_WsTot_width>(WsTot)),
145 std::bitset(std::bitset<s_Seed_width>(seed)),
146 std::bitset(std::bitset<s_UpNotDown_width>(UpNotDown)),
147 std::bitset(std::bitset<s_SeedIsMax_width>(SeedIsMax)));
◆ 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.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
| StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ TIPword_from_file()
| std::unique_ptr< TIPword > GlobalSim::eEmMultTestBench::TIPword_from_file |
( |
| ) |
const |
|
private |
Definition at line 104 of file eEmMultTestBench.cxx.
106 auto line = std::string();
107 using TIP = std::bitset<ITIPwriterAlgTool::s_nbits_TIP>;
109 auto twp = std::make_unique<TIP>(std::stoul(
trim(std::move(
line))));
◆ updateVHKA()
◆ m_detStore
◆ m_eEmTOBContainer_WriteKey
Initial value:{
this,
"eEmTOBs",
"eEmTOBs",
"Key for GlobalSim eEmTOB container"}
Definition at line 53 of file eEmMultTestBench.h.
◆ m_evtStore
◆ m_extendedExtraObjects
| DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_TIPword_fileName
| Gaudi::Property<std::string> GlobalSim::eEmMultTestBench::m_TIPword_fileName |
|
private |
Initial value:{this,
"TIPwords_fileName",
{"GlobalSimulation/eEmMultTest_TIPwords.txt"},
"name of file with expected TIP words"}
Definition at line 75 of file eEmMultTestBench.h.
◆ m_TIPword_stream
| std::unique_ptr<std::ifstream> GlobalSim::eEmMultTestBench::m_TIPword_stream {nullptr} |
|
private |
◆ m_TIPword_WriteKey
Initial value:{
this,
"TIPwordWriteKey",
"ExpectedTIPwords",
"key to write out expectations for the TIP word"
}
Definition at line 61 of file eEmMultTestBench.h.
◆ m_tob_stream
| std::ifstream GlobalSim::eEmMultTestBench::m_tob_stream |
|
private |
◆ m_tobs_fileName
| Gaudi::Property<std::string> GlobalSim::eEmMultTestBench::m_tobs_fileName |
|
private |
Initial value:{this,
"tobs_fileName",
{"GlobalSimulation/eEmMultTest_tobs.txt"},
"name of file with Global Sim eEmTOB data"}
Definition at line 69 of file eEmMultTestBench.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
Extra patterns decribing particle interation process.
Class to hold eFexROI TOB bits.
Scalar phi() const
phi method
static constexpr std::size_t s_REta_width
Count: Size of R0 thresholds satisfied bitset.
Scalar eta() const
pseudorapidity method
static constexpr std::size_t s_phi_width
Size of the phi bitset.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Gaudi::Property< std::string > m_tobs_fileName
std::vector< SG::VarHandleKeyArray * > m_vhka
static constexpr std::size_t s_UpNotDown_width
Count: Size of UpnotDown bit.
static constexpr std::size_t s_et_width
Size of the eT bitset.
Class to hold common (eta/eta/phi) TOB bits.
SG::WriteHandleKey< GlobalSim::IOBitwise::IeEmTOBContainer > m_eEmTOBContainer_WriteKey
virtual void setOwner(IDataHandleHolder *o)=0
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
static constexpr std::size_t s_RHad_width
Count: Size of hadronic thresholds satisfied bitset.
virtual StatusCode sysInitialize() override
Override sysInitialize.
Gaudi::Property< std::string > m_TIPword_fileName
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
static constexpr std::size_t s_eta_width
Size of the eta bitset.
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
std::string trim(std::string s)
#define CHECK(...)
Evaluate an expression and check for errors.
static constexpr std::size_t s_SeedIsMax_width
Count: Size of Seed supercell is a local maxima bit.
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.
std::ifstream m_tob_stream
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
GlobalSim::IOBitwise::IeEmTOB * make_tob(const std::string &s) const
static constexpr std::size_t s_WsTot_width
Count: Size of WsTot algorithm thresholds satisfied bitset.
std::unique_ptr< std::ifstream > m_TIPword_stream
SG::WriteHandleKey< TIPword > m_TIPword_WriteKey
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
static std::string find_file(const std::string &logical_file_name, const std::string &search_path)
static constexpr std::size_t s_Seed_width
Count: Size of Seed eta position in the TOB bitset.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
std::unique_ptr< TIPword > TIPword_from_file() const