 |
Belle II Software
release-05-02-19
|
20 #include <framework/datastore/RelationsObject.h>
31 class ActivatedSector;
35 class SectorFriendship;
59 explicit Sector(
unsigned int secID):
71 Sector(
unsigned int secID,
float distance2origin,
bool sortByDistance =
true):
bool useDistance4sort() const
if true, usingDistance for sector sorting is activated, if false, the sectorID is used
ActivatedSector is carrying the dynamic part of a Sector.
Sector is a central part of storing information for VXD trackFinders.
Sector & operator=(const Sector &aSector)
overloaded assignment operator
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
bool operator<(const Sector &b) const
overloaded '<'-operator for sorting algorithms - sorts by distance2origin or fullSecID depending on s...
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...
unsigned getSecID() const
getter - getSecID returns the ID of the sector (for definition of secID, see m_sectorID).
unsigned int m_sectorID
secID allows identification of sector.
float m_distance2Origin
carries info about the distance of the sector-center to the origin.
ActivatedSector * m_myActiveSector
The activated sector is created each event where this sector inhabits a spacePoint.
bool m_useDistance4sort
if activated, sectors are sorted by distance to origin, if false, they are sorted by layerID.
void setDistance(float distance)
setter - set distance of sector to origin defined by sectorMap
Abstract base class for different kinds of events.
std::string printSector()
printing member, delivers string of interesting features of current sector
float getDistance() const
getter - get distance of sector to origin defined by sectorMap
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
void segmentMaker()
called each event - takes all spacePoints from the activated Sector and its friend Sectors to produce...
virtual void clear()
removes link to activated sector.
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
bool operator>(const Sector &b) const
overloaded '>'-operator for sorting algorithms - sorts by distance2origin or fullSecID depending on s...
std::vector< SectorFriendship * > m_myFriends
This vector carries a pointer to each SectorFriendship for faster access during events.