|
ATLAS Offline Software
|
#include <LArFCalTowerBuilderToolTestAlg.h>
|
| LArFCalTowerBuilderToolTestAlg (const std::string &name, ISvcLocator *pSvcLocator) |
| Constructor. More...
|
|
virtual StatusCode | initialize () override |
| Standard Gaudi initialize method. More...
|
|
virtual StatusCode | execute () override |
| Standard Gaudi execute method. More...
|
|
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 > &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 |
|
◆ StoreGateSvc_t
◆ LArFCalTowerBuilderToolTestAlg()
LArFCalTowerBuilderToolTestAlg::LArFCalTowerBuilderToolTestAlg |
( |
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 LArFCalTowerBuilderToolTestAlg::execute |
( |
| ) |
|
|
overridevirtual |
◆ 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 LArFCalTowerBuilderToolTestAlg::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.
◆ make_cells()
◆ 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.
◆ test1()
StatusCode LArFCalTowerBuilderToolTestAlg::test1 |
( |
| ) |
|
|
private |
Definition at line 158 of file LArFCalTowerBuilderToolTestAlg.cxx.
160 std::cout <<
"test1\n";
161 const EventContext& ctx = Gaudi::Hive::currentContext();
168 std::cout <<
"cells\n";
169 for (
size_t i = 0;
i <
cells->size();
i++) {
171 std::cout <<
i <<
" "
172 << (
int)(
c->caloDDE()->calo_hash()) <<
" "
173 <<
c->eta() <<
" " <<
c->phi() <<
" " <<
c->energy() <<
"\n";
177 std::cout <<
"towers\n";
178 for (
size_t i = 0;
i < tow1->
size();
i++) {
180 std::cout <<
i <<
" "
183 <<
t->energy() <<
" ";
185 cit !=
t->cell_end();
188 std::cout << (*cit)->caloDDE()->calo_hash() <<
" ";
198 return StatusCode::SUCCESS;
◆ test_subseg()
Definition at line 96 of file LArFCalTowerBuilderToolTestAlg.cxx.
104 for (
size_t i = 0;
i < tow->
size();
i++) {
114 if (!
comp (
t0->energy(),
t1->energy()) ||
118 std::cout <<
"Energy mismatch " <<
i <<
" "
119 << ieta1 <<
" " << iphi1 <<
" "
120 <<
t0->eta() <<
" " <<
t0->phi() <<
" "
121 <<
t1->eta() <<
" " <<
t1->phi() <<
" "
122 <<
t0->energy() <<
" " <<
t1->energy() <<
"\n";
125 std::vector<unsigned int>
h0;
127 cit !=
t0->cell_end();
130 h0.push_back ((*cit)->caloDDE()->calo_hash());
133 std::vector<unsigned int>
h1;
135 cit !=
t1->cell_end();
138 h1.push_back ((*cit)->caloDDE()->calo_hash());
142 std::cout <<
"Cell list mismatch.\n";
143 for (
size_t i = 0;
i <
h0.size();
i++)
144 std::cout <<
" " <<
h0[
i];
146 for (
size_t i = 0;
i <
h1.size();
i++)
147 std::cout <<
" " <<
h1[
i];
154 return StatusCode::SUCCESS;
◆ updateVHKA()
◆ m_builder
◆ m_caloMgrKey
Initial value:{ this
, "CaloDetDescrManager"
, "CaloDetDescrManager"
, "SG Key for CaloDetDescrManager in the Condition Store" }
Definition at line 66 of file LArFCalTowerBuilderToolTestAlg.h.
◆ m_calos
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_seed
uint32_t LArFCalTowerBuilderToolTestAlg::m_seed |
|
private |
◆ m_seg
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
calo_element_range element_range() const
Range over element vector.
CaloTower * getTower(index_t eta, index_t phi)
Returns a pointer to a tower with given indices.
index_t phimin() const
Lower phi index.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
std::vector< ALFA_RawData_p1 > t0
std::vector< ALFA_RawDataCollection_p1 > t1
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
index_t etamin() const
Lower eta index.
index_t nphi() const
Retrieve number of bins.
Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current CaloTowerContainer
virtual void setOwner(IDataHandleHolder *o)=0
Storable container class for CaloTower.
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
CaloEnergyCluster::cell_iterator cell_iterator
Iterator on CaloCell s.
::StatusCode StatusCode
StatusCode definition for legacy code.
SUBCALO
enumeration of sub calorimeters
index_t getTowerEtaIndex(const CaloTower *aTower) const
Returns the index for a given tower.
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
int32_t index_t
The index type of the node in the vector.
virtual void renounce()=0
Data class for calorimeter cell towers.
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
StatusCode initialize(bool used=true)
Container class for CaloCell.
CaloTowerSeg segmentation() const
Return a new segmentation object corresponding to this window.
size_t index_t
Tower map index type.
DataObjIDColl m_extendedExtraObjects
This class provides the client interface for accessing the detector description information common to...
Data object for each calorimeter readout cell.
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Data object stores CaloTower segmentation.
AthAlgorithm()
Default constructor:
index_t getTowerPhiIndex(const CaloTower *aTower) const
Returns the index for a given tower.
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
float randf_seed(uint32_t &seed, float rmax, float rmin=0)
Generate a floating-point random number between rmin and rmax.
SubSeg subseg(double eta, double deta, double phi, double dphi) const
Return a window within the current segmentation.