Belle II Software  release-08-01-10
SVDClusterTimeShifterCollectorModule.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 <calibration/CalibrationCollectorModule.h>
12 
13 #include <framework/datastore/StoreObjPtr.h>
14 #include <framework/datastore/StoreArray.h>
15 #include <framework/dataobjects/EventMetaData.h>
16 #include <string>
17 #include "vector"
18 #include "TString.h"
19 #include "TH1F.h"
20 #include "TH3F.h"
21 
22 #include <svd/dataobjects/SVDCluster.h>
23 #include <framework/dataobjects/EventT0.h>
24 
25 namespace Belle2 {
40 
41  public:
46 
50  void prepare() override final;
51 
55  void startRun() override final;
56 
60  void collect() override final;
61 
62  private:
63 
64  int m_maxClusterSize = 6;
65  std::vector<std::string> m_timeAlgorithms = {"CoG3", "ELS3", "CoG6"};
66  std::string m_svdClustersOnTrackPrefix = "SVDClustersOnTrack";
67  std::map<TString, StoreArray<SVDCluster>> m_svdClustersOnTrack;
69  std::string m_eventT0Name = "EventT0";
71  };
72 
74 } // end namespace Belle2
Calibration collector module base class.
This module creates and fills histograms based on cluster-sizes so that the mean of SVD-cluster time ...
StoreObjPtr< EventT0 > m_eventT0
EventT0 store object pointer.
std::string m_svdClustersOnTrackPrefix
Name Prefix of the SVDClustersOnTracks store array.
std::string m_eventT0Name
Name of the EventT0 store object pointer used as parameter of the module.
void startRun() override final
Called when entering a new run.
std::vector< std::string > m_timeAlgorithms
List of time algorithms to calibrate.
std::map< TString, StoreArray< SVDCluster > > m_svdClustersOnTrack
SVDClusters store array.
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.