Belle II Software development
Sector.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#include "tracking/trackFindingVXD/sectorMapTools/Sector.h"
10#include "tracking/trackFindingVXD/sectorMapTools/SectorFriendship.h"
11
12#include "tracking/dataobjects/FullSecID.h"
13#include <boost/format.hpp> // formatting output
14
15using namespace Belle2;
16
18{
19 for (SectorFriendship* aFriend : m_myFriends) {
20 aFriend->applySegmentFilters();
21 }
22}
23
24
26{
27 std::string isSectorActive = "no", useDistance = "no";
28
29 if (m_myActiveSector != nullptr) isSectorActive = "yes";
30 if (m_useDistance4sort == true) useDistance = "yes";
31
32 uint nFriends = m_myFriends.size();
34
35 return (boost::format("Sector %1% got activated %2% and has %3% friends. Using distance for sorting: %4%, while having distance of %5%cm to origin.\n")
36 % myID % isSectorActive % nFriends % useDistance % m_distance2Origin).str();
37}
Class to identify a sector inside of the VXD.
Definition: FullSecID.h:33
SectorFriendship is carrying the link between parent sector and a connected sector (socalled Friendse...
std::string printSector()
printing member, delivers string of interesting features of current sector
Definition: Sector.cc:25
void segmentMaker()
called each event - takes all spacePoints from the activated Sector and its friend Sectors to produce...
Definition: Sector.cc:17
bool m_useDistance4sort
if activated, sectors are sorted by distance to origin, if false, they are sorted by layerID.
Definition: Sector.h:185
unsigned int m_sectorID
secID allows identification of sector.
Definition: Sector.h:172
ActivatedSector * m_myActiveSector
The activated sector is created each event where this sector inhabits a spacePoint.
Definition: Sector.h:157
float m_distance2Origin
carries info about the distance of the sector-center to the origin.
Definition: Sector.h:181
std::vector< SectorFriendship * > m_myFriends
This vector carries a pointer to each SectorFriendship for faster access during events.
Definition: Sector.h:161
Abstract base class for different kinds of events.