1 #ifndef QWDETECTORINFO_H
2 #define QWDETECTORINFO_H
216 void Print(Option_t *option =
"")
const;
240 }
catch (std::exception&
e) {
241 QwWarning <<
"Undefined efficiency for element " << element <<
" in "
250 }
catch (std::exception&
e) {
251 QwWarning <<
"Undefined element " << element <<
" in "
double GetElementCoordinate(const int element) const
double fRotatorPitch
Pitch of rotator (rotation of rotator about global x-axis)
void SetTrackingSearchTree(QwTrackingTreeRegion *tree)
bool operator<(const QwDetectorInfo &lhs, const QwDetectorInfo &rhs)
double GetDetectorPitchInDeg() const
double GetRotatorYawCos() const
int fReferenceChannelIndex
double fDetectorPitchSin
Sin of detector pitch.
void SetElectronics(int crt, int mdl, int chn)
double GetDetectorPitchSin() const
void SetElementDirection(const EQwDirectionID dir)
void SetXYPosition(const double x, const double y)
double GetRotatorYawInRad() const
double fDetectorOriginZ
Detector position in z.
double GetRotatorRollInRad() const
EQwDetectorPackage fPackage
double GetRotatorYawInDeg() const
bool fIsActive
Is this detector activated in tracking.
double fElementAngleCos
Cos of the element orientation.
double GetSpatialResolution() const
void SetSpatialResolution(const double res)
std::string GetDetectorName() const
EQwDetectorPackage GetPackage() const
double fSlopeMatching
Slope matching resolution (how accurate do the tracks line up)
double GetElementAngleInRad() const
const QwTrackingTreeRegion * GetTrackingSearchTree() const
A container for the pattern databases for each detector region.
double fRotatorRoll
Roll of rotator (rotation of rotator about global z-axis)
std::vector< int > fHitID
void SetXYZPosition(const double x, const double y, const double z)
double fActiveWidthZ
Active volume in z.
double GetDetectorYawCos() const
double fDetectorRollSin
Sin of detector roll.
double GetActiveWidthY() const
void SetZPosition(const double z)
double GetDetectorRoll() const
EQwRegionID GetRegion() const
EQwDirectionID GetDirection() const
double fDetectorPitchCos
Cos of detector pitch.
std::vector< double > fEfficiency
///< Sets of crosstalking elements, in a map for easy lookup
double fRotatorYawCos
Cos of rotator yaw.
double fActiveWidthY
Active volume in y.
double fPlaneOffset
exactly clear to me what that exactly means)
void Print(Option_t *option="") const
double GetDetectorPitchCos() const
double GetDetectorRollInRad() const
std::string fDetectorName
double GetRotatorYawSin() const
void SetNumberOfElements(const int nelements)
double GetDetectorYawSin() const
QwTrackingTreeRegion * fTree
///< Efficiency of all elements
double GetRotatorYaw() const
double fDetectorPitch
Pitch of detector.
void SetOctant(const int octant)
void SetElementOffset(const double offset)
double GetRotatorRollSin() const
QwTrackingTreeRegion * GetTrackingSearchTree()
double GetElementOffset() const
double fRotatorPitchCos
Cos of rotator pitch.
void SetPosition(const TVector3 &position)
double GetDetectorPitch() const
double GetDetectorYaw() const
void SetActiveWidthXY(const double x, const double y)
double GetPlaneOffset() const
double GetSlopeMatching() const
double GetRotatorRollCos() const
void SetElementAngle(const double angle)
A logfile class, based on an identical class in the Hermes analyzer.
const TVector3 GetPosition() const
void SetPlaneOffset(double offset)
double GetRotatorPitchSin() const
double GetDetectorRollInDeg() const
double GetRotatorRollInDeg() const
void SetElementAngle(const double cosangle, const double sinangle)
void SetActive(const bool active=true)
void SetRotatorRoll(const double roll)
double GetElementEfficiency(int element) const
double fActiveWidthX
Active volume in x.
void SetElementEfficiency(int element, double efficiency)
void SetActiveWidthZ(const double z)
double fRotatorRollCos
Cos of rotator roll.
double fTrackResolution
Track resolution (how accurate are the tracks through the hits)
ClassDef(QwDetectorInfo, 0)
bool InAcceptance(const double x, const double y) const
double fDetectorYaw
Yaw of detector.
EQwDirectionID fDirection
void SetRotatorYaw(const double yaw)
void SetElementEfficiency(double efficiency)
double GetRotatorRoll() const
double fRotatorRollSin
Sin of rotator roll.
double GetRotatorPitchInRad() const
double fRotatorYawSin
Sin of rotator yaw.
EQwDetectorType GetType() const
int fNumberOfElements
Total number of elements in this detector.
void SetSlopeMatching(const double slope)
double GetDetectorRollCos() const
double GetYPosition() const
int GetCrosstalkElement(int element) const
double GetElementAngleSin() const
double GetDetectorYawInRad() const
EQwDirectionID GetElementDirection() const
double fDetectorOriginX
Detector position in x.
void LoadGeometryDefinition(QwParameterFile *map)
double GetActiveWidthZ() const
static std::ostream & endl(std::ostream &)
End of the line.
double GetElementSpacing() const
double fDetectorOriginY
Detector position in y.
double GetRotatorPitch() const
void SetRotatorPitch(const double pitch)
double fDetectorYawCos
Cos of detector yaw.
void SetTrackResolution(const double res)
double fSpatialResolution
Spatial resolution (how accurate is the timing info)
double fDetectorRollCos
Cos of detector roll.
double fElementAngle
Element orientation with respect to the X axis.
double GetElementAngleCos() const
double GetDetectorPitchInRad() const
double fDetectorYawSin
Sin of detector yaw.
double GetDetectorRollSin() const
double fRotatorPitchSin
Sin of rotator pitch.
double GetZPosition() const
double GetElementAngle() const
#define QwWarning
Predefined log drain for warnings.
void SetDetectorName(const std::string &name)
double GetXPosition() const
friend std::ostream & operator<<(std::ostream &stream, const QwDetectorInfo &det)
double fDetectorRoll
Roll of detector.
double GetElementAngleInDeg() const
QwDetectorInfo(const std::string &name="")
Constructor with optional name.
double GetRotatorPitchInDeg() const
double GetDetectorYawInDeg() const
void SetDetectorPitch(const double pitch)
int GetNumberOfElements() const
void SetElementSpacing(const double spacing)
std::map< int, int > fCrosstalk
void SetDetectorRoll(const double roll)
void SetDetectorYaw(const double yaw)
double fElementAngleSin
Sin of the element orientation.
double fRotatorYaw
Yaw of rotator (rotation of rotator about global y-axis)
double fElementSpacing
Perpendicular distance between the elements.
double GetTrackResolution() const
double GetRotatorPitchCos() const
double GetActiveWidthX() const
void LoadCrosstalkDefinition(QwParameterFile *map)