Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
#include <TruthSegmentCsvDumperAlg.h>
|
| ~TruthSegmentCsvDumperAlg ()=default |
|
StatusCode | initialize () override |
|
StatusCode | execute () override |
|
| AthAlgorithm (const std::string &name, ISvcLocator *pSvcLocator) |
| Constructor with parameters: 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 |
|
Definition at line 17 of file TruthSegmentCsvDumperAlg.h.
◆ StoreGateSvc_t
◆ ~TruthSegmentCsvDumperAlg()
MuonR4::TruthSegmentCsvDumperAlg::~TruthSegmentCsvDumperAlg |
( |
| ) |
|
|
default |
◆ AthAlgorithm()
AthAlgorithm::AthAlgorithm |
Constructor with parameters:
Definition at line 51 of file AthAlgorithm.cxx.
32 std::make_unique<AthenaBaseComps::AthAlgorithmDHUpdate>
34 std::move (m_updateDataHandles));
◆ 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 MuonR4::TruthSegmentCsvDumperAlg::execute |
( |
| ) |
|
|
override |
Segment information
Local direction
Definition at line 56 of file TruthSegmentCsvDumperAlg.cxx.
57 const EventContext & ctx = Gaudi::Hive::currentContext();
58 std::ofstream
file{std::string(Form(
"event%09zu-",++
m_event))+
"MuonTruthSegment.csv"};
59 constexpr std::string_view delim =
",";
60 file<<
"sectorId"<<delim;
61 file<<
"globalPositionX"<<delim;
62 file<<
"globalPositionY"<<delim;
63 file<<
"globalPositionZ"<<delim;
65 file<<
"globalDirectionX"<<delim;
66 file<<
"globalDirectionY"<<delim;
67 file<<
"globalDirectionZ"<<delim;
70 file<<
"localPositionX"<<delim;
71 file<<
"localPositionY"<<delim;
72 file<<
"localPositionZ"<<delim;
74 file<<
"localDirectionX"<<delim;
75 file<<
"localDirectionY"<<delim;
76 file<<
"localDirectionZ"<<delim;
79 file<<
"timeError"<<delim;
80 file<<
"chiSquared"<<delim;
82 file<<
"precisionHits"<<delim;
83 file<<
"phiLayers"<<delim;
84 file<<
"trigEtaLayers"<<delim;
106 const int secId = encodeId(
static_cast<int8_t
>(sector->
chamberIndex()),
111 float seg_t0error =
segment->t0error();
114 float seg_chiSquared =
segment->chiSquared();
115 float seg_numberDoF =
segment->numberDoF();
118 int seg_PrecisionHits =
segment->nPrecisionHits();
119 int seg_PhiLayers =
segment->nPhiLayers();
120 int seg_TrigEtaLayers =
segment->nTrigEtaLayers();
129 ATH_MSG_VERBOSE(
"chiSquared: "<<seg_chiSquared<<
" numberDoF: "<<seg_numberDoF);
130 ATH_MSG_VERBOSE(
"nPrecisionHits: "<<seg_PrecisionHits<<
" nPhiLayers: "<<seg_PhiLayers<<
" nTrigEtaLayers: "<<seg_TrigEtaLayers);
134 file<<precCutOff(globPos.x())<<delim;
135 file<<precCutOff(globPos.y())<<delim;
136 file<<precCutOff(globPos.z())<<delim;
137 file<<precCutOff(globDir.x())<<delim;
138 file<<precCutOff(globDir.y())<<delim;
139 file<<precCutOff(globDir.z())<<delim;
141 file<<precCutOff(locPos.x())<<delim;
142 file<<precCutOff(locPos.y())<<delim;
143 file<<precCutOff(locPos.z())<<delim;
149 file<<precCutOff(seg_t0)<<delim;
150 file<<precCutOff(seg_t0error)<<delim;
151 file<<precCutOff(seg_chiSquared)<<delim;
152 file<<seg_numberDoF<<delim;
153 file<<seg_PrecisionHits<<delim;
154 file<<seg_PhiLayers<<delim;
155 file<<seg_TrigEtaLayers<<delim;
158 return StatusCode::SUCCESS;
◆ 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 MuonR4::TruthSegmentCsvDumperAlg::initialize |
( |
| ) |
|
|
override |
◆ 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.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ msSector()
◆ 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.
◆ updateVHKA()
◆ m_detMgr
◆ m_detStore
◆ m_edmHelperSvc
◆ m_event
size_t MuonR4::TruthSegmentCsvDumperAlg::m_event {0} |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_geoCtxKey
◆ m_idHelperSvc
◆ m_inSegmentKey
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
int sector() const
Returns the sector of the MS-sector.
int8_t side() const
Returns the side of the MS-sector 1 -> A side ; -1 -> C side.
A spectrometer sector forms the envelope of all chambers that are placed in the same MS sector & laye...
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const MuonGMR4::MuonDetectorManager * m_detMgr
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
Class describing a MuonSegment.
const MuonGMR4::SpectrometerSector * msSector(const xAOD::MuonSegment &segment) const
#define ATH_MSG_VERBOSE(x)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
Muon::MuonStationIndex::ChIndex chamberIndex() const
Returns the chamber index scheme.
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
::StatusCode StatusCode
StatusCode definition for legacy code.
Amg::Transform3D globalToLocalTrans(const ActsGeometryContext &gctx) const
Returns the global -> local transformation from the ATLAS global.
Eigen::Affine3d Transform3D
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_inSegmentKey
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.
Include the GeoPrimitives which need to be put first.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Eigen::Matrix< double, 3, 1 > Vector3D
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
ServiceHandle< Muon::IMuonEDMHelperSvc > m_edmHelperSvc
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
SG::ReadHandleKey< ActsGeometryContext > m_geoCtxKey
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
std::unordered_set< const xAOD::MuonSimHit * > getMatchingSimHits(const xAOD::MuonSegment &segment)
: Returns all sim hits matched to a xAOD::MuonSegment
const SpectrometerSector * getSectorEnvelope(const Identifier &channelId) const
Retrieves the spectrometer envelope enclosing the channel's readout element.
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)