18#include <framework/datastore/RelationsObject.h>
29 class ActivatedSector;
33 class SectorFriendship;
69 Sector(
unsigned int secID,
float distance2origin,
bool sortByDistance =
true):
ActivatedSector is carrying the dynamic part of a Sector.
Defines interface for accessing relations of objects in StoreArray.
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Sector is a central part of storing information for VXD trackFinders.
std::string printSector()
printing member, delivers string of interesting features of current sector
unsigned getSecID() const
getter - getSecID returns the ID of the sector (for definition of secID, see m_sectorID).
bool operator<(const Sector &b) const
overloaded '<'-operator for sorting algorithms - sorts by distance2origin or fullSecID depending on s...
bool useDistance4sort() const
if true, usingDistance for sector sorting is activated, if false, the sectorID is used
void segmentMaker()
called each event - takes all spacePoints from the activated Sector and its friend Sectors to produce...
bool operator==(const Sector &b) const
overloaded '=='-operator for sorting algorithms - sorts by distance2origin or fullSecID depending on ...
ActivatedSector * getMyActiveSector() const
getter - returns a pointer to the currently connected activatedSector
bool operator>(const Sector &b) const
overloaded '>'-operator for sorting algorithms - sorts by distance2origin or fullSecID depending on s...
Sector(const Sector &)=default
Generate the default copy constructor.
float getDistance() const
getter - get distance of sector to origin defined by sectorMap
void setDistance(float distance)
setter - set distance of sector to origin defined by sectorMap
bool m_useDistance4sort
if activated, sectors are sorted by distance to origin, if false, they are sorted by layerID.
void setDistance4sort(bool sortByDistance)
if you pass a true here, the sorting will be set to using the distance to origind instead of the sect...
Sector & operator=(const Sector &aSector)
overloaded assignment operator
virtual void clear()
removes link to activated sector.
unsigned int m_sectorID
secID allows identification of sector.
Sector(unsigned int secID, float distance2origin, bool sortByDistance=true)
useful constructor both cases of sector sorting: sectors treated by fullSecID (parameter 1) and dista...
ActivatedSector * m_myActiveSector
The activated sector is created each event where this sector inhabits a spacePoint.
float m_distance2Origin
carries info about the distance of the sector-center to the origin.
Sector(unsigned int secID)
useful constructor for cases where sectors are treated by fullSecID (parameter 1)
std::vector< SectorFriendship * > m_myFriends
This vector carries a pointer to each SectorFriendship for faster access during events.
Abstract base class for different kinds of events.