StRoot
1
|
#include <StiDetector.h>
Public Member Functions | |
void | reset () |
void | unset () |
int | splitIt (StiDetVect &vect, double thick=0.2, int nMax=20) |
bool | isOn () const |
bool | isActive (double dYlocal, double dZlocal) const |
bool | isActive () const |
bool | isDiscreteScatterer () const |
int | insideL (const double xl[3], int mode=1, double fakt=1) const |
int | insideG (const double xl[3], int mode=1, double fakt=1) const |
StiMaterial * | getGas () const |
StiMaterial * | getMaterial () const |
double | getCos () const |
double | getSin () const |
StiShape * | getShape () const |
StiPlacement * | getPlacement () const |
StiIsActiveFunctor * | getIsActiveFunctor () |
void | setIsOn (bool) |
void | setIsActive (StiIsActiveFunctor *val) |
void | setIsContinuousMedium (bool) |
void | setIsDiscreteScatterer (bool) |
void | setGas (StiMaterial *val) |
void | setMaterial (StiMaterial *val) |
void | setShape (StiShape *val) |
void | setPlacement (StiPlacement *val) |
void | setProperties (std::string name, StiIsActiveFunctor *activeFunctor, StiShape *shape, StiPlacement *placement, StiMaterial *gas, StiMaterial *material) |
virtual void | build () |
virtual void | copy (StiDetector &detector) |
void | setTreeNode (StiCompositeTreeNode< StiDetector > *val) |
StiCompositeTreeNode < StiDetector > * | getTreeNode () const |
void | setHitErrorCalculator (const StiHitErrorCalculator *calculator) |
const StiHitErrorCalculator * | getHitErrorCalculator () const |
void | setGroupId (int id) |
int | getGroupId () const |
void | setTrackingParameters (const StiTrackingParameters *pars) |
const StiTrackingParameters * | getTrackingParameters () const |
void | setKey (int index, int value) |
int | getKey (int index) const |
double | getVolume () const |
double | getWeight () const |
void | getDetPlane (double plane[4]) const |
Public Member Functions inherited from Named | |
void | setName (const string &newName) |
Set the name of the object. | |
const string & | getName () const |
Get the name of the object. | |
bool | isName (const string &aName) const |
Determine whether name equals given name. | |
Static Public Attributes | |
static int | mgIndex =0 |
static double | mgValue [2] ={0} |
Protected Attributes | |
char | mBeg [1] |
StiIsActiveFunctor * | isActiveFunctor |
const StiHitErrorCalculator * | _hitErrorCalculator |
Hit Error Calculator for this detector. | |
StiMaterial * | gas |
Continuous scatter attributes. | |
StiMaterial * | material |
Discrete scatterer attributes. | |
StiShape * | shape |
Physical Shape attribute of this detector or voloume. | |
StiPlacement * | placement |
Physical position and orientation of this detector or volume. | |
StiCompositeTreeNode < StiDetector > * | mNode |
Pointer to the parent detector node. | |
double | _cos |
Convenience storage of cos(refAngle) | |
double | _sin |
Convenience storage of sin(refAngle) | |
int | _groupId = -1 |
Detector group identifier. | |
const StiTrackingParameters * | _pars |
int | _key1 |
int | _key2 |
char | mEnd [1] |
Protected Attributes inherited from Named | |
string | _name |
Friends | |
class | StiHit |
ostream & | operator<< (ostream &os, const StiDetector &det) |
Additional Inherited Members | |
Protected Member Functions inherited from Named | |
Named (const string &aName=" ") | |
Only derived class are Named. | |
StiDetector represents a detector for the purposes of ITTF tracking. It contains all information about the geometry of the detector and the necessary physical properties for incorporating it in tracking.
Definition at line 29 of file StiDetector.h.
void StiDetector::setProperties | ( | std::string | name, |
StiIsActiveFunctor * | activeFunctor, | ||
StiShape * | shape, | ||
StiPlacement * | placement, | ||
StiMaterial * | gas, | ||
StiMaterial * | material | ||
) |
A setter for most of the detector properties. We do not pass arguments in a constructor because StiDetector-s are normally created by an StiFactory.
Definition at line 226 of file StiDetector.cxx.
References Named::setName().
Referenced by StiIstDetectorBuilder::buildInactiveVolumes(), StiSstDetectorBuilder::buildInactiveVolumes(), StiPxlDetectorBuilder::useVMCGeometry(), StiIstDetectorBuilder::useVMCGeometry(), and StiSstDetectorBuilder::useVMCGeometry().
|
protected |
Functor used to calculate whether the posistion reached by a track is to be considered within the active area of the detector, and is thus susceptible of providing hit information.
Definition at line 114 of file StiDetector.h.