COMPASS setup (geometry, magnetic fields etc.). More...
#include <PaSetup.h>
Public Member Functions | |
| int | RunNum () const |
| Run number. | |
| int | NDetectors () const |
| Number of detectors in the setup. | |
| const PaDetect & | Detector (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 PaCalorimeter & | Calorimeter (int i) const |
| reference to calorimeter # i | |
| const PaMaterialMaps & | MaterialMaps () 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 PaRich & | Rich () 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 PaSetup & | Ref () |
| Return const reference to current PaSetup object. | |
COMPASS setup (geometry, magnetic fields etc.).
Class for "slowly changing" (run-dependent) information and for "static" (not-changing) information.
| static const PaSetup& PaSetup::Ref | ( | ) | [inline, static] |
Return const reference to current PaSetup object.
Could be used for access to PaSetup from any place in the code. Example: PaSetup::Ref().Print();
Referenced by PaCaloClus::CalorimName(), PaTrack::CanBeMuon(), PaTrack::CrossYokeSM2(), PaMChit::DetRef(), PaHit::DetRef(), PaTPar::Extrapolate(), PaTrack::FullKF(), PaTrack::GetSmoothed(), PaTrigger::HCal2(), PaCaloClus::iCell(), PaTrack::iHit(), PaVertex::iMuPrim(), PaTrack::KeepOnly(), PaTrack::NHitsFoundInDetect(), PaTrack::NHitsFoundInRange(), PaMCtrack::NHitsInDetect(), PaRichDet::NpadX(), PaDetect::Pitch(), PaRichDet::PitchX(), PaTrack::PointsHodoscopes(), PaEvent::Print(), PaTrack::QuickKF(), PaAlgo::RKutta(), PaDetect::ShiftHits(), PaCaloClus::SigmaT(), PaMetaDB::TargetSpinZproj(), PaTrack::Zmax(), and PaTrack::Zmin().
| float PaSetup::TargetCenterZ | ( | ) | const [inline] |
Return center of target Z position.
| 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)
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().
1.6.2