StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
StBTofGeometry Class Reference
Inheritance diagram for StBTofGeometry:

Public Member Functions

 StBTofGeometry (const char *name="btofGeo", const char *title="Simplified BTof Geometry")
 
Bool_t IsBSEC (const TVolume *element) const
 
Bool_t IsBTRA (const TVolume *element) const
 
Bool_t IsBRMD (const TVolume *element) const
 
Bool_t ContainOthers (TVolume *element)
 
void SetMCOn ()
 
void SetMCOff ()
 
void SetAlignFile (const Char_t *infile="")
 
void Init (StMaker *maker, TVolume *starHall, TGeoManager *geoManager=nullptr)
 
Bool_t IsInitDone () const
 
Bool_t IsCellValid (const Int_t icell) const
 
Bool_t IsSensorValid (const Int_t imodule) const
 
Bool_t IsTrayValid (const Int_t itray) const
 
Int_t CalcCellId (const Int_t volumeId, const Double_t *local) const
 
Int_t CalcCellId (const Int_t volumeId, const Float_t *local) const
 
Int_t CalcSensorId (const Int_t imodule, const Int_t itray=0) const
 
Int_t PrevCellId (const Int_t cellId) const
 
Int_t NextCellId (const Int_t cellId) const
 
Int_t CalcCellId (const Int_t icell, const Int_t imodule, const Int_t itray=0) const
 
void DecodeVolumeId (const Int_t volumeId, Int_t &imodule, Int_t &itray) const
 
Bool_t DecodeSensorId (const Int_t sensorId, Int_t &imodule, Int_t &itray) const
 
Bool_t DecodeCellId (const Int_t cellId, Int_t &icell, Int_t &imodule, Int_t &itray) const
 
Int_t GetCellIndex (const Int_t cellId) const
 
Int_t CellsInModule (const Int_t imodule=0, const Int_t itray=0) const
 
Int_t ModulesInTray (const Int_t itray=0) const
 
Int_t Trays () const
 
const char * GeoRootFile ()
 
virtual void Print (Option_t *opt="") const
 
TVolumeViewGetTopNode () const
 
StBTofGeomSensorGetGeomCell (const Int_t cellId) const
 
StBTofGeomSensorGetGeomSensor (const Int_t imodule, const Int_t itray=0) const
 
StBTofGeomTrayGetGeomTray (const Int_t itray=0) const
 
StBTofGeomTrayGetGeomTrayAt (const Int_t idx=0) const
 
Int_t GetTrayIndexAt (const Int_t idx=0) const
 
Int_t GetAtOfTray (const Int_t itray=0) const
 
Int_t CellIdPointIn (const StThreeVectorD &point) const
 
Bool_t HelixCrossCellIds (const StHelixD &helix, IntVec &idVec, DoubleVec &pathVec, PointVec &crossVec) const
 
Bool_t HelixCrossCellIds (const StHelixD &helix, IntVec &idVec, DoubleVec &pathVec, PointVec &crossVec, DoubleVec &thetaVec) const
 
Bool_t HelixCrossCellIds (const StHelixD &helix, IntVec validModuleVec, IntVec projTrayVec, IntVec &idVec, DoubleVec &pathVec, PointVec &crossVec) const
 
Bool_t HelixCross (const StHelixD &helix) const
 
Bool_t HelixCross (const StHelixD &helix, IntVec validModuleVec, IntVec projTrayVec) const
 
Bool_t projTrayVector (const StHelixD &helix, IntVec &trayVec) const
 

Static Public Member Functions

static Bool_t LackThis (const char *fromWhere)
 
static void DebugOn ()
 
static void DebugOff ()
 
static Bool_t IsDebugOn ()
 

Protected Attributes

TVolumeViewmTopNode
 
const char * mRootFile
 
Int_t mSectorsInBTOH
 the root file of geometry
 
Int_t mNValidTrays
 
Int_t mModulesInTray
 
Int_t mCellsInModule
 
Bool_t mInitFlag
 
Int_t mBTofConf
 
StBTofGeomTraymBTofTray [mNTrays]
 
StBTofGeomSensormBTofSensor [mNTrays][mNModules]
 
Bool_t mIsMC
 
string mAlignFile
 Control message printing of this class.
 
Double_t mTrayX0 [mNTrays]
 Alignment parameters.
 
Double_t mTrayY0 [mNTrays]
 
Double_t mTrayZ0 [mNTrays]
 

Static Protected Attributes

static Bool_t mDebug = kFALSE
 Control MC input (ignore alignment corrections)
 
static const char * sectorPref = "BSEC"
 filename for alignment input
 
static const char * trayPref = "BTRA"
 
static const char * senPref = "BRMD"
 

Friends

class StBTofGeomTray
 

Detailed Description

Definition at line 270 of file StBTofGeometry.h.

Member Function Documentation

Bool_t StBTofGeometry::HelixCrossCellIds ( const StHelixD helix,
IntVec &  idVec,
DoubleVec &  pathVec,
PointVec &  crossVec 
) const

first justify if the tray is within the projection range

Definition at line 1531 of file StBTofGeometry.cxx.

Bool_t StBTofGeometry::HelixCrossCellIds ( const StHelixD helix,
IntVec &  idVec,
DoubleVec &  pathVec,
PointVec &  crossVec,
DoubleVec &  thetaVec 
) const

first justify if the tray is within the projection range

Definition at line 1598 of file StBTofGeometry.cxx.


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