 |
Belle II Software
release-05-01-25
|
11 #ifndef ARICHBTESTGEOMETRYPAR_H
12 #define ARICHBTESTGEOMETRYPAR_H
16 #include <framework/gearbox/GearDir.h>
17 #include "TRotation.h"
34 for (
int i = 0; i < 4; i++)
tdc[i] = 0;
35 for (
int i = 0; i < 2; i++) {
44 for (
int i = 0; i < 3; i++) {
77 printf(
"----------------------------------------------------------------\n");
78 for (
int i = 0; i < 4; i++) printf(
"tdc%d= %d\t", i,
tdc[i]);
80 for (
int i = 0; i < 1; i++) printf(
"atdc%d= %d\t", i,
atdc);
82 for (
int i = 0; i < 2; i++) printf(
"slp%d= %3.3f\t", i,
slp[i]);
84 for (
int i = 0; i < 2; i++) printf(
"off%d= %3.3f\t", i,
offset[i]);
86 for (
int i = 0; i < 2; i++) printf(
"cutll%d= %d\t", i,
cutll[i]);
88 for (
int i = 0; i < 2; i++) printf(
"cutul%d= %d\t", i,
cutul[i]);
90 for (
int i = 0; i < 3; i++) printf(
"pos%d= %3.3f\t", i,
pos[i]);
101 class ARICHBtestGeometryPar {
129 void Print(
void)
const;
int cutll[2]
Cuts on the tdc sums - lower levels.
int AddHapdElectronicMapPair(int, int)
Set the mapping of the electronic channel to the HAPD module nr and the channel number.
float offset[2]
Calibration constants of the MWPC - offsets for x an y direction.
int diff[2]
TDC difference.
void setRotationCenter(const TVector3 &)
Set the rotation center of the Aerogel RICH frame.
TVector3 m_trackingShift
Tracking shift.
TRotation m_frameRotation
rotation matrix of the Aerogel RICH frame
bool m_averageAgel
flag for the reconstruction by using the average aerogel refractive index
float slp[2]
Calibration constants of the MWPC (\delta x= slope \delta t + offset) - slopes for x an y direction.
TRotation getFrameRotation()
Get the rotation matrix of the Aerogel RICH frame.
int AddHapdChannelPositionPair(double, double)
Set the position of the HAPD channel.
ARICHTracking()
Default Constructor.
void Print()
Debug printouts.
ARICHBtestGeometryPar()
Constructor.
void setFrameRotation(double)
Set the rotation angle of the Aerogel RICH frame.
int status[2]
Status of the position determination.
virtual ~ARICHBtestGeometryPar()
Destructor.
std::pair< double, double > GetHapdChannelPosition(int)
Get the position of the HAPD channel.
~ARICHTracking()
Default destructor.
void read(const GearDir &content)
gets geometry parameters from gearbox.
int tdc[4]
TDC of the 4 cathode signals.
double reco[3]
Reconstructed position of the hit.
int atdc
TDC of the anode signal.
void setAverageAgel(bool)
Set the flag for the reconstruction by using the average aerogel refractive index.
ARICHTracking * getMwpc()
Get the pointer of the tracking MWPCs.
TVector3 getOffset()
Get the setup global offset.
void setOffset(const TVector3 &)
Set of the setup global offset.
bool getAverageAgel()
Get the flag for the reconstruction by using the average aerogel refractive index.
bool m_init
True if parametrization is already initialized.
float pos[3]
MWPC chamber position.
Abstract base class for different kinds of events.
static ARICHBtestGeometryPar * Instance()
Static method to get a reference to the ARICHBtestGeometryPar instance.
GearDir is the basic class used for accessing the parameter store.
void Initialize(const GearDir &content)
calculates detector parameters needed for geometry build and reconstruction.
static ARICHBtestGeometryPar * p_B4ARICHBtestGeometryParDB
Pointer that saves the instance of this class.
TVector3 getRotationCenter()
Get the rotation center of the Aerogel RICH frame.
TVector3 getTrackingShift()
Get the tracking shift.
TVector3 m_offset
Global offset.
std::pair< int, int > GetHapdElectronicMap(int)
Get the mapping of the electronic channel to the HAPD module nr and the channel number.
void setMwpc(ARICHTracking *m_mwpc)
Set the pointer of the tracking MWPCs.
std::vector< std::pair< int, int > > m_hapdeid
mapping of the electronic channel to the HAPD module nr and the channel number
Beamtest ARICH Geometry Tracking Class.
TVector3 m_rotationCenter
rotation center of the Aerogel RICH frame
std::vector< std::pair< double, double > > m_hapdmap
the position of the HAPD channels
bool m_simple
True if parametrization initialized with simple geometry (beamtest)
int m_nPads
Number of detector module pads.
int cutul[2]
Cuts on the tdc sums - upper levels.
void setTrackingShift(const TVector3 &)
Set the tracking shift.
void Print(void) const
Print some debug information.
The Class for ARICH Beamtest Geometry Parameters.
ARICHTracking * m_mwpc
Pointer to the tracking chambers.