|
ATLAS Offline Software
|
#include <TRT_FillCablingData_TB04.h>
|
| TRT_FillCablingData_TB04 (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~TRT_FillCablingData_TB04 () |
|
virtual StatusCode | initialize () |
|
virtual StatusCode | finalize () |
|
TRT_CablingData * | fillData () |
|
void | defineCollID () |
|
std::vector< uint32_t > | getRobID (Identifier id) const |
|
void | fillCollID (uint32_t rob_id, std::vector< IdentifierHash > &ids) |
|
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 |
|
Definition at line 34 of file TRT_FillCablingData_TB04.h.
◆ StoreGateSvc_t
◆ TRT_FillCablingData_TB04()
TRT_FillCablingData_TB04::TRT_FillCablingData_TB04 |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~TRT_FillCablingData_TB04()
TRT_FillCablingData_TB04::~TRT_FillCablingData_TB04 |
( |
| ) |
|
|
virtual |
◆ 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]
◆ defineCollID()
void TRT_FillCablingData_TB04::defineCollID |
( |
| ) |
|
◆ defineParameters()
void TRT_FillCablingData_TB04::defineParameters |
( |
| ) |
|
|
private |
Definition at line 106 of file TRT_FillCablingData_TB04.cxx.
122 int numberOfStrawsInLayersA[] = {15, 16, 16, 16, 16, 17, 17, 17, 17, 17, 18,
123 18, 18, 18, 18, 19, 19, 19, 18};
125 int numberOfStrawsInLayersB[] = {19, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21,
126 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 24, 24, 23};
128 int numberOfStrawsInLayersC[] = {23, 24, 24, 24, 24, 25, 25, 25, 25, 25, 26,
129 26, 26, 26, 26, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 29, 29, 29, 29, 28};
131 std::vector<int> ncol0 (
std::begin(numberOfStrawsInLayersA),
133 std::vector<int> ncol1 (
std::begin(numberOfStrawsInLayersB),
135 std::vector<int> ncol2 (
std::begin(numberOfStrawsInLayersC),
◆ defineTables()
void TRT_FillCablingData_TB04::defineTables |
( |
| ) |
|
|
private |
Definition at line 150 of file TRT_FillCablingData_TB04.cxx.
156 int phiModuleId, moduleId, strawLayerId, strawInLayerId,
157 strawNumberInModule,BufferLocation;
164 std::vector<Identifier> tempbuff;
165 std::vector<IdentifierHash> tempbuff2;
166 for (
int i = 0;
i < 8*13*16;
i++){
168 tempbuff.push_back(
id);
169 tempbuff2.emplace_back(0);
174 std::ostringstream ssFile;
176 std::string
dataFile =
"TRT_TB04_IdMapping_ROD" + ssFile.str() +
".dat";
201 inputFile >> phiModuleId >> moduleId >> strawNumberInModule
205 const bool validPhi =
inRange(phiModuleId, invalidInput, maxPossiblePhiModule);
206 const bool validModule =
inRange(moduleId, invalidInput, maxPossibleModule);
208 const bool validBuffer =
inRange(BufferLocation, invalidInput, maxPossibleBufferLocation);
209 if (not (validPhi and validModule and validStrawNumber and validBuffer)) {
210 ATH_MSG_WARNING(
"One of the following is out of range: " << phiModuleId <<
", " << moduleId
211 <<
", " << strawNumberInModule <<
", " << BufferLocation);
217 if (phiModuleId == 0)
241 strawNumberInModule--;
242 if (strawNumberInModule < 0) {
243 ATH_MSG_WARNING(
"Straw number in module became negative: " << strawNumberInModule);
249 strawInLayerId=strawNumberInModule;
251 while(strawInLayerId>=0){
253 strawInLayerId -=
m_ncol[moduleId][strawLayerId];
258 strawInLayerId +=
m_ncol[moduleId][strawLayerId];
266 strawLayerId, strawInLayerId);
273 BufferLocation, hashId);
275 ATH_MSG_DEBUG(
"defineTables: unable to get hash for IdLayer " << IdLayer );
◆ 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
◆ fillCollID()
void TRT_FillCablingData_TB04::fillCollID |
( |
uint32_t |
rob_id, |
|
|
std::vector< IdentifierHash > & |
ids |
|
) |
| |
◆ fillData()
◆ finalize()
StatusCode TRT_FillCablingData_TB04::finalize |
( |
| ) |
|
|
virtual |
◆ getRobID()
std::vector< uint32_t > TRT_FillCablingData_TB04::getRobID |
( |
Identifier |
id | ) |
const |
Definition at line 407 of file TRT_FillCablingData_TB04.cxx.
409 std::vector<uint32_t>
v;
424 if (id_barrel_ec == -1)
433 v.push_back( 0x310001 );
437 " TRT_FillCablingData_TB04 --> Couldn't get RobID for given Identifier " \
◆ initialize()
StatusCode TRT_FillCablingData_TB04::initialize |
( |
| ) |
|
|
virtual |
◆ 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 & TRT_FillCablingData_TB04::interfaceID |
( |
| ) |
|
|
static |
◆ 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()
◆ 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_cabling
◆ m_cntx
◆ m_collID
std::vector<std::vector<IdentifierHash> *> TRT_FillCablingData_TB04::m_collID |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_identfierForAllStraws
std::vector< std::vector<Identifier> > TRT_FillCablingData_TB04::m_identfierForAllStraws |
|
private |
◆ m_identfierHashForAllStraws
std::vector< std::vector<IdentifierHash> > TRT_FillCablingData_TB04::m_identfierHashForAllStraws |
|
private |
◆ m_ncol
std::vector< std::vector<int> > TRT_FillCablingData_TB04::m_ncol |
|
private |
◆ m_numberOfIdentifierSectors
int TRT_FillCablingData_TB04::m_numberOfIdentifierSectors = 0 |
|
private |
◆ m_numberOfLayersA
int TRT_FillCablingData_TB04::m_numberOfLayersA = 0 |
|
private |
◆ m_numberOfLayersB
int TRT_FillCablingData_TB04::m_numberOfLayersB = 0 |
|
private |
◆ m_numberOfLayersC
int TRT_FillCablingData_TB04::m_numberOfLayersC = 0 |
|
private |
◆ m_numberOfRings
int TRT_FillCablingData_TB04::m_numberOfRings = 0 |
|
private |
◆ m_phi_to_source
std::vector<uint32_t> TRT_FillCablingData_TB04::m_phi_to_source |
|
private |
◆ m_StrawsByModule
int TRT_FillCablingData_TB04::m_StrawsByModule[3] {} |
|
private |
◆ m_TRTHelper
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
Identifier layer_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer) const
For an individual straw layer.
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
void fillCollID(uint32_t rob_id, std::vector< IdentifierHash > &ids)
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
void set_identifierHashForAllStraws(int rod, int bufferPosition, IdentifierHash hashId)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< uint32_t > m_phi_to_source
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
void set_identifierForAllStraws(int rod, int bufferPosition, Identifier strawID)
int m_numberOfIdentifierSectors
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
void zero_identifierForAllStraws(int rod, const std::vector< Identifier > &tempbuff)
virtual int get_hash(const Identifier &id, IdentifierHash &hash_id, const IdContext *context=0) const override final
Create hash id from compact id (return == 0 for OK)
void add_collID(uint32_t rob_id, std::vector< IdentifierHash > *vectID)
IdContext straw_layer_context(void) const
straw_layer id
::StatusCode StatusCode
StatusCode definition for legacy code.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
bool inRange(const double *boundaries, const double value, const double tolerance=0.02)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form
int phi_module(const Identifier &id) const
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
#define ATH_MSG_WARNING(x)
const TRT_ID * m_TRTHelper
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
TRT_CablingData * m_cabling
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Identifier straw_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer, int straw) const
Three ways of getting id for a single straw:
std::vector< std::vector< int > > m_ncol
void zero_identifierHashForAllStraws(int rod, const std::vector< IdentifierHash > &tempbuff)