Belle II Software  release-05-01-25
Sector.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010-2011 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Jakob Lettenbichler *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #include "tracking/trackFindingVXD/sectorMapTools/Sector.h"
12 #include "tracking/trackFindingVXD/sectorMapTools/SectorFriendship.h"
13 
14 #include "tracking/dataobjects/FullSecID.h"
15 #include <boost/format.hpp> // formatting output
16 
17 using namespace std;
18 using namespace Belle2;
19 
20 void Sector::segmentMaker()
21 {
22  for (SectorFriendship* aFriend : m_myFriends) {
23  aFriend->applySegmentFilters();
24  }
25 }
26 
27 
28 std::string Sector::printSector()
29 {
30  string isSectorActive = "no", useDistance = "no";
31 
32  if (m_myActiveSector != NULL) isSectorActive = "yes";
33  if (m_useDistance4sort == true) useDistance = "yes";
34 
35  uint nFriends = m_myFriends.size();
36  FullSecID myID(m_sectorID);
37 
38  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")
39  % myID % isSectorActive % nFriends % useDistance % m_distance2Origin).str();
40 }
Belle2::FullSecID
Class to identify a sector inside of the VXD.
Definition: FullSecID.h:43
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SectorFriendship
SectorFriendship is carrying the link between parent sector and a connected sector (socalled Friendse...
Definition: SectorFriendship.h:47