Belle II Software  release-06-00-14
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 
15 namespace Belle2 {
22 
23  public:
24 
26  CaTestModule();
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 
38  int m_evt = -1;
40  int m_run = -1;
42  int m_exp = -1;
44  double m_hitX = 0.0;
45  double m_hitY = 0.0;
46  double m_hitZ = 0.0;
47 
48  double m_trackX = 0.0;
49  double m_trackY = 0.0;
50  double m_trackZ = 0.0;
51  double m_chisq = 0.0;
52  double m_pvalue = 0.0;
53  double m_dof = 0.0;
54 
58  int m_spread;
60  virtual void inDefineHisto() override;
61  void describeProcess(const std::string& functionName);
62  };
64 }
Testing module for collection of calibration data.
Definition: CaTestModule.h:21
int m_evt
Current event id.
Definition: CaTestModule.h:38
double m_hitX
Fake coordinates of a hit.
Definition: CaTestModule.h:44
virtual void startRun() override
Replacement for beginRun(). Do anything you would normally do in beginRun here.
Definition: CaTestModule.cc:80
virtual void collect() override
Replacement for event(). Fill you calibration data objects here.
virtual void closeRun() override
Replacement for endRun(). Do anything you would normally do in endRun here.
Definition: CaTestModule.cc:85
int m_spread
Spread of gaussian (mean=42) filling test histogram (range=<0,100>) - probability of algo iterations ...
Definition: CaTestModule.h:58
int m_exp
Current experiment id.
Definition: CaTestModule.h:42
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:56
virtual void inDefineHisto() override
Runs during the defineHisto() function.
Definition: CaTestModule.cc:75
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:40
Calibration collector module base class.
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:95
Abstract base class for different kinds of events.