@@ -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