Belle II Software  release-06-00-14
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 
15 using namespace std;
16 using namespace Belle2;
17 
18 void Sector::segmentMaker()
19 {
20  for (SectorFriendship* aFriend : m_myFriends) {
21  aFriend->applySegmentFilters();
22  }
23 }
24 
25 
26 std::string Sector::printSector()
27 {
28  string isSectorActive = "no", useDistance = "no";
29 
30  if (m_myActiveSector != nullptr) isSectorActive = "yes";
31  if (m_useDistance4sort == true) useDistance = "yes";
32 
33  uint nFriends = m_myFriends.size();
34  FullSecID myID(m_sectorID);
35 
36  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")
37  % myID % isSectorActive % nFriends % useDistance % m_distance2Origin).str();
38 }
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...
Abstract base class for different kinds of events.