EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EtmDetectorStack Class Reference

#include <EicToyModel/blob/master/include/EtmDetectorStack.h>

+ Inheritance diagram for EtmDetectorStack:
+ Collaboration diagram for EtmDetectorStack:

Public Member Functions

 EtmDetectorStack (const char *label=0, double etamin=0.0, double etamax=0.0)
 
 ~EtmDetectorStack ()
 
EtmDetectoradd (const char *tag, double length)
 
EtmDetectoradd (const char *tag, int color, double length)
 
EtmDetectorgap (double length)
 
EtmDetectormarker (void)
 
EtmDetectorinsert (const char *tag, double length, const char *after, unsigned order=0)
 
void rm (const char *dname)
 
void rm (const char *dname, unsigned order)
 
void offset (double dstart=0.0)
 
double etamin (void) const
 
double etamax (void) const
 
EtmDetectorget (const char *dname, unsigned order=0) const
 
void SetEtaBoundaries (double min, double max)
 
EtmEtaBoundaryEtaBoundary (unsigned mm) const
 
const TVector2 & AlignmentAxis (void) const
 
const TString & GetLabel (void) const
 
unsigned DetectorCount (void) const
 
const EtmDetectorGetDetector (unsigned id) const
 

Private Member Functions

double FullLength (void) const
 
void CalculateAlignmentAxis (void)
 
EtmDetectorCreateDetector (const char *tag, double length)
 
void Build (void)
 
void CalculateActualDistances (void)
 

Private Attributes

TString mLabel
 
std::vector< EtmDetector * > mDetectors
 
EtmEtaBoundarymEtaBoundaries [2]
 
double mStartingDistance
 
double mFullLength
 
TVector2 mAlignmentAxis
 
EtmDetectormDummyDetector
 

Friends

class EicToyModel
 
class EtmAzimuthalScan
 

Detailed Description

Definition at line 13 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 13 of file EtmDetectorStack.h

Constructor & Destructor Documentation

EtmDetectorStack::EtmDetectorStack ( const char *  label = 0,
double  etamin = 0.0,
double  etamax = 0.0 
)

Definition at line 10 of file EtmDetectorStack.cc.

View newest version in sPHENIX GitHub at line 10 of file EtmDetectorStack.cc

References mDummyDetector, mEtaBoundaries, mLabel, and SetEtaBoundaries().

+ Here is the call graph for this function:

EtmDetectorStack::~EtmDetectorStack ( )
inline

Definition at line 19 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 19 of file EtmDetectorStack.h

Member Function Documentation

EtmDetector * EtmDetectorStack::add ( const char *  tag,
double  length 
)

Definition at line 67 of file EtmDetectorStack.cc.

View newest version in sPHENIX GitHub at line 67 of file EtmDetectorStack.cc

References CreateDetector(), EicToyModel::home(), EicToyModel::Instance(), and mDetectors.

Referenced by add(), gap(), and marker().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

EtmDetector * EtmDetectorStack::add ( const char *  tag,
int  color,
double  length 
)

Definition at line 82 of file EtmDetectorStack.cc.

View newest version in sPHENIX GitHub at line 82 of file EtmDetectorStack.cc

References add(), AddEntry(), and EicToyModel::Instance().

+ Here is the call graph for this function:

const TVector2& EtmDetectorStack::AlignmentAxis ( void  ) const
inline

Definition at line 54 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 54 of file EtmDetectorStack.h

References mAlignmentAxis.

Referenced by EtmDetector::Build(), and EtmDetector::PlaceG4Volume().

+ Here is the caller graph for this function:

void EtmDetectorStack::Build ( void  )
private

Definition at line 215 of file EtmDetectorStack.cc.

View newest version in sPHENIX GitHub at line 215 of file EtmDetectorStack.cc

References mDetectors.

void EtmDetectorStack::CalculateActualDistances ( void  )
private

Definition at line 198 of file EtmDetectorStack.cc.

View newest version in sPHENIX GitHub at line 198 of file EtmDetectorStack.cc

References eic, EicToyModel::Instance(), mDetectors, mFullLength, and mStartingDistance.

+ Here is the call graph for this function:

void EtmDetectorStack::CalculateAlignmentAxis ( void  )
private

Definition at line 128 of file EtmDetectorStack.cc.

View newest version in sPHENIX GitHub at line 128 of file EtmDetectorStack.cc

References cos(), EtmEtaBoundary::GetEta(), M_PI, mAlignmentAxis, and mEtaBoundaries.

Referenced by SetEtaBoundaries().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

EtmDetector * EtmDetectorStack::CreateDetector ( const char *  tag,
double  length 
)
private

Definition at line 42 of file EtmDetectorStack.cc.

View newest version in sPHENIX GitHub at line 42 of file EtmDetectorStack.cc

References color, eic, EicToyModel::Instance(), and printf().

Referenced by add(), and insert().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

unsigned EtmDetectorStack::DetectorCount ( void  ) const
inline

Definition at line 56 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 56 of file EtmDetectorStack.h

References mDetectors.

Referenced by EtmDetector::GetOrder().

+ Here is the caller graph for this function:

EtmEtaBoundary* EtmDetectorStack::EtaBoundary ( unsigned  mm) const
inline

Definition at line 51 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 51 of file EtmDetectorStack.h

References mEtaBoundaries.

Referenced by EtmDetector::Build(), EicToyModel::ExecuteBoundaryModificationRequests(), and EicToyModel::GetStack().

+ Here is the caller graph for this function:

double EtmDetectorStack::etamax ( void  ) const
inline

Definition at line 43 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 43 of file EtmDetectorStack.h

References EtmEtaBoundary::GetEta(), and mEtaBoundaries.

Referenced by genevent(), getdeltat(), init(), insudaint(), pdfint(), splitfncint(), and xsecint().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double EtmDetectorStack::etamin ( void  ) const
inline

Definition at line 42 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 42 of file EtmDetectorStack.h

References EtmEtaBoundary::GetEta(), and mEtaBoundaries.

Referenced by EicToyModel::GetStack().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double EtmDetectorStack::FullLength ( void  ) const
inlineprivate

Definition at line 62 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 62 of file EtmDetectorStack.h

References mFullLength.

Referenced by EicToyModel::CalculateDefaultEtaBoundaries().

+ Here is the caller graph for this function:

EtmDetector* EtmDetectorStack::gap ( double  length)
inline

Definition at line 27 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 27 of file EtmDetectorStack.h

References add().

+ Here is the call graph for this function:

EtmDetector * EtmDetectorStack::get ( const char *  dname,
unsigned  order = 0 
) const

Definition at line 179 of file EtmDetectorStack.cc.

View newest version in sPHENIX GitHub at line 179 of file EtmDetectorStack.cc

References mDetectors, and mDummyDetector.

Referenced by EtmDetector::stretch().

+ Here is the caller graph for this function:

const EtmDetector* EtmDetectorStack::GetDetector ( unsigned  id) const
inline

Definition at line 57 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 57 of file EtmDetectorStack.h

References mDetectors.

Referenced by EtmDetector::GetOrder().

+ Here is the caller graph for this function:

const TString& EtmDetectorStack::GetLabel ( void  ) const
inline

Definition at line 55 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 55 of file EtmDetectorStack.h

References mLabel.

Referenced by EtmDetector::PlaceG4Volume().

+ Here is the caller graph for this function:

EtmDetector * EtmDetectorStack::insert ( const char *  tag,
double  length,
const char *  after,
unsigned  order = 0 
)

Definition at line 104 of file EtmDetectorStack.cc.

View newest version in sPHENIX GitHub at line 104 of file EtmDetectorStack.cc

References CreateDetector(), eic, EicToyModel::Instance(), it, and mDetectors.

+ Here is the call graph for this function:

EtmDetector * EtmDetectorStack::marker ( void  )

Definition at line 90 of file EtmDetectorStack.cc.

View newest version in sPHENIX GitHub at line 90 of file EtmDetectorStack.cc

References _MARKER_, add(), mDummyDetector, and printf().

+ Here is the call graph for this function:

void EtmDetectorStack::offset ( double  dstart = 0.0)

Definition at line 35 of file EtmDetectorStack.cc.

View newest version in sPHENIX GitHub at line 35 of file EtmDetectorStack.cc

References mStartingDistance.

void EtmDetectorStack::rm ( const char *  dname)

Definition at line 144 of file EtmDetectorStack.cc.

View newest version in sPHENIX GitHub at line 144 of file EtmDetectorStack.cc

References eic, EicToyModel::Instance(), it, and mDetectors.

Referenced by pyqqbh(), pyrvg1(), pyrvg2(), pyrvg3(), pyrvg4(), pyrvi1(), pyrvi2(), pyrvi3(), pyrvr(), strc10(), strc11(), strc20(), and strc21().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void EtmDetectorStack::rm ( const char *  dname,
unsigned  order 
)

Definition at line 164 of file EtmDetectorStack.cc.

View newest version in sPHENIX GitHub at line 164 of file EtmDetectorStack.cc

References eic, EicToyModel::Instance(), it, and mDetectors.

+ Here is the call graph for this function:

void EtmDetectorStack::SetEtaBoundaries ( double  min,
double  max 
)

Definition at line 25 of file EtmDetectorStack.cc.

View newest version in sPHENIX GitHub at line 25 of file EtmDetectorStack.cc

References CalculateAlignmentAxis(), mEtaBoundaries, and EtmEtaBoundary::SetEta().

Referenced by EicToyModel::acceptance(), and EtmDetectorStack().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class EicToyModel
friend

Definition at line 14 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 14 of file EtmDetectorStack.h

friend class EtmAzimuthalScan
friend

Definition at line 15 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 15 of file EtmDetectorStack.h

Member Data Documentation

TVector2 EtmDetectorStack::mAlignmentAxis
private

Definition at line 80 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 80 of file EtmDetectorStack.h

Referenced by AlignmentAxis(), and CalculateAlignmentAxis().

std::vector<EtmDetector*> EtmDetectorStack::mDetectors
private

Definition at line 74 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 74 of file EtmDetectorStack.h

Referenced by add(), Build(), CalculateActualDistances(), DetectorCount(), get(), GetDetector(), insert(), and rm().

EtmDetector* EtmDetectorStack::mDummyDetector
private

Definition at line 84 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 84 of file EtmDetectorStack.h

Referenced by EtmDetectorStack(), get(), and marker().

EtmEtaBoundary* EtmDetectorStack::mEtaBoundaries[2]
private

Definition at line 76 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 76 of file EtmDetectorStack.h

Referenced by CalculateAlignmentAxis(), EicToyModel::CalculateDefaultEtaBoundaries(), EtaBoundary(), etamax(), etamin(), EtmDetectorStack(), and SetEtaBoundaries().

double EtmDetectorStack::mFullLength
private

Definition at line 77 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 77 of file EtmDetectorStack.h

Referenced by CalculateActualDistances(), and FullLength().

TString EtmDetectorStack::mLabel
private

Definition at line 70 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 70 of file EtmDetectorStack.h

Referenced by EtmDetectorStack(), and GetLabel().

double EtmDetectorStack::mStartingDistance
private

Definition at line 77 of file EtmDetectorStack.h.

View newest version in sPHENIX GitHub at line 77 of file EtmDetectorStack.h

Referenced by CalculateActualDistances(), EicToyModel::CalculateDefaultEtaBoundaries(), and offset().


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