9 #include <framework/logging/Logger.h>
11 #include <arich/geometry/ARICHBtestGeometryPar.h>
13 #include <boost/format.hpp>
14 #include <boost/foreach.hpp>
17 using namespace boost;
25 ARICHBtestGeometryPar* ARICHBtestGeometryPar::p_B4ARICHBtestGeometryParDB = 0;
29 if (!p_B4ARICHBtestGeometryParDB) {
32 return p_B4ARICHBtestGeometryParDB;
35 ARICHBtestGeometryPar::ARICHBtestGeometryPar():
37 m_trackingShift(TVector3()),
38 m_rotationCenter(TVector3()),
39 m_frameRotation(TRotation()),
50 m_trackingShift(arichPar.m_trackingShift),
51 m_rotationCenter(arichPar.m_rotationCenter),
52 m_frameRotation(arichPar.m_frameRotation),
53 m_hapdmap(arichPar.m_hapdmap),
54 m_hapdeid(arichPar.m_hapdeid)
93 m_hapdmap.push_back(std::make_pair(x, y));
99 m_hapdeid.push_back(std::make_pair(x, y));
134 B2INFO(
"ARICHBtestGeometryPar::setFrameRotation=" << v);
The Class for ARICH Beamtest Geometry Parameters.
TVector3 m_offset
Global offset.
ARICHTracking * m_mwpc
Pointer to the tracking chambers.
TVector3 m_rotationCenter
rotation center of the Aerogel RICH frame
std::vector< std::pair< int, int > > m_hapdeid
mapping of the electronic channel to the HAPD module nr and the channel number
bool m_simple
True if parametrization initialized with simple geometry (beamtest)
TRotation m_frameRotation
rotation matrix of the Aerogel RICH frame
bool m_init
True if parametrization is already initialized.
int m_nPads
Number of detector module pads.
TVector3 m_trackingShift
Tracking shift.
std::vector< std::pair< double, double > > m_hapdmap
the position of the HAPD channels
bool m_averageAgel
flag for the reconstruction by using the average aerogel refractive index
Beamtest ARICH Geometry Tracking Class.
void setRotationCenter(const TVector3 &)
Set the rotation center of the Aerogel RICH frame.
ARICHBtestGeometryPar()
Constructor.
TVector3 getRotationCenter()
Get the rotation center of the Aerogel RICH frame.
int AddHapdElectronicMapPair(int, int)
Set the mapping of the electronic channel to the HAPD module nr and the channel number.
TVector3 getOffset()
Get the setup global offset.
std::pair< double, double > GetHapdChannelPosition(int)
Get the position of the HAPD channel.
std::pair< int, int > GetHapdElectronicMap(int)
Get the mapping of the electronic channel to the HAPD module nr and the channel number.
void setTrackingShift(const TVector3 &)
Set the tracking shift.
bool getAverageAgel()
Get the flag for the reconstruction by using the average aerogel refractive index.
void setFrameRotation(double)
Set the rotation angle of the Aerogel RICH frame.
void setMwpc(ARICHTracking *m_mwpc)
Set the pointer of the tracking MWPCs.
void Print(void) const
Print some debug information.
TRotation getFrameRotation()
Get the rotation matrix of the Aerogel RICH frame.
static ARICHBtestGeometryPar * p_B4ARICHBtestGeometryParDB
Pointer that saves the instance of this class.
virtual ~ARICHBtestGeometryPar()
Destructor.
void setOffset(const TVector3 &)
Set of the setup global offset.
void setAverageAgel(bool)
Set the flag for the reconstruction by using the average aerogel refractive index.
int AddHapdChannelPositionPair(double, double)
Set the position of the HAPD channel.
ARICHTracking * getMwpc()
Get the pointer of the tracking MWPCs.
TVector3 getTrackingShift()
Get the tracking shift.
Abstract base class for different kinds of events.