|
ATLAS Offline Software
|
#include <TrigL2LayerNumberToolITk.h>
|
| TrigL2LayerNumberToolITk (const std::string &, const std::string &, const IInterface *) |
|
virtual | ~TrigL2LayerNumberToolITk () |
|
virtual StatusCode | initialize () override |
|
virtual int | maxSiliconLayerNum () const override |
|
virtual int | offsetEndcapPixels () const override |
|
virtual int | offsetBarrelSCT () const override |
|
virtual int | offsetEndcapSCT () const override |
|
virtual void | report () const override |
|
virtual int | maxNumberOfUniqueLayers () const override |
|
virtual const std::vector< short > * | pixelLayers () const override |
|
virtual const std::vector< short > * | sctLayers () const override |
|
virtual const std::vector< TrigInDetSiLayer > * | layerGeometry () const override |
|
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 TrigL2LayerNumberToolITk.h.
◆ StoreGateSvc_t
◆ TrigL2LayerNumberToolITk()
TrigL2LayerNumberToolITk::TrigL2LayerNumberToolITk |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~TrigL2LayerNumberToolITk()
virtual TrigL2LayerNumberToolITk::~TrigL2LayerNumberToolITk |
( |
| ) |
|
|
inlinevirtual |
◆ createModuleHashMap()
void TrigL2LayerNumberToolITk::createModuleHashMap |
( |
std::map< std::tuple< int, int, short, short >, std::vector< PhiEtaHashITk > > & |
hashMap | ) |
|
|
protected |
Definition at line 66 of file TrigL2LayerNumberToolITk.cxx.
78 if(offlineId==0)
continue;
81 if(std::abs(barrel_ec)>2)
continue;
89 if(barrel_ec== 0) vol_id = 8;
90 if(barrel_ec==-2) vol_id = 7;
91 if(barrel_ec== 2) vol_id = 9;
93 int new_vol=0, new_lay=0;
95 if(vol_id == 7 || vol_id == 9) {
96 new_vol = 10*vol_id + lay_id;
99 else if(vol_id == 8) {
101 new_vol = 10*vol_id + lay_id;
104 auto t = std::make_tuple(barrel_ec==0 ? -100 : barrel_ec, subdetid, new_vol, new_lay);
106 std::map<std::tuple<int, int, short, short>,std::vector<PhiEtaHashITk> >
::iterator it = hashMap.find(
t);
107 if(
it==hashMap.end())
108 hashMap.insert(std::pair<std::tuple<int, int, short, short>,std::vector<PhiEtaHashITk> >(
t,std::vector<PhiEtaHashITk>(1,
PhiEtaHashITk(phi_index,
eta_index,
hash) )));
118 if(offlineId==0)
continue;
126 if(barrel_ec) vol_id = 12;
127 if(barrel_ec>0) vol_id = 14;
131 auto t = std::make_tuple(barrel_ec==0 ? -100 : barrel_ec, subdetid, vol_id, lay_id);
133 std::map<std::tuple<int, int, short, short>,std::vector<PhiEtaHashITk> >
::iterator it = hashMap.find(
t);
134 if(
it==hashMap.end())
135 hashMap.insert(std::pair<std::tuple<int, int, short, short>,std::vector<PhiEtaHashITk> >(
t,std::vector<PhiEtaHashITk>(1,
PhiEtaHashITk(phi_index,
eta_index,
hash))));
150 for(std::map<std::tuple<int, int, short, short>,std::vector<PhiEtaHashITk> >::
iterator it = hashMap.begin();
it!=hashMap.end();++
it, layerId++) {
152 short vol_id = std::get<2>((*it).first);
153 short lay_id = std::get<3>((*it).first);
154 int combinedId =
static_cast<int>(vol_id)*1000 + lay_id;
156 short subdetId = std::get<1>((*it).first);
157 short barrel_ec = std::get<0>((*it).first);
159 if(barrel_ec == -100) barrel_ec = 0;
170 float minBound = 100000.0;
171 float maxBound =-100000.0;
189 rc += sqrt(
C(0)*
C(0)+
C(1)*
C(1));
190 if(
p->zMin() < minBound) minBound =
p->zMin();
191 if(
p->zMax() > maxBound) maxBound =
p->zMax();
195 if(
p->rMin() < minBound) minBound =
p->rMin();
196 if(
p->rMax() > maxBound) maxBound =
p->rMax();
205 ATH_MSG_INFO(
"List of unique layers in Pixel and SCT :");
206 for(
int l=0;
l<layerId;
l++) {
◆ 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
◆ initialize()
StatusCode TrigL2LayerNumberToolITk::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.
◆ interfaceID()
static const InterfaceID& ITrigL2LayerNumberTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ layerGeometry()
◆ maxNumberOfUniqueLayers()
virtual int TrigL2LayerNumberToolITk::maxNumberOfUniqueLayers |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ maxSiliconLayerNum()
virtual int TrigL2LayerNumberToolITk::maxSiliconLayerNum |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ offsetBarrelSCT()
virtual int TrigL2LayerNumberToolITk::offsetBarrelSCT |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ offsetEndcapPixels()
virtual int TrigL2LayerNumberToolITk::offsetEndcapPixels |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ offsetEndcapSCT()
virtual int TrigL2LayerNumberToolITk::offsetEndcapSCT |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ 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>* TrigL2LayerNumberToolITk::pixelLayers |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ renounce()
◆ renounceArray()
◆ report()
void TrigL2LayerNumberToolITk::report |
( |
| ) |
const |
|
overridevirtual |
◆ sctLayers()
virtual const std::vector<short>* TrigL2LayerNumberToolITk::sctLayers |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ 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<int, int, short, short>,std::vector<PhiEtaHashITk> > TrigL2LayerNumberToolITk::m_hashMap |
|
protected |
◆ m_LastBarrelLayer
int TrigL2LayerNumberToolITk::m_LastBarrelLayer {0} |
|
protected |
◆ m_layerGeometry
◆ m_MaxSiliconLayerNum
int TrigL2LayerNumberToolITk::m_MaxSiliconLayerNum {-1} |
|
protected |
◆ m_OffsetBarrelSCT
int TrigL2LayerNumberToolITk::m_OffsetBarrelSCT {-1} |
|
protected |
◆ m_OffsetEndcapPixels
int TrigL2LayerNumberToolITk::m_OffsetEndcapPixels {-1} |
|
protected |
◆ m_OffsetEndcapSCT
int TrigL2LayerNumberToolITk::m_OffsetEndcapSCT {-1} |
|
protected |
◆ m_pixelId
const PixelID* TrigL2LayerNumberToolITk::m_pixelId {nullptr} |
|
protected |
◆ m_pixelLayers
std::vector<short> TrigL2LayerNumberToolITk::m_pixelLayers |
|
protected |
◆ m_pixelManager
◆ m_sctId
const SCT_ID* TrigL2LayerNumberToolITk::m_sctId {nullptr} |
|
protected |
◆ m_sctLayers
std::vector<short> TrigL2LayerNumberToolITk::m_sctLayers |
|
protected |
◆ m_sctManager
◆ m_useNewScheme
Gaudi::Property<bool> TrigL2LayerNumberToolITk::m_useNewScheme {this, "UseNewLayerScheme", false} |
|
protected |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
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
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