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
36
37 int m_evt = -1;
38 int m_run = -1;
39 int m_exp = -1;
40
41 double m_hitX = 0.0;
42 double m_hitY = 0.0;
43 double m_hitZ = 0.0;
44
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;
51
57 virtual void inDefineHisto() override;
59 void describeProcess(const std::string& functionName);
60 };
61
62}
void describeProcess(const std::string &functionName)
Describe process (gives debug output)
int m_evt
Current event id.
double m_hitX
Fake x coordinate of a hit.
virtual void startRun() override
Replacement for beginRun(). Do anything you would normally do in beginRun here.
double m_trackZ
trackZ
double m_pvalue
pvalue
double m_hitY
Fake y coordinate of a hit.
virtual void collect() override
Replacement for event(). Fill you calibration data objects here.
double m_hitZ
Fake z coordinate of a hit.
virtual void closeRun() override
Replacement for endRun(). Do anything you would normally do in endRun here.
double m_trackY
trackY
int m_spread
Spread of gaussian (mean=42) filling test histogram (range=<0,100>) - probability of algo iterations ...
int m_exp
Current experiment id.
virtual void prepare() override
Replacement for initialize(). Register calibration dataobjects here as well.
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.
virtual void inDefineHisto() override
Runs during the defineHisto() function.
double m_trackX
trackX
StoreObjPtr< EventMetaData > m_emdata
emdata
CaTestModule()
Constructor: Sets the description, the properties and the parameters of the module.
int m_run
Current run id.
CalibrationCollectorModule()
Constructor. Sets the default prefix for calibration dataobjects.
Type-safe access to single objects in the data store.
Definition StoreObjPtr.h:96
Abstract base class for different kinds of events.