Belle II Software  release-05-02-19
CDCMCManager.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2014 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <framework/dataobjects/EventMetaData.h>
13 
14 namespace Belle2 {
19  namespace TrackFindingCDC {
20  class CDCMCTrackLookUp;
21  class CDCMCSegment3DLookUp;
22  class CDCMCSegment2DLookUp;
23  class CDCMCHitLookUp;
24 
25  class CDCSimHitLookUp;
26  class CDCMCTrackStore;
27  class CDCMCMap;
28 
29 
31  class CDCMCManager {
32 
33  public:
35  static CDCMCManager& getInstance();
36 
38  CDCMCManager(CDCMCManager&) = delete;
39  CDCMCManager& operator=(const CDCMCManager&) = delete;
40 
42  static const CDCMCMap& getMCMap();
43 
45  static const CDCMCTrackStore& getMCTrackStore();
46 
48  static const CDCSimHitLookUp& getSimHitLookUp();
49 
51  static const CDCMCHitLookUp& getMCHitLookUp();
52 
55 
58 
60  static const CDCMCTrackLookUp& getMCTrackLookUp();
61 
62  private:
64  CDCMCManager() = default;
65 
66  public:
69 
71  void clear();
72 
74  void fill();
75 
76  private:
78  EventMetaData m_eventMetaData = EventMetaData(-999, -999, -999);
79  };
80  }
82 }
Belle2::TrackFindingCDC::CDCMCSegment2DLookUp
Specialisation of the lookup for the truth values of two dimensional segments.
Definition: CDCMCSegment2DLookUp.h:33
Belle2::TrackFindingCDC::CDCMCManager::getMCMap
static const CDCMCMap & getMCMap()
Getter for the singletone instance of the CDCMCMap.
Definition: CDCMCManager.cc:82
Belle2::TrackFindingCDC::CDCMCTrackStore
Class to organize and present the monte carlo hit information.
Definition: CDCMCTrackStore.h:38
Belle2::TrackFindingCDC::CDCMCManager
Class to organize and present the monte carlo hit information.
Definition: CDCMCManager.h:39
Belle2::TrackFindingCDC::CDCMCManager::clear
void clear()
Clears all Monte Carlo information present in the last event.
Definition: CDCMCManager.cc:125
Belle2::TrackFindingCDC::CDCMCManager::getMCSegment2DLookUp
static const CDCMCSegment2DLookUp & getMCSegment2DLookUp()
Getter for the singletone instance of the CDCMCSegment2DLookUp.
Definition: CDCMCManager.cc:102
Belle2::TrackFindingCDC::CDCMCManager::CDCMCManager
CDCMCManager()=default
Default constructor only accessable for getInstance()
Belle2::TrackFindingCDC::CDCMCManager::requireTruthInformation
void requireTruthInformation()
Require the mc information store arrays.
Definition: CDCMCManager.cc:117
Belle2::TrackFindingCDC::CDCMCManager::fill
void fill()
Fill Monte Carlo look up maps from the DataStore.
Definition: CDCMCManager.cc:137
Belle2::TrackFindingCDC::CDCMCManager::getMCTrackLookUp
static const CDCMCTrackLookUp & getMCTrackLookUp()
Getter for the singletone instance of the CDCMCTrackLookUp.
Definition: CDCMCManager.cc:112
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::CDCMCManager::getMCTrackStore
static const CDCMCTrackStore & getMCTrackStore()
Getter for the singletone instance of the CDCMCTrackStore.
Definition: CDCMCManager.cc:87
Belle2::TrackFindingCDC::CDCMCHitLookUp
Interface class to the Monte Carlo information for individual hits.
Definition: CDCMCHitLookUp.h:41
Belle2::TrackFindingCDC::CDCMCManager::getInstance
static CDCMCManager & getInstance()
Getter for the singletone instance.
Definition: CDCMCManager.cc:76
Belle2::TrackFindingCDC::CDCMCManager::getMCSegment3DLookUp
static const CDCMCSegment3DLookUp & getMCSegment3DLookUp()
Getter for the singletone instance of the CDCMCSegment3DLookUp.
Definition: CDCMCManager.cc:107
Belle2::TrackFindingCDC::CDCMCSegment3DLookUp
Specialisation of the lookup for the truth values of two dimensional segments.
Definition: CDCMCSegment3DLookUp.h:33
Belle2::TrackFindingCDC::CDCSimHitLookUp
Singletone class to gather local information about the hits.
Definition: CDCSimHitLookUp.h:50
Belle2::TrackFindingCDC::CDCMCManager::getSimHitLookUp
static const CDCSimHitLookUp & getSimHitLookUp()
Getter for the singletone instance of the CDCSimHitLookUp.
Definition: CDCMCManager.cc:92
Belle2::EventMetaData
Store event, run, and experiment numbers.
Definition: EventMetaData.h:43
Belle2::TrackFindingCDC::CDCMCManager::m_eventMetaData
EventMetaData m_eventMetaData
Memory for the event, run and experminent number corresponding to the currently stored data.
Definition: CDCMCManager.h:86
Belle2::TrackFindingCDC::CDCMCMap
Class to organize and present the monte carlo hit information.
Definition: CDCMCMap.h:38
Belle2::TrackFindingCDC::CDCMCTrackLookUp
Specialisation of the lookup for the truth values of reconstructed tracks.
Definition: CDCMCTrackLookUp.h:33
Belle2::TrackFindingCDC::CDCMCManager::getMCHitLookUp
static const CDCMCHitLookUp & getMCHitLookUp()
Getter for the singletone instance of the CDCMCHitLookUp.
Definition: CDCMCManager.cc:97