|
ATLAS Offline Software
|
#include <TrigL2LayerNumberTool.h>
|
| TrigL2LayerNumberTool (const std::string &, const std::string &, const IInterface *) |
|
virtual | ~TrigL2LayerNumberTool () |
|
StatusCode | initialize () |
|
StatusCode | finalize () |
|
virtual int | maxSiliconLayerNum () const |
|
virtual int | offsetEndcapPixels () const |
|
virtual int | offsetBarrelSCT () const |
|
virtual int | offsetEndcapSCT () const |
|
virtual void | report () const |
|
virtual int | maxNumberOfUniqueLayers () const |
|
virtual const std::vector< short > * | pixelLayers () const |
|
virtual const std::vector< short > * | sctLayers () const |
|
virtual const std::vector< TrigInDetSiLayer > * | layerGeometry () 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 |
|
Definition at line 45 of file TrigL2LayerNumberTool.h.
◆ StoreGateSvc_t
◆ TrigL2LayerNumberTool()
TrigL2LayerNumberTool::TrigL2LayerNumberTool |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~TrigL2LayerNumberTool()
virtual TrigL2LayerNumberTool::~TrigL2LayerNumberTool |
( |
| ) |
|
|
inlinevirtual |
◆ createModuleHashMap()
void TrigL2LayerNumberTool::createModuleHashMap |
( |
std::map< std::tuple< short, short, short >, std::vector< PhiEtaHash > > & |
hashMap | ) |
|
|
protected |
Definition at line 102 of file TrigL2LayerNumberTool.cxx.
110 if(offlineId==0)
continue;
113 if(std::abs(barrel_ec)>2)
continue;
119 auto t = std::make_tuple(barrel_ec==0 ? -100 : barrel_ec, subdetid, layer_disk);
121 std::map<std::tuple<short,short,short>,std::vector<PhiEtaHash> >
::iterator it = hashMap.find(
t);
122 if(
it==hashMap.end())
123 hashMap.insert(std::pair<std::tuple<short,short,short>,std::vector<PhiEtaHash> >(
t,std::vector<PhiEtaHash>(1,
PhiEtaHash(phi_index,
eta_index,
hash) )));
131 if(offlineId==0)
continue;
140 auto t = std::make_tuple(barrel_ec==0 ? -100 : barrel_ec, subdetid, layer_disk);
142 std::map<std::tuple<short,short,short>,std::vector<PhiEtaHash> >
::iterator it = hashMap.find(
t);
143 if(
it==hashMap.end())
144 hashMap.insert(std::pair<std::tuple<short,short,short>,std::vector<PhiEtaHash> >(
t,std::vector<PhiEtaHash>(1,
PhiEtaHash(phi_index,
eta_index,
hash))));
157 for(std::map<std::tuple<short,short,short>,std::vector<PhiEtaHash> >::
iterator it = hashMap.begin();
it!=hashMap.end();++
it, layerId++) {
159 short subdetId = std::get<1>((*it).first);
160 short barrel_ec = std::get<0>((*it).first);
161 if(barrel_ec==-100) barrel_ec = 0;
170 float minBound = 100000.0;
171 float maxBound =-100000.0;
188 ATH_MSG_ERROR(
"nullptr SiDetectorElement with idHash " << (*hIt).m_hash);
193 rc += sqrt(
C(0)*
C(0)+
C(1)*
C(1));
194 if(
p->zMin() < minBound) minBound =
p->zMin();
195 if(
p->zMax() > maxBound) maxBound =
p->zMax();
199 if(
p->rMin() < minBound) minBound =
p->rMin();
200 if(
p->rMax() > maxBound) maxBound =
p->rMax();
212 for(
int l=0;
l<layerId;
l++) {
218 oldL = oldL < M ? oldL : oldL - M;
◆ 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
◆ finalize()
StatusCode TrigL2LayerNumberTool::finalize |
( |
| ) |
|
◆ initialize()
StatusCode TrigL2LayerNumberTool::initialize |
( |
| ) |
|
◆ 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& ITrigL2LayerNumberTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ layerGeometry()
◆ maxNumberOfUniqueLayers()
virtual int TrigL2LayerNumberTool::maxNumberOfUniqueLayers |
( |
| ) |
const |
|
inlinevirtual |
◆ maxSiliconLayerNum()
virtual int TrigL2LayerNumberTool::maxSiliconLayerNum |
( |
| ) |
const |
|
inlinevirtual |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ offsetBarrelSCT()
virtual int TrigL2LayerNumberTool::offsetBarrelSCT |
( |
| ) |
const |
|
inlinevirtual |
◆ offsetEndcapPixels()
virtual int TrigL2LayerNumberTool::offsetEndcapPixels |
( |
| ) |
const |
|
inlinevirtual |
◆ offsetEndcapSCT()
virtual int TrigL2LayerNumberTool::offsetEndcapSCT |
( |
| ) |
const |
|
inlinevirtual |
◆ 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.
◆ pixelLayers()
virtual const std::vector<short>* TrigL2LayerNumberTool::pixelLayers |
( |
| ) |
const |
|
inlinevirtual |
◆ renounce()
◆ renounceArray()
◆ report()
void TrigL2LayerNumberTool::report |
( |
| ) |
const |
|
virtual |
◆ sctLayers()
virtual const std::vector<short>* TrigL2LayerNumberTool::sctLayers |
( |
| ) |
const |
|
inlinevirtual |
◆ 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_detStore
◆ m_evtStore
◆ m_hashMap
std::map<std::tuple<short,short,short>,std::vector<PhiEtaHash> > TrigL2LayerNumberTool::m_hashMap |
|
protected |
◆ m_LastBarrelLayer
int TrigL2LayerNumberTool::m_LastBarrelLayer = 0 |
|
protected |
◆ m_layerGeometry
◆ m_MaxSiliconLayerNum
int TrigL2LayerNumberTool::m_MaxSiliconLayerNum |
|
protected |
◆ m_OffsetBarrelSCT
int TrigL2LayerNumberTool::m_OffsetBarrelSCT |
|
protected |
◆ m_OffsetEndcapPixels
int TrigL2LayerNumberTool::m_OffsetEndcapPixels |
|
protected |
◆ m_OffsetEndcapSCT
int TrigL2LayerNumberTool::m_OffsetEndcapSCT |
|
protected |
◆ m_pixelId
◆ m_pixelLayers
std::vector<short> TrigL2LayerNumberTool::m_pixelLayers |
|
protected |
◆ m_pixelManager
◆ m_sctId
◆ m_sctLayers
std::vector<short> TrigL2LayerNumberTool::m_sctLayers |
|
protected |
◆ m_sctManager
◆ m_useNewScheme
bool TrigL2LayerNumberTool::m_useNewScheme |
|
protected |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
const SiNumerology & numerology() const
Access Numerology.
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
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
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
int phi_module(const Identifier &id) const
virtual SiDetectorElement * getDetectorElement(const Identifier &id) const override
access to individual elements via Identifier
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
::StatusCode StatusCode
StatusCode definition for legacy code.
int numDisks() const
Number of disks.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
int numLayers() const
Number of layers.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
int layer_disk(const Identifier &id) const
int eta_module(const Identifier &id) const
size_type wafer_hash_max(void) const
int layer_disk(const Identifier &id) const
size_type wafer_hash_max(void) const
Eigen::Matrix< double, 3, 1 > Vector3D
int eta_module(const Identifier &id) const
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
int phi_module(const Identifier &id) const
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
virtual SiDetectorElement * getDetectorElement(const Identifier &id) const override
access to individual elements : via Identifier