Belle II Software  release-05-02-19
CaTestModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: tadeas *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <calibration/CalibrationCollectorModule.h>
14 #include <framework/dataobjects/EventMetaData.h>
15 #include <string>
16 
17 namespace Belle2 {
22  class CaTestModule : public CalibrationCollectorModule {
24 
25  public:
26 
28  CaTestModule();
29 
30  virtual void prepare() override;
31  virtual void collect() override;
32  virtual void startRun() override;
33  virtual void closeRun() override;
34  virtual void finish() override;
35  private:
36 
38 
40  int m_evt = -1;
42  int m_run = -1;
44  int m_exp = -1;
46  double m_hitX = 0.0;
47  double m_hitY = 0.0;
48  double m_hitZ = 0.0;
49 
50  double m_trackX = 0.0;
51  double m_trackY = 0.0;
52  double m_trackZ = 0.0;
53  double m_chisq = 0.0;
54  double m_pvalue = 0.0;
55  double m_dof = 0.0;
56 
60  int m_spread;
62  virtual void inDefineHisto() override;
63  void describeProcess(const std::string& functionName);
64  };
66 }
Belle2::CaTestModule::m_run
int m_run
Current run id.
Definition: CaTestModule.h:50
Belle2::CaTestModule::CaTestModule
CaTestModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: CaTestModule.cc:34
Belle2::CaTestModule::finish
virtual void finish() override
Replacement for terminate(). Do anything you would normally do in terminate here.
Definition: CaTestModule.cc:138
Belle2::CaTestModule::prepare
virtual void prepare() override
Replacement for initialize(). Register calibration dataobjects here as well.
Definition: CaTestModule.cc:46
Belle2::CaTestModule::collect
virtual void collect() override
Replacement for event(). Fill you calibration data objects here.
Definition: CaTestModule.cc:103
Belle2::CaTestModule::m_entriesPerEvent
int m_entriesPerEvent
Number of entries created in the saved tree per event.
Definition: CaTestModule.h:66
Belle2::CaTestModule::closeRun
virtual void closeRun() override
Replacement for endRun(). Do anything you would normally do in endRun here.
Definition: CaTestModule.cc:87
Belle2::CaTestModule::m_spread
int m_spread
Spread of gaussian (mean=42) filling test histogram (range=<0,100>) - probability of algo iterations ...
Definition: CaTestModule.h:68
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::StoreObjPtr
Type-safe access to single objects in the data store.
Definition: ParticleList.h:33
Belle2::CaTestModule::inDefineHisto
virtual void inDefineHisto() override
Runs during the defineHisto() function.
Definition: CaTestModule.cc:77
Belle2::CaTestModule::m_exp
int m_exp
Current experiment id.
Definition: CaTestModule.h:52
Belle2::CaTestModule::m_evt
int m_evt
Current event id.
Definition: CaTestModule.h:48
Belle2::CaTestModule::m_hitX
double m_hitX
Fake coordinates of a hit.
Definition: CaTestModule.h:54
Belle2::CaTestModule::startRun
virtual void startRun() override
Replacement for beginRun(). Do anything you would normally do in beginRun here.
Definition: CaTestModule.cc:82