Belle II Software  release-05-02-19
ScanCDCGeoModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2019 - Belle II Collaboration *
4  * This software is provided "as is" without any warranty. *
5  **************************************************************************/
6 
7 #ifndef SCANCDCGEOMODULE_H
8 #define SCANCDCGEOMODULE_H
9 
10 #include <framework/core/Module.h>
11 
12 #include <TFile.h>
13 #include <TTree.h>
14 #include <TMath.h>
15 
16 namespace Belle2 {
23  class ScanCDCGeoModule: public Module {
24 
25  public:
26 
29 
31  virtual ~ScanCDCGeoModule() {};
32 
34  virtual void initialize() override;;
35 
37  virtual void terminate() override;;
38 
40  void bookOutput();
41 
42  protected:
43 
44  TFile* m_file{0x0};
45  TTree* m_tree{0x0};
46  int fnWires{ -1};
47  double fstereoAng{ -1.0};
48  double fswire_posF_phi{ -1.0};
49  double fswire_posF_theta{ -1.0};
50  double fswire_posB_phi{ -1.0};
51  double fswire_posB_theta{ -1.0};
52  double fwire_iradius{ -1.0};
53  double fwire_oradius{ -1.0};
54  double fcwidth{ -1.0};
55  double fcheight{ -1.0};
56  double fclength{ -1.0};
57  double PI{TMath::Pi()};
58  };
60 } // Belle2 namespace
61 #endif
Belle2::ScanCDCGeoModule::fstereoAng
double fstereoAng
stereo angle per layer dist
Definition: ScanCDCGeoModule.h:51
Belle2::ScanCDCGeoModule::ScanCDCGeoModule
ScanCDCGeoModule()
constructor
Definition: ScanCDCGeoModule.cc:22
Belle2::ScanCDCGeoModule::fswire_posF_theta
double fswire_posF_theta
sense wire position in forward dir (theta) per layer dist
Definition: ScanCDCGeoModule.h:53
Belle2::ScanCDCGeoModule::m_tree
TTree * m_tree
output ROOT trees
Definition: ScanCDCGeoModule.h:49
Belle2::ScanCDCGeoModule::PI
double PI
Pi value.
Definition: ScanCDCGeoModule.h:61
Belle2::ScanCDCGeoModule::bookOutput
void bookOutput()
Create the output TFiles and TTrees.
Definition: ScanCDCGeoModule.cc:151
Belle2::ScanCDCGeoModule::fswire_posF_phi
double fswire_posF_phi
sense wire position in forward dir (phi) per layer dist
Definition: ScanCDCGeoModule.h:52
Belle2::ScanCDCGeoModule::fwire_oradius
double fwire_oradius
field wire outer radius per layer dist
Definition: ScanCDCGeoModule.h:57
Belle2::ScanCDCGeoModule::fnWires
int fnWires
nwire per layer dist
Definition: ScanCDCGeoModule.h:50
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ScanCDCGeoModule::fcwidth
double fcwidth
cell width per layer dist
Definition: ScanCDCGeoModule.h:58
Belle2::ScanCDCGeoModule::fswire_posB_phi
double fswire_posB_phi
sense wire position in backward dir (phi) per layer dist
Definition: ScanCDCGeoModule.h:54
Belle2::ScanCDCGeoModule::fwire_iradius
double fwire_iradius
field wire inner radius per layer dist
Definition: ScanCDCGeoModule.h:56
Belle2::ScanCDCGeoModule::terminate
virtual void terminate() override
terminate and save information
Definition: ScanCDCGeoModule.cc:170
Belle2::ScanCDCGeoModule::fswire_posB_theta
double fswire_posB_theta
sense wire position in backward dir (theta) per layer dist
Definition: ScanCDCGeoModule.h:55
Belle2::ScanCDCGeoModule::initialize
virtual void initialize() override
init
Definition: ScanCDCGeoModule.cc:27
Belle2::ScanCDCGeoModule::fcheight
double fcheight
cell height per layer dist
Definition: ScanCDCGeoModule.h:59
Belle2::ScanCDCGeoModule::fclength
double fclength
wire length per layer dist
Definition: ScanCDCGeoModule.h:60
Belle2::ScanCDCGeoModule::~ScanCDCGeoModule
virtual ~ScanCDCGeoModule()
destructor
Definition: ScanCDCGeoModule.h:35
Belle2::ScanCDCGeoModule::m_file
TFile * m_file
output ROOT files
Definition: ScanCDCGeoModule.h:48