|
ATLAS Offline Software
|
#include <ConversionFinderUtils.h>
|
| ConversionFinderUtils (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~ConversionFinderUtils () |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | finalize () override |
|
double | distBetweenTracks (const Trk::Track *trk_pos, const Trk::Track *trk_neg) const |
| Approximate distance of minimum approach between tracks in pair. 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 | 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 |
|
Some helper tools like: hits counter
- Author
- Tatjana Lenz , Thomas Koffas
Definition at line 27 of file ConversionFinderUtils.h.
◆ StoreGateSvc_t
◆ ConversionFinderUtils()
InDet::ConversionFinderUtils::ConversionFinderUtils |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~ConversionFinderUtils()
InDet::ConversionFinderUtils::~ConversionFinderUtils |
( |
| ) |
|
|
virtualdefault |
◆ addNewPerigeeToTrack()
Add new perigee to track.
Definition at line 133 of file ConversionFinderUtils.cxx.
138 auto fq =
track->fitQuality()->uniqueClone();
139 if(!fq)
return nullptr;
142 auto ntsos = std::make_unique<Trk::TrackStates>();
144 if(!tsos) {
return nullptr;}
146 for(its=tsos->
begin();its!=itse;++its) {
148 std::bitset<Trk::TrackStateOnSurface::NumberOfTrackStateOnSurfaceTypes> typePattern;
154 ntsos->push_back(per_tsos);
159 return std::make_unique<Trk::Track>(
info, std::move(ntsos), std::move(fq));
◆ correctVxCandidate()
Correct VxCandidate with respect to a user defined vertex.
Definition at line 163 of file ConversionFinderUtils.cxx.
167 initVxCandidate->
position().y()+guessVertex.y(),
168 initVxCandidate->
position().z()+guessVertex.z());
170 Amg::Vector3D globalVertexPosition(correctVertex.x(),correctVertex.y(),correctVertex.z());
172 std::vector<Trk::VxTrackAtVertex> tmpVTAV;
174 const std::vector<Trk::VxTrackAtVertex> &trkAtVtx = initVxCandidate->
vxTrackAtVertex();
175 for (
const auto& vtxTrack : trkAtVtx) {
177 const AmgVector(5)& iv = vtxPer->parameters();
179 Trk::PerigeeSurface surface (globalVertexPosition);
184 0., 0., iv[2], iv[3], iv[4], std::move(em))
187 Trk::VxTrackAtVertex trkV(vtxTrack.trackQuality().
chiSquared(),
189 tmpVTAV.push_back(trkV);
192 if(tmpVTAV.
size()!=2) return
nullptr;
196 vx->setPosition(correctVertex);
197 vx->vxTrackAtVertex().
clear();
198 for (
const auto& vtxTrack : tmpVTAV) {
199 vx->vxTrackAtVertex().push_back(vtxTrack);
◆ 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()
◆ distBetweenTracks()
Approximate distance of minimum approach between tracks in pair.
distance between two tracks
Definition at line 70 of file ConversionFinderUtils.cxx.
80 if(trk_hit_pos.mag() >
m->globalPosition().mag()) first_pos_meas =
m;
90 if(trk_hit_neg.mag() >
m->globalPosition().mag()) first_neg_meas =
m;
97 std::sqrt(
std::pow(trk_hit_pos[0] - trk_hit_neg[0],2.) +
std::pow(trk_hit_pos[1] - trk_hit_neg[1],2.) +
98 std::pow(trk_hit_pos[2] - trk_hit_neg[2],2.));
◆ 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 InDet::ConversionFinderUtils::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode InDet::ConversionFinderUtils::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()
const InterfaceID & InDet::ConversionFinderUtils::interfaceID |
( |
| ) |
|
|
static |
◆ momFraction()
helper functions
mom fraction
Momentum fraction of tracks in pair.
Definition at line 56 of file ConversionFinderUtils.cxx.
62 double momFraction = mom_pos.mag()/(mom_pos.mag() + mom_neg.mag());
◆ 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_detStore
◆ m_evtStore
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
Contains information about the 'fitter' of this track.
@ Perigee
This represents a perigee, and so will contain a Perigee object only.
Const iterator class for DataVector/DataList.
Vertex_v1 Vertex
Define the latest version of the vertex class.
virtual TrackStateOnSurface * clone() const
Pseudo-constructor: needed to avoid excessive RTTI.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
const Amg::Vector3D & position() const
Returns the 3-pos.
bool const RAWDATA *ch2 const
#define AmgSymMatrix(dim)
TrackParameters_v1 TrackParameters
virtual void setOwner(IDataHandleHolder *o)=0
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
const Perigee * perigeeParameters() const
return Perigee.
Ensure that the ATLAS eigen extensions are properly loaded.
represents the track state (measurement, material, fit parameters and quality) at a surface.
virtual const Surface & associatedSurface() const =0
Interface method to get the associated Surface.
static double momFraction(const Trk::TrackParameters *per1, const Trk::TrackParameters *per2)
helper functions
virtual const Amg::Vector3D & globalPosition() const =0
Interface method to get the global Position.
Eigen::Matrix< double, 3, 1 > Vector3D
float chiSquared(const U &p)
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const DataVector< const MeasurementBase > * measurementsOnTrack() const
return a pointer to a vector of MeasurementBase (NOT including any that come from outliers).
const Amg::Vector3D & momentum() const
Access method for the momentum.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
std::vector< Trk::VxTrackAtVertex > & vxTrackAtVertex()
Non-const access to the VxTrackAtVertex vector.
constexpr int pow(int base, int exp) noexcept
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.