Belle II Software  release-08-01-10
SVDEventT0EstimatorModule.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 
10 #pragma once
11 
12 #include <framework/core/Module.h>
13 #include <framework/datastore/StoreArray.h>
14 #include <framework/datastore/StoreObjPtr.h>
15 #include <framework/dataobjects/EventT0.h>
16 #include <tracking/dataobjects/RecoTrack.h>
17 #include <string>
18 
19 namespace Belle2 {
35  public:
36 
39 
42 
44  virtual void initialize() override;
45 
47  virtual void event() override;
48 
49  private:
50 
51  std::string m_eventT0Name = "EventT0";
52  std::string m_recoTracksName = "RecoTracks";
55  double m_ptSelection = 0.25;
56  double m_absPzSelection = 0.;
57  std::string m_algorithm = "clsOnTrack_time_average";
59  };
61 }
Base class for Modules.
Definition: Module.h:72
This module estimates the EventT0 as the average of cluster time of SVD clusters associated to tracks...
double m_absPzSelection
Cut on abs(pz) for RecoTrack selection.
StoreObjPtr< EventT0 > m_eventT0
EventT0 StoreObjPtr.
virtual void initialize() override
Initialize the SVDEventT0Estimator.
std::string m_algorithm
name of the algorithm used to evaluate SVD-eventT0
virtual void event() override
This method is the core of the SVDEventT0Estimator.
std::string m_recoTracksName
name of RecoTracks StoreArray
double m_ptSelection
Cut on pt for RecoTrack selection.
std::string m_eventT0Name
name of StoreObj EventT0
StoreArray< RecoTrack > m_recoTracks
RecoTracks StoreArray.
virtual ~SVDEventT0EstimatorModule()
default destructor
SVDEventT0EstimatorModule()
Constructor defining the parameters.
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.