Belle II Software  release-05-01-25
ActivatedSector.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - 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 #pragma once
12 
13 // includes - rootStuff:
14 // includes - stl:
15 // includes - tf-related stuff
16 #include "Sector.h"
17 #include "tracking/spacePointCreation/SpacePoint.h"
18 
19 // includes - general fw stuff
20 
21 
22 namespace Belle2 {
36  class ActivatedSector : public Sector {
37  public:
38 
40  explicit ActivatedSector(Sector* mySector) { m_myStaticSector = mySector; }
41 
43  void addSpacePoint(const SpacePoint* aPoint) { m_mySpacePoints.push_back(aPoint); }
44 
46  unsigned int size() { return m_mySpacePoints.size(); }
47 
49  ActivatedSector* getMyPointer() { return this; }
50 
51  protected:
52 
55 
57  std::vector<const SpacePoint*> m_mySpacePoints;
58 
60  };
62 } //Belle2 namespace
Belle2::ActivatedSector::m_myStaticSector
Sector * m_myStaticSector
The sector is created once per run and carries all the stuff which does not change for each event.
Definition: ActivatedSector.h:62
Belle2::ActivatedSector::addSpacePoint
void addSpacePoint(const SpacePoint *aPoint)
stores a spacePoint
Definition: ActivatedSector.h:51
Belle2::ActivatedSector
ActivatedSector is carrying the dynamic part of a Sector.
Definition: ActivatedSector.h:44
Belle2::Sector
Sector is a central part of storing information for VXD trackFinders.
Definition: Sector.h:53
Belle2::RelationsInterface::ClassDef
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Belle2::ActivatedSector::getMyPointer
ActivatedSector * getMyPointer()
returns a pointer to this ActivatedSector
Definition: ActivatedSector.h:57
Belle2::Sector::Sector
Sector()
constructor
Definition: Sector.h:58
Belle2::ActivatedSector::m_mySpacePoints
std::vector< const SpacePoint * > m_mySpacePoints
This vector carries a pointer to each spacePoint which inhabit this sector.
Definition: ActivatedSector.h:65
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ActivatedSector::size
unsigned int size()
returns number of spacePoint inhabiting this ActivatedSector
Definition: ActivatedSector.h:54
Belle2::ActivatedSector::ActivatedSector
ActivatedSector(Sector *mySector)
constructor
Definition: ActivatedSector.h:48