PaSetup Class Reference

COMPASS setup (geometry, magnetic fields etc.). More...

#include <PaSetup.h>

List of all members.

Public Member Functions

int RunNum () const
 Run number.
int NDetectors () const
 Number of detectors in the setup.
const PaDetectDetector (int i) const
 reference to detector # i
int iDetector (string name) const
 index of detector "name" (returns -1 if "name" not found)
int iDetFirst (string str) const
 index of the first (in Z ) detector with name starting on "str" (-1 means "not found")
void ClearHitRefs ()
 Clear referencies to hits on all detectors (if hits was saved).
void AddHitRef (int idet, int ihit)
 add to detector "ided hit reference "ihit"
int NCalorimeter () const
 Number of calorimeters in the setup.
const PaCalorimeterCalorimeter (int i) const
 reference to calorimeter # i
const PaMaterialMapsMaterialMaps () const
 rerefence to material map
float SolenoidCurrent () const
 solenoid current from CORAL CsMagInfo class (in Amps with sign).
const vector< float > & TargetPolarizations () const
 targets polarizations (up /down)
void MagField (float x, float y, float z, float &Fx, float &Fy, float &Fz) const
 Returns 3 components of magnetic field Fx,Fy,Fz [Tesla] in space point x,y,z.
TVector3 MagField (TVector3 &v) const
 Returns magnetic field vector [Tesla] in space point "v".
const vector< Float_t > & vNminusOne () const
 Refractive index(es) (n-1) for current run in [ppm] (1.e-6) as it was used in production.
const string & DaqDecoErrorName (unsigned int id) const
 For DAQ decoding error ID returns error name.
const int iCalorim (const string &calo_name) const
 For calorimeter name "calo_name" returns it's number (index in vecCalorim). Returns -1 if "calo_name" is not known.
const PaRichRich () const
 Return const reference to RICH geometry object.
float TargetCenterZ () const
 Return center of target Z position.
void Print (int level=0) const
 Print setup info.

Static Public Member Functions

static const PaSetupRef ()
 Return const reference to current PaSetup object.

Detailed Description

COMPASS setup (geometry, magnetic fields etc.).

Class for "slowly changing" (run-dependent) information and for "static" (not-changing) information.

Author:
Sergei.Gerassimov@cern.ch

Member Function Documentation

static const PaSetup& PaSetup::Ref (  )  [inline, static]
float PaSetup::TargetCenterZ (  )  const [inline]

Return center of target Z position.

Warning:
if the values is not stored (mDST written with older PHAST versions), default walue -35.0 [cm] is returned.
const vector< float > & PaSetup::TargetPolarizations (  )  const

targets polarizations (up /down)

Returns vector of target polarizations as it was known at time of production (what CORAL function CsMagInfo::getPolarization(run, pol) had returned)

Warning:
Please note that all values are already multiplied by solenoid current sign.

References RunNum(), and SolenoidCurrent().

Referenced by Print().

const vector<Float_t>& PaSetup::vNminusOne (  )  const [inline]

Refractive index(es) (n-1) for current run in [ppm] (1.e-6) as it was used in production.

Returns empty vector if not known.

More up-to-date (post-production) refractive index(es) for this run could be accessed by PaMetaDB::vNminusOne(int irun) function.

Referenced by Print().


The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2