|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGONLINESPACEPOINTTOOL_SPACEPOINT_CONVERSION_UTILS_H
6 #define TRIGONLINESPACEPOINTTOOL_SPACEPOINT_CONVERSION_UTILS_H
119 std::vector<TrigSiSpacePointBase>&
m_vec;
128 bool filter_phi=
true,
136 const std::pair<const Trk::PrepRawData*, const Trk::PrepRawData*> clusterList =
p->clusterList();
137 if (clusterList.first) {
138 Identifier id1=(clusterList.first)->identify();
141 if (clusterList.second) {
169 if(collIt!=
nullptr) {
172 int layerId =
m_hash2layer->at((
int)collIt->identifyHash());
173 if(layerId<0)
return;
174 m_filter.setLayer(layerId,collIt->identify());
176 std::for_each(collIt->begin(),collIt->end(),
m_filter);
190 std::for_each(idVec.begin(),idVec.end(),*
this);
206 double Phi = atan2(ys,xs);
207 double r = std::sqrt(xs*xs+ys*ys);
233 double Phi = atan2(ys,xs);
234 double r = std::sqrt(xr*xr+yr*yr);
bool isBarrel(const Identifier &id)
LayerCalculator(const AtlasDetectorID *aId, const PixelID *pId, const SCT_ID *sId, int offs[3])
bool is_pixel(Identifier id) const
void phi(const double phi)
BaseSpacePointFilter(std::vector< TrigSiSpacePointBase > &vec, LayerCalculator &lc)
const std::vector< short > * m_hash2layer
virtual ~BaseSpacePointFilter()
void setLayer(short layerId, const Identifier &id)
void createSpacePoint(const Trk::SpacePoint *p)
virtual Identifier identify() const override final
virtual const Amg::Vector3D & globalPosition() const override final
Interface method to get the global Position.
bool is_sct(Identifier id) const
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
bool isPixel(const Identifier &id)
RoI_Filter(std::vector< TrigSiSpacePointBase > &vec, LayerCalculator &lc, const IRoiDescriptor *roi, bool filter_phi=true, const std::map< Identifier, std::vector< long int > > *clusterMap=nullptr)
const IRoiDescriptor * m_roi
bool containsZed(const IRoiDescriptor &roi, double z, double r)
LayerCalculator m_layerCalculator
void setLayer(const Identifier &id)
const AtlasDetectorID * m_atlasId
std::vector< size_t > vec
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
const Trk::SpacePoint * offlineSpacePoint() const
virtual IdentifierHash identifyHash() const override final
const SpacePointContainer * m_pIDC
const std::map< Identifier, std::vector< long int > > * m_clusterMap
const PixelID * m_pixelId
void operator()(const SpacePointCollection *coll)
Describes the API of the Region of Ineterest geometry.
SpacePointShifter(double dx, double dy)
int select(const SpacePointContainer &p, const std::vector< IdentifierHash > &idVec, const std::vector< short > *h2l=nullptr)
int layer_disk(const Identifier &id) const
Ensure that the ATLAS eigen extensions are properly loaded.
int layer_disk(const Identifier &id) const
virtual void operator()(const Trk::SpacePoint *p)
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
virtual const T * indexFindPtr(IdentifierHash hashId) const override final
return pointer on the found entry or null if out of range using hashed index - fast version,...
void operator()(TrigSiSpacePointBase &sp)
virtual void operator()(const Trk::SpacePoint *)=0
int getLayer(const Identifier &id)
void setErrors(const Identifier &id)
bool contains(const IRoiDescriptor &roi, double z0, double dzdr)
see whether a segment is contained within the roi in r-z
void operator()(const IdentifierHash &id)
header for factorised IRoiDescriptor interface
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
std::vector< TrigSiSpacePointBase > & m_vec