Skip to content

Commit 73d3a4a

Browse files
committed
minor fixes
1 parent ad83fef commit 73d3a4a

3 files changed

Lines changed: 18 additions & 9 deletions

File tree

Detectors/Upgrades/ALICE3/FVD/base/include/FVDBase/GeometryTGeo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace fvd
3232
class GeometryTGeo : public o2::detectors::DetMatrixCache
3333
{
3434
public:
35-
GeometryTGeo(bool build, int loadTrans);
35+
GeometryTGeo(bool build = false, int loadTrans = 0);
3636

3737
void Build(int loadTrans);
3838
void fillMatrixCache(int mask);

Detectors/Upgrades/ALICE3/FVD/simulation/include/FVDSimulation/Detector.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ class Detector : public o2::base::DetImpl<Detector>
7878
TGeoVolumeAssembly* buildModuleA();
7979
TGeoVolumeAssembly* buildModuleC();
8080

81+
void defineSensitiveVolumes();
82+
8183
/// Transient data about track passing the sensor, needed by ProcessHits()
8284
struct TrackData { // this is transient
8385
bool mHitStarted; //! hit creation started

Detectors/Upgrades/ALICE3/FVD/simulation/src/Detector.cxx

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ void Detector::ConstructGeometry()
152152
{
153153
createMaterials();
154154
buildModules();
155+
defineSensitiveVolumes();
155156
}
156157

157158

@@ -237,13 +238,13 @@ TGeoVolumeAssembly* Detector::buildModuleA()
237238

238239
for (int ir = 0; ir < FVDBaseParam::nRingsA; ir++) {
239240
for (int ic = 0; ic < 8; ic ++) {
240-
int cellId = ic + ir;
241+
int cellId = ic + 8*ir;
241242
std::string tbsName = "tbs" + std::to_string(cellId);
242-
std::string nodeName = "node" + std::to_string(cellId);
243+
std::string nodeName = "fvd_node" + std::to_string(cellId);
243244
float rmin = FVDBaseParam::rRingsA[ir];
244245
float rmax = FVDBaseParam::rRingsA[ir+1];
245-
float phimin = dphiDeg;
246-
float phimax = dphiDeg;
246+
float phimin = dphiDeg * ic;
247+
float phimax = dphiDeg * (ic + 1);
247248
float dz = FVDBaseParam::dzScint;
248249
auto tbs = new TGeoTubeSeg(tbsName.c_str(), rmin, rmax, dz, phimin, phimax);
249250
auto nod = new TGeoVolume(nodeName.c_str(), tbs, medium);
@@ -264,13 +265,13 @@ TGeoVolumeAssembly* Detector::buildModuleC()
264265

265266
for (int ir = 0; ir < FVDBaseParam::nRingsC; ir++) {
266267
for (int ic = 0; ic < 8; ic ++) {
267-
int cellId = ic + ir + FVDBaseParam::nCellA;
268+
int cellId = ic + 8*ir + FVDBaseParam::nCellA;
268269
std::string tbsName = "tbs" + std::to_string(cellId);
269-
std::string nodeName = "node" + std::to_string(cellId);
270+
std::string nodeName = "fvd_node" + std::to_string(cellId);
270271
float rmin = FVDBaseParam::rRingsC[ir];
271272
float rmax = FVDBaseParam::rRingsC[ir+1];
272-
float phimin = dphiDeg;
273-
float phimax = dphiDeg;
273+
float phimin = dphiDeg * ic;
274+
float phimax = dphiDeg * (ic + 1);
274275
float dz = FVDBaseParam::dzScint;
275276
auto tbs = new TGeoTubeSeg(tbsName.c_str(), rmin, rmax, dz, phimin, phimax);
276277
auto nod = new TGeoVolume(nodeName.c_str(), tbs, medium);
@@ -280,3 +281,9 @@ TGeoVolumeAssembly* Detector::buildModuleC()
280281

281282
return mod;
282283
}
284+
285+
void Detector::defineSensitiveVolumes()
286+
{
287+
LOG(info) << "Adding FVD Sentitive Volumes";
288+
289+
}

0 commit comments

Comments
 (0)