Belle II Software development
CaTestModule.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#include <framework/dataobjects/EventMetaData.h>
13#include <string>
14
15namespace Belle2 {
22
23 public:
24
27
28 virtual void prepare() override;
29 virtual void collect() override;
30 virtual void startRun() override;
31 virtual void closeRun() override;
32 virtual void finish() override;
33 private:
34
37 int m_evt = -1;
38 int m_run = -1;
39 int m_exp = -1;
41 double m_hitX = 0.0;
42 double m_hitY = 0.0;
43 double m_hitZ = 0.0;
45 double m_trackX = 0.0;
46 double m_trackY = 0.0;
47 double m_trackZ = 0.0;
48 double m_chisq = 0.0;
49 double m_pvalue = 0.0;
50 double m_dof = 0.0;
57 virtual void inDefineHisto() override;
59 void describeProcess(const std::string& functionName);
60 };
62}
Testing module for collection of calibration data.
Definition: CaTestModule.h:21
void describeProcess(const std::string &functionName)
Describe process (gives debug output)
int m_evt
Current event id.
Definition: CaTestModule.h:37
double m_hitX
Fake x coordinate of a hit.
Definition: CaTestModule.h:41
virtual void startRun() override
Replacement for beginRun(). Do anything you would normally do in beginRun here.
Definition: CaTestModule.cc:80
double m_trackZ
trackZ
Definition: CaTestModule.h:47
double m_pvalue
pvalue
Definition: CaTestModule.h:49
double m_chisq
chisq
Definition: CaTestModule.h:48
double m_hitY
Fake y coordinate of a hit.
Definition: CaTestModule.h:42
virtual void collect() override
Replacement for event(). Fill you calibration data objects here.
double m_hitZ
Fake z coordinate of a hit.
Definition: CaTestModule.h:43
virtual void closeRun() override
Replacement for endRun(). Do anything you would normally do in endRun here.
Definition: CaTestModule.cc:85
double m_trackY
trackY
Definition: CaTestModule.h:46
int m_spread
Spread of gaussian (mean=42) filling test histogram (range=<0,100>) - probability of algo iterations ...
Definition: CaTestModule.h:55
int m_exp
Current experiment id.
Definition: CaTestModule.h:39
virtual void prepare() override
Replacement for initialize(). Register calibration dataobjects here as well.
Definition: CaTestModule.cc:44
virtual void finish() override
Replacement for terminate(). Do anything you would normally do in terminate here.
int m_entriesPerEvent
Number of entries created in the saved tree per event.
Definition: CaTestModule.h:53
virtual void inDefineHisto() override
Runs during the defineHisto() function.
Definition: CaTestModule.cc:75
double m_trackX
trackX
Definition: CaTestModule.h:45
StoreObjPtr< EventMetaData > m_emdata
emdata
Definition: CaTestModule.h:35
CaTestModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: CaTestModule.cc:32
int m_run
Current run id.
Definition: CaTestModule.h:38
Calibration collector module base class.
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.