Belle II Software  release-05-02-19
SecMapTrainerBaseModule.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/trackFindingVXD/filterTools/SelectionVariableFactory.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 SecMapTrainerBaseModule : public Module {
37 
38  public:
41 
44 
46  void initialize() override;
47 
49  void beginRun() override
50  { B2INFO("~~~~~~~~~~~SecMapTrainerVXDTFModule - beginRun ~~~~~~~~~~"); }
51 
53  void event() override;
54 
56  void endRun() override
57  { B2INFO("~~~~~~~~~~~SecMapTrainerVXDTFModule - end of endRun ~~~~~~~~~~"); }
58 
60  void terminate() override;
61 
63  void InitializeVariables() {}
64 
65 
66  protected:
67 
70 
73 
75  std::vector< SecMapTrainer<SelectionVariableFactory<SecMapTrainerHit> > > m_secMapTrainers;
76 
80 
82  std::string m_PARAMspTCarrayName;
83  private:
84  };
86 }
Belle2::SecMapTrainerBaseModule::initialize
void initialize() override
initialize.
Definition: SecMapTrainerBaseModule.cc:55
Belle2::SecMapTrainerBaseModule::event
void event() override
event.
Definition: SecMapTrainerBaseModule.cc:81
Belle2::SecMapTrainerBaseModule::m_secMapTrainers
std::vector< SecMapTrainer< SelectionVariableFactory< SecMapTrainerHit > > > m_secMapTrainers
contains the trainers for the secMaps to be trained.
Definition: SecMapTrainerBaseModule.h:83
Belle2::SecMapTrainerBaseModule::endRun
void endRun() override
endRun.
Definition: SecMapTrainerBaseModule.h:64
Belle2::SecMapTrainerBaseModule::m_PARAMspTCarrayName
std::string m_PARAMspTCarrayName
Name of storeArray containing the spacePointTrackCands.
Definition: SecMapTrainerBaseModule.h:90
Belle2::SecMapTrainerBaseModule::m_spacePointTrackCands
StoreArray< SpacePointTrackCand > m_spacePointTrackCands
contains the spacePointTrackCands to be analyzed for the secMap-Training.
Definition: SecMapTrainerBaseModule.h:80
Belle2::SecMapTrainerBaseModule::InitializeVariables
void InitializeVariables()
initialize variables to avoid nondeterministic behavior.
Definition: SecMapTrainerBaseModule.h:71
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::SecMapTrainerBaseModule::~SecMapTrainerBaseModule
~SecMapTrainerBaseModule()
SecMapTrainerVXDTFModule destructor.
Definition: SecMapTrainerBaseModule.h:51
Belle2::SecMapTrainerBaseModule::SecMapTrainerBaseModule
SecMapTrainerBaseModule()
SecMapTrainerVXDTFModule constructor.
Definition: SecMapTrainerBaseModule.cc:32
Belle2::SecMapTrainerBaseModule::m_eventData
StoreObjPtr< EventMetaData > m_eventData
Event Data for distinguishing events.
Definition: SecMapTrainerBaseModule.h:77
Belle2::SecMapTrainerBaseModule::m_PARAMallowTraining
bool m_PARAMallowTraining
If true, training will be executed and filled into rootFiles, if not, only things like basf2 -m work ...
Definition: SecMapTrainerBaseModule.h:87
Belle2::SecMapTrainerBaseModule::beginRun
void beginRun() override
beginRun.
Definition: SecMapTrainerBaseModule.h:57
Belle2::StoreArray< SpacePointTrackCand >
Belle2::SecMapTrainerBaseModule::terminate
void terminate() override
terminate.
Definition: SecMapTrainerBaseModule.cc:133