Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
#include <StripTdsOfflineTool.h>
|
| StripTdsOfflineTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~StripTdsOfflineTool ()=default |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | gather_strip_data (std::vector< std::unique_ptr< StripData >> &strips, const std::vector< std::unique_ptr< PadTrigger >> &padTriggers) 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 |
|
|
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > | m_detManagerKey {this, "MuonManagerKey", "MuonDetectorManager"} |
|
ServiceHandle< Muon::IMuonIdHelperSvc > | m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"} |
|
Gaudi::Property< bool > | m_isMC {this, "IsMC", true, "This is MC"} |
|
SG::ReadHandleKey< sTgcDigitContainer > | m_sTgcDigitContainer = {this,"sTGC_DigitContainerName","sTGC_DIGITS","the name of the sTGC digit container"} |
|
SG::ReadHandleKey< MuonSimDataCollection > | m_sTgcSdoContainer = {this,"sTGC_SdoContainerName","sTGC_SDO","the name of the sTGC SDO container"} |
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Definition at line 70 of file StripTdsOfflineTool.h.
◆ StoreGateSvc_t
◆ StripTdsOfflineTool()
NSWL1::StripTdsOfflineTool::StripTdsOfflineTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~StripTdsOfflineTool()
virtual NSWL1::StripTdsOfflineTool::~StripTdsOfflineTool |
( |
| ) |
|
|
virtualdefault |
◆ 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
◆ fill_strip_cache()
StatusCode NSWL1::StripTdsOfflineTool::fill_strip_cache |
( |
const std::vector< std::unique_ptr< PadTrigger >> & |
padTriggers, |
|
|
std::vector< std::unique_ptr< StripData >> & |
strip_cache |
|
) |
| const |
|
private |
Definition at line 63 of file StripTdsOfflineTool.cxx.
65 ATH_MSG_DEBUG(
"fill_strip_cache: start filling the cache for STRIP hits" );
69 if(!sdo_container.isValid()){
70 ATH_MSG_WARNING(
"could not retrieve the sTGC SDO container: it will not be possible to associate the MC truth");
75 if(!digit_container.isValid()){
76 ATH_MSG_ERROR(
"could not retrieve the sTGC Digit container: cannot return the STRIP hits");
82 ATH_MSG_DEBUG(
"retrieved sTGC Digit Container with " << digit_container->digit_size() <<
" collection" );
83 int strip_hit_number = 0;
84 for(;
it!=it_e; ++
it) {
100 const auto& stripSurface=rdoEl->
surface(Id);
101 stripSurface.
localToGlobal(strip_lpos, strip_gpos, strip_gpos);
109 int bctag =
digit->bcTag();
115 ATH_MSG_DEBUG(
"sTGC Strip hit " << strip_hit_number <<
": Station Name [" << stName <<
"]"
116 <<
" Station Eta [" << stationEta <<
"]"
117 <<
" Station Phi [" << stationPhi <<
"]"
118 <<
" Wedge [" << wedge <<
"]"
119 <<
" Layer [" <<
layer <<
"]"
122 <<
" Strip Eta [" << strip_eta <<
"]"
123 <<
" Strip Phi [" << strip_phi <<
"]"
124 <<
" Strip bcTAg [" << bctag <<
"]");
127 int trigger_sector = (isSmall)? stationPhi*2 : stationPhi*2-1;
128 int cache_index = (
stationEta>0)? trigger_sector + 16 : trigger_sector;
129 ATH_MSG_DEBUG(
"sTGC Strip hit " << strip_hit_number <<
": Trigger Sector [" << trigger_sector <<
"]" <<
" Cache Index [" << cache_index <<
"]" );
133 strip->set_locX(strip_lpos.x());
134 strip->set_locY(strip_lpos.y());
136 int sectortype= (isSmall==1) ? 0 : 1;
138 int moduleid=std::abs(stationEta);
141 strip->setSideId(sideid);
142 strip->setSectorType(sectortype);
143 strip->setSectorId(sectorid);
144 strip->setModuleId(moduleid);
145 strip->setWedgeId(wedgeid);
146 strip->setLayerId(layerid);
147 strip->set_globX(strip_gpos.x());
148 strip->set_globY(strip_gpos.y());
149 strip->set_globZ(strip_gpos.z());
153 if (read_strip && (
strip->bandId() ==-1 ||
strip->phiId()==-1 ) ) {
155 <<
"wedge:" <<
strip->wedge() <<
"\n"
156 <<
"layer:"<<
strip->layer() <<
"\n"
157 <<
"loc_x:"<<
strip->locX()<<
"\n");
161 strip->set_readStrip(read_strip);
162 strip_cache.push_back(std::move(strip));
166 return StatusCode::SUCCESS;
◆ gather_strip_data()
StatusCode NSWL1::StripTdsOfflineTool::gather_strip_data |
( |
std::vector< std::unique_ptr< StripData >> & |
strips, |
|
|
const std::vector< std::unique_ptr< PadTrigger >> & |
padTriggers |
|
) |
| const |
|
overridevirtual |
Implements NSWL1::IStripTdsTool.
Definition at line 46 of file StripTdsOfflineTool.cxx.
47 ATH_MSG_DEBUG(
"gather_strip_data: start gathering all strip htis");
49 std::vector<std::unique_ptr<StripData>> strip_cache;
53 for (
unsigned int i=0;
i< strip_cache.size();
i++) {
55 strips.push_back(std::move(strip_cache.at(
i)));
58 ATH_MSG_DEBUG(
"Delivered n. " << strips.size() <<
" STRIP hits." );
59 return StatusCode::SUCCESS;
◆ initialize()
StatusCode NSWL1::StripTdsOfflineTool::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& NSWL1::IStripTdsTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
Definition at line 37 of file IStripTdsTool.h.
38 static const InterfaceID IID_IStripTdsTool(
"NSWL1::IStripTdsTool", 1 ,0);
39 return IID_IStripTdsTool;
◆ 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.
◆ readStrip()
bool NSWL1::StripTdsOfflineTool::readStrip |
( |
StripData * |
strip, |
|
|
const std::vector< std::unique_ptr< PadTrigger >> & |
padTriggers |
|
) |
| const |
|
private |
Definition at line 170 of file StripTdsOfflineTool.cxx.
172 if (
strip->bandId() !=-1) {
173 ATH_MSG_DEBUG(
"StripTdsOfflineTool:ReadStrip: BandId already set\n" <<
"moduleID:" <<
strip->moduleId() +1 <<
"\n"
174 <<
"sectiorID:" <<
strip->sectorId() + 1 <<
"\n" <<
"layer:" <<
strip->wedge() <<
"\n");
176 if (
strip->phiId() !=-1) {
177 ATH_MSG_DEBUG(
"StripTdsOfflineTool:ReadStrip: PhiId already set\n" <<
"moduleID:"<<
strip->moduleId() +1 <<
"\n"
178 <<
"sectiorID:" <<
strip->sectorId() + 1 <<
"\n" <<
"layer:" <<
strip->wedge() <<
"\n");
180 for(
const std::unique_ptr<PadTrigger>& trig :padTriggers){
182 for(
const std::shared_ptr<PadData>& pad : trig->m_pads){
183 if (
strip->sideId()!=pad->sideId() ||
184 strip->isSmall()==pad->sectorType() ||
185 strip->sectorId()!=pad->sectorId() ||
186 std::abs(
strip->etaCenter() )> trig->etaMax() ||
187 std::abs(
strip->etaCenter() ) < trig->etaMin() ||
188 strip->layer()!=pad->gasGapId()
191 strip->setBandId(trig->bandId());
192 strip->setPhiId(trig->phiId());
◆ 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_detManagerKey
◆ m_detStore
◆ m_evtStore
◆ m_idHelperSvc
◆ m_isMC
Gaudi::Property<bool> NSWL1::StripTdsOfflineTool::m_isMC {this, "IsMC", true, "This is MC"} |
|
private |
◆ m_sTgcDigitContainer
◆ m_sTgcSdoContainer
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
constexpr uint8_t stationPhi
station Phi 1 to 8
Eigen::Matrix< double, 2, 1 > Vector2D
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
virtual const Trk::PlaneSurface & surface() const override
access to chamber surface (phi orientation), uses the first gas gap
virtual void setOwner(IDataHandleHolder *o)=0
virtual bool stripPosition(const Identifier &id, Amg::Vector2D &pos) const override final
strip position - should be renamed to channel position If the strip number is outside the range of va...
An sTgcReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station c...
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.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
StatusCode initialize(bool used=true)
Eigen::Matrix< double, 3, 1 > Vector3D
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
const T * at(size_type n) const
Access an element, as an rvalue.
constexpr uint8_t stationEta
1 to 3
virtual void localToGlobal(const Amg::Vector2D &locp, const Amg::Vector3D &mom, Amg::Vector3D &glob) const override final
Specified for PlaneSurface: LocalToGlobal method without dynamic memory allocation.
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>