#include <NonProjCalGeometry.hh>
Collaboration diagram for NonProjCalGeometry:

Public Member Functions | |
| NonProjCalGeometry (const NonProjCalGeomParams &par) | |
| ~NonProjCalGeometry () | |
| int | NumberOfLayers () const |
| double | getCellCenterCylR (const NPCellID &id) const |
| double | getCellCenterPhi (const NPCellID &id) const |
| double | getCellCenterZ (const NPCellID &id) const |
| G4ThreeVector | getCellCenter (const NPCellID &id) const |
| double | getCellCenterX (const NPCellID &id) const |
| double | getCellCenterY (const NPCellID &id) const |
| double | getCellCenterTheta (const NPCellID &id) const |
| double | getCellCenterSphR (const NPCellID &id) const |
| double | getInnerROfActiveLayer (int i) const |
| double | getNcellsAlongZInLayer (int i) const |
| double | getNcellsAlongPhiInLayer (int i) const |
| double | getCellSizeAlongZInLayer (int i) const |
| double | getCellSizeAlongPhiInLayer (int i) const |
| NPCellID | getClosestCell (const G4ThreeVector &pos) const |
| bool | activeCellContains (const NPCellID &npid, const G4ThreeVector &pos) const |
| int | getLayer (const G4ThreeVector &pos) const |
Private Attributes | |
| int | _nlayers |
| const NonProjCalGeomParams * | _par |
| std::vector< const NonProjCalLayer * > | _layers |
|
|
Definition at line 5 of file NonProjCalGeometry.cc. References _layers, _nlayers, and _par.
00006 {
00007 // Build layers
00008 _par = ∥
00009 _nlayers = par.NumberOfLayers();
00010 for(int i=0; i<_nlayers; i++) {
00011 _layers.push_back(new NonProjCalLayer(par,i));
00012
00013 // some debugging
00014 // NonProjCalLayer ithlayer = (NonProjCalLayer)_layers.get(i);
00015 // System.out.println("Layer="+ithlayer.Index()
00016 // +", nCellsZ="+ithlayer.NumCellsAlongZ()
00017 // +", nCellsPhi="+ithlayer.NumCellsAlongPhi()
00018 // );
00019 // System.out.println(" ");
00020 }
00021 }
|
|
|
Definition at line 22 of file NonProjCalGeometry.hh.
00022 {}
|
|
||||||||||||
|
Definition at line 34 of file NonProjCalGeometry.cc. References _layers, and NPCellID::ir.
|
|
|
Definition at line 37 of file NonProjCalGeometry.hh. References _layers, and NPCellID::ir. Referenced by LCDG4CalSDNonProj::getCellCenter().
|
|
|
Definition at line 28 of file NonProjCalGeometry.hh. References _layers, and NPCellID::ir.
|
|
|
Definition at line 31 of file NonProjCalGeometry.hh. References _layers, and NPCellID::ir.
|
|
|
Definition at line 49 of file NonProjCalGeometry.hh. References _layers, and NPCellID::ir.
|
|
|
Definition at line 46 of file NonProjCalGeometry.hh. References _layers, and NPCellID::ir.
|
|
|
Definition at line 40 of file NonProjCalGeometry.hh. References _layers, and NPCellID::ir.
|
|
|
Definition at line 43 of file NonProjCalGeometry.hh. References _layers, and NPCellID::ir.
|
|
|
Definition at line 34 of file NonProjCalGeometry.hh. References _layers, and NPCellID::ir.
|
|
|
Definition at line 65 of file NonProjCalGeometry.hh. References _layers.
00065 {
00066 return _layers[i]->getCellSizeAlongPhi();
00067 }
|
|
|
Definition at line 62 of file NonProjCalGeometry.hh. References _layers.
00062 {
00063 return _layers[i]->getCellSizeAlongZ();
00064 }
|
|
|
Definition at line 23 of file NonProjCalGeometry.cc. References _layers, and getLayer(). Referenced by LCDG4CalSDNonProj::findCell().
|
|
|
Definition at line 53 of file NonProjCalGeometry.hh. References _layers.
00053 {
00054 return _layers[i]->getInnerRadiusOfActive();
00055 }
|
|
|
Definition at line 47 of file NonProjCalGeometry.cc. References _par, NonProjCalGeomParams::GlobalRmin(), and NonProjCalGeomParams::LayerThickness(). Referenced by getClosestCell().
00048 {
00049 double depth = sqrt(pos.x()*pos.x() + pos.y()*pos.y()) - _par->GlobalRmin();
00050 int layer = (int)floor( depth / _par->LayerThickness() );
00051 // There are some rare cases where this goes to -1... weird!!
00052 if(layer<0) {
00053 G4cout<< "NPCalGeom::getLayer: invalid layer="<< layer <<", set to 0."
00054 << G4endl;
00055 G4cout<< " Culprit: depth(mm)="<< depth << G4endl;
00056 layer=0;
00057 }
00058 return layer;
00059 }
|
|
|
Definition at line 59 of file NonProjCalGeometry.hh. References _layers.
00059 {
00060 return _layers[i]->getNcellsAlongPhi();
00061 }
|
|
|
Definition at line 56 of file NonProjCalGeometry.hh. References _layers.
00056 {
00057 return _layers[i]->getNcellsAlongZ();
00058 }
|
|
|
Definition at line 25 of file NonProjCalGeometry.hh. References _nlayers.
00025 { return _nlayers; }
|
|
|
|
Definition at line 74 of file NonProjCalGeometry.hh. Referenced by NonProjCalGeometry(), and NumberOfLayers(). |
|
|
Definition at line 75 of file NonProjCalGeometry.hh. Referenced by getLayer(), and NonProjCalGeometry(). |
1.3.4