Belle II Software development
ScanCDCGeoModule.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#ifndef SCANCDCGEOMODULE_H
10#define SCANCDCGEOMODULE_H
11
12#include <framework/core/Module.h>
13
14#include <TFile.h>
15#include <TTree.h>
16#include <TMath.h>
17
18namespace Belle2 {
25 class ScanCDCGeoModule: public Module {
26
27 public:
28
31
33 virtual ~ScanCDCGeoModule() {};
34
36 virtual void initialize() override;;
37
39 virtual void terminate() override;;
40
42 void bookOutput();
43
44 protected:
45
46 TFile* m_file{0x0};
47 TTree* m_tree{0x0};
48 int fnWires{ -1};
49 double fstereoAng{ -1.0};
50 double fswire_posF_phi{ -1.0};
51 double fswire_posF_theta{ -1.0};
52 double fswire_posB_phi{ -1.0};
53 double fswire_posB_theta{ -1.0};
54 double fwire_iradius{ -1.0};
55 double fwire_oradius{ -1.0};
56 double fcwidth{ -1.0};
57 double fcheight{ -1.0};
58 double fclength{ -1.0};
59 double PI{TMath::Pi()};
60 };
62} // Belle2 namespace
63#endif
Base class for Modules.
Definition: Module.h:72
Test module to save CDC geometry information to ntuple file.
TTree * m_tree
output ROOT trees
int fnWires
nwire per layer dist
double fswire_posB_phi
sense wire position in backward dir (phi) per layer dist
void bookOutput()
Create the output TFiles and TTrees.
virtual void initialize() override
init
double fstereoAng
stereo angle per layer dist
double fwire_oradius
field wire outer radius per layer dist
double fclength
wire length per layer dist
virtual void terminate() override
terminate and save information
virtual ~ScanCDCGeoModule()
destructor
double fcheight
cell height per layer dist
double fcwidth
cell width per layer dist
double fswire_posF_theta
sense wire position in forward dir (theta) per layer dist
double fswire_posB_theta
sense wire position in backward dir (theta) per layer dist
double fwire_iradius
field wire inner radius per layer dist
TFile * m_file
output ROOT files
double fswire_posF_phi
sense wire position in forward dir (phi) per layer dist
Abstract base class for different kinds of events.