Belle II Software development
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
25namespace Belle2 {
37
38 public:
43
47 void prepare() override final;
48
52 void startRun() override final;
53
57 void collect() override final;
58
59 private:
60
62 std::vector<std::string> m_timeAlgorithms = {"CoG3", "ELS3", "CoG6"};
63 std::string m_svdClustersOnTrackPrefix = "SVDClustersOnTrack";
64 std::map<TString, StoreArray<SVDCluster>> m_svdClustersOnTrack;
66 std::string m_eventT0Name = "EventT0";
68 };
69
71} // 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.