1 #ifndef StiPixelDetectorBuilder_H
2 #define StiPixelDetectorBuilder_H
3 #include "Sti/StiDetectorBuilder.h"
4 #include "StDetectorDbMaker/StiHitErrorCalculator.h"
11 double phiForSector(
unsigned int iSector)
const;
14 void useVMCGeometry();
15 void AverageVolume(TGeoPhysicalNode *nodeP);
19 double radiusForPixelSector(
unsigned int iSector)
const;
20 double psiForPixelSector(
unsigned int iSector)
const;
28 inline double StiPixelDetectorBuilder::phiForSector(
unsigned int sector)
const
31 int offset = nSectors/4;
32 double deltaPhi = 2.*M_PI/nSectors;
33 double dPhi = (offset -
static_cast<int>(sector+1))*deltaPhi;
41 cout <<
"phiForPixelSector(" << sector <<
"): invalid sector" << endl;
42 throw runtime_error(
"StiPixelDetectorBuilder::phiForPixelSector - ERROR - Invalid Sector");
121 return (phi/180.*M_PI);
124 inline double StiPixelDetectorBuilder::radiusForPixelSector(
unsigned int sector)
const
126 if(sector<0 || sector>=24)
128 cout <<
"radiusForPixelSector(" << sector <<
"): invalid sector" << endl;
129 throw runtime_error(
"StiPixelDetectorBuilder::radiusForPixelSector - ERROR - Invalid Sector");
132 double radius = -1000.;
173 inline double StiPixelDetectorBuilder::psiForPixelSector(
unsigned int sector)
const
175 if(sector<0 || sector>=24)
177 cout <<
"psiForPixelSector(" << sector <<
"): invalid sector" << endl;
178 throw runtime_error(
"StiPixelDetectorBuilder::psiForPixelSector - ERROR - Invalid Sector");
219 return (psi/180.*M_PI);
virtual void buildDetectors(StMaker &source)
Build all detector components of the Pixel detector.
double phiForPixelSector(unsigned int iSector) const
returns the azimuthal angle [-pi, pi) for tpc sector [1-24]