Belle II Software development
CDCInitialT0Determination.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#pragma once
9
10#include <cdc/dataobjects/CDCHit.h>
11
12#include <framework/core/Module.h>
13#include <framework/datastore/StoreArray.h>
14
15#include <string>
16#include "TH1.h"
17
18namespace Belle2 {
28 public:
29
34
39
43 void initialize() override;
44
49 void event() override;
50
54 void terminate() override;
55
56 private:
57
59 TH1D* m_hTDC[56][400] = {{nullptr}};
60 TH1D* m_hTDCBoard[300] = {nullptr};
61 TH1D* m_hT0All = nullptr;
62 double m_t0b[300] = {0};
63 double m_t0[56][400] = {{0}};
64 bool m_flag[56][400] = {{false}} ;
65 unsigned short m_tdcMin = 0;
66 unsigned short m_tdcMax = 8400;
67 unsigned short m_adcMin = 0;
68 unsigned short m_minEntries = 100;
69 double m_initT0 = 3579;
70 double m_zOffset;
71 bool m_cosmic;
73 std::string m_outputFileName;
74 std::string m_histoFileName ;
76 };
78}
TH1D * m_hT0All
T0 distribution of all channel.
unsigned short m_tdcMax
Upper boundary TDC histogram.
void initialize() override
Initializes the Module.
TH1D * m_hTDCBoard[300]
T0 distribution of each board.
bool m_storeFittedHisto
Store fitted histogram or not.
void event() override
Event action (main routine).
bool m_flag[56][400]
flag =1 for good, =0 for low statistic or bad fit
bool m_cosmic
for cosmic case, tof of upper sector will be negative
unsigned short m_adcMin
ADC cut to reject noise.
void terminate() override
Termination action, fit t0 and store histograms.
double m_t0[56][400]
T0 of each channel.
unsigned short m_tdcMin
Lower boundary TDC histogram.
double m_zOffset
z offset for calculate prop time, it is position of trigger counter,
double m_initT0
initial t0, use int fitting
std::string m_histoFileName
output file to store TDC histo after fit
unsigned short m_minEntries
min entries per histo.
TH1D * m_hTDC[56][400]
TDC distribution histo.
std::string m_outputFileName
output file name of t0 file.
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.