Belle II Software  release-08-01-10
SecMapTrainerBaseModule.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 #include <tracking/spacePointCreation/SpacePointTrackCand.h>
12 #include <tracking/trackFindingVXD/filterTools/SelectionVariableFactory.h>
13 #include <tracking/trackFindingVXD/sectorMapTools/SecMapTrainer.h>
14 #include <framework/core/Module.h>
15 
16 #include <framework/datastore/StoreArray.h>
17 #include <framework/datastore/StoreObjPtr.h>
18 #include <framework/dataobjects/EventMetaData.h>
19 
20 #include <framework/logging/Logger.h>
21 
22 #include <string>
23 #include <vector>
24 
25 namespace Belle2 {
35 
36  public:
39 
42 
44  void initialize() override;
45 
47  void beginRun() override
48  { B2INFO("~~~~~~~~~~~SecMapTrainerVXDTFModule - beginRun ~~~~~~~~~~"); }
49 
51  void event() override;
52 
54  void endRun() override
55  { B2INFO("~~~~~~~~~~~SecMapTrainerVXDTFModule - end of endRun ~~~~~~~~~~"); }
56 
58  void terminate() override;
59 
62 
63 
64  protected:
65 
68 
71 
73  std::vector< SecMapTrainer<SelectionVariableFactory<SecMapTrainerHit> > > m_secMapTrainers;
74 
78 
80  std::string m_PARAMspTCarrayName;
81  private:
82  };
84 }
Base class for Modules.
Definition: Module.h:72
The SecMapTrainerBaseModule this module analyzes a big number of events (pGun or evtGen) to create ra...
void initialize() override
initialize.
std::string m_PARAMspTCarrayName
Name of storeArray containing the spacePointTrackCands.
void InitializeVariables()
initialize variables to avoid nondeterministic behavior.
StoreObjPtr< EventMetaData > m_eventData
Event Data for distinguishing events.
bool m_PARAMallowTraining
If true, training will be executed and filled into rootFiles, if not, only things like basf2 -m work ...
SecMapTrainerBaseModule()
SecMapTrainerVXDTFModule constructor.
~SecMapTrainerBaseModule()
SecMapTrainerVXDTFModule destructor.
StoreArray< SpacePointTrackCand > m_spacePointTrackCands
contains the spacePointTrackCands to be analyzed for the secMap-Training.
std::vector< SecMapTrainer< SelectionVariableFactory< SecMapTrainerHit > > > m_secMapTrainers
contains the trainers for the secMaps to be trained.
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.