Belle II Software  release-05-02-19
SecMapTrainerVXDTFModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 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 #pragma once
12 
13 #include <tracking/spacePointCreation/SpacePointTrackCand.h>
14 #include <tracking/vxdCaTracking/XHitFilterFactory.h>
15 #include <tracking/trackFindingVXD/sectorMapTools/SecMapTrainer.h>
16 #include <framework/core/Module.h>
17 
18 #include <framework/datastore/StoreArray.h>
19 #include <framework/datastore/StoreObjPtr.h>
20 #include <framework/dataobjects/EventMetaData.h>
21 
22 #include <framework/logging/Logger.h>
23 
24 #include <string>
25 #include <vector>
26 
27 namespace Belle2 {
36  class SecMapTrainerVXDTFModule : public Module {
37 
38  public:
39 
42 
45 
47  void initialize() override;
48 
50  void beginRun() override
51  { B2INFO("~~~~~~~~~~~SecMapTrainerVXDTFModule - beginRun ~~~~~~~~~~"); }
52 
54  void event() override;
55 
57  void endRun() override
58  { B2INFO("~~~~~~~~~~~SecMapTrainerVXDTFModule - end of endRun ~~~~~~~~~~"); }
59 
61  void terminate() override;
62 
64  void InitializeVariables() {}
65 
66  protected:
69 
72 
74  std::vector< SecMapTrainer<XHitFilterFactory<SecMapTrainerHit> > > m_secMapTrainers;
75 
77  std::string m_PARAMspTCarrayName;
78 
82 
83  // TODO:
85  //std::vector<std::string> m_PARAMsecMapNames;
86 
88  //std::vector<TrainerConfigData> m_PARAMsecMapConfigs;
89  };
91 }
Belle2::SecMapTrainerVXDTFModule::initialize
void initialize() override
initialize.
Definition: SecMapTrainerVXDTFModule.cc:93
Belle2::SecMapTrainerVXDTFModule::event
void event() override
event.
Definition: SecMapTrainerVXDTFModule.cc:111
Belle2::SecMapTrainerVXDTFModule::beginRun
void beginRun() override
beginRun.
Definition: SecMapTrainerVXDTFModule.h:58
Belle2::SecMapTrainerVXDTFModule::m_PARAMallowTraining
bool m_PARAMallowTraining
If true, training will be executed and filled into rootFiles, if not, only things like basf2 -m work ...
Definition: SecMapTrainerVXDTFModule.h:89
Belle2::SecMapTrainerVXDTFModule::terminate
void terminate() override
terminate.
Definition: SecMapTrainerVXDTFModule.cc:171
Belle2::SecMapTrainerVXDTFModule::m_secMapTrainers
std::vector< SecMapTrainer< XHitFilterFactory< SecMapTrainerHit > > > m_secMapTrainers
contains the trainers for the secMaps to be trained.
Definition: SecMapTrainerVXDTFModule.h:82
Belle2::SecMapTrainerVXDTFModule::m_eventData
StoreObjPtr< EventMetaData > m_eventData
Event Data for distinguishing events.
Definition: SecMapTrainerVXDTFModule.h:76
Belle2::SecMapTrainerVXDTFModule::m_PARAMspTCarrayName
std::string m_PARAMspTCarrayName
Name of storeArray containing the spacePointTrackCands.
Definition: SecMapTrainerVXDTFModule.h:85
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::StoreObjPtr
Type-safe access to single objects in the data store.
Definition: ParticleList.h:33
Belle2::SecMapTrainerVXDTFModule::m_spacePointTrackCands
StoreArray< SpacePointTrackCand > m_spacePointTrackCands
contains the spacePointTrackCands to be analyzed for the secMap-Training.
Definition: SecMapTrainerVXDTFModule.h:79
Belle2::SecMapTrainerVXDTFModule::endRun
void endRun() override
endRun.
Definition: SecMapTrainerVXDTFModule.h:65
Belle2::StoreArray< SpacePointTrackCand >
Belle2::SecMapTrainerVXDTFModule::SecMapTrainerVXDTFModule
SecMapTrainerVXDTFModule()
SecMapTrainerVXDTFModule constructor.
Definition: SecMapTrainerVXDTFModule.cc:31
Belle2::SecMapTrainerVXDTFModule::~SecMapTrainerVXDTFModule
~SecMapTrainerVXDTFModule()
SecMapTrainerVXDTFModule destructor.
Definition: SecMapTrainerVXDTFModule.h:52
Belle2::SecMapTrainerVXDTFModule::InitializeVariables
void InitializeVariables()
initialize variables to avoid nondeterministic behavior.
Definition: SecMapTrainerVXDTFModule.h:72