1010// ----- Created 06/01/04 by M. Al-Turany -----
1111// -------------------------------------------------------------------------
1212/* Generated by Together */
13+
1314#include " FairModule.h"
1415
1516#include " FairGeoBuilder.h" // for FairGeoBuilder
3031#include < TFile.h> // for TFile
3132#include < TGeoManager.h> // for TGeoManager, gGeoManager
3233#include < TGeoMaterial.h> // for TGeoMaterial
33- #include < TGeoMatrix.h> // for TGeoMatrix, TGeoHMatrix
3434#include < TGeoMedium.h> // for TGeoMedium
35- #include < TGeoNode.h> // for TGeoNode
36- #include < TGeoVolume.h> // for TGeoVolume
3735#include < TGeoVoxelFinder.h> // for TGeoVoxelFinder
3836#include < TKey.h> // for TKey
39- #include < TList.h> // for TList, TListIter
4037#include < TObjArray.h> // for TObjArray
4138#include < TObject.h> // for TObject
42- #include < TRefArray.h> // for TRefArray
4339#include < TSystem.h> // for TSystem, gSystem
44- #include < TVirtualMC.h>
4540
4641#ifdef ROOT_HAS_GDML
4742#include < TGDMLParse.h>
4843#endif
4944
45+ #include < cstdlib> // for getenv
46+ #include < cstring> // for strcmp, strlen
5047#include < map>
51- #include < stdlib.h> // for getenv
52- #include < string.h> // for strcmp, strlen
53-
54- class FairGeoMedium ;
5548
5649void FairModule::ConstructGeometry ()
5750{
@@ -213,7 +206,6 @@ void FairModule::SetGeometryFileName(TString fname, TString)
213206 // File not found
214207 LOG (fatal) << fName << " : geometry file " << fname << " not found in standard path " ;
215208 fgeoName = " " ;
216- return ;
217209}
218210
219211void FairModule::ProcessNodes (TList* aList)
@@ -268,7 +260,6 @@ void FairModule::ProcessNodes(TList* aList)
268260
269261void FairModule::AddSensitiveVolume (TGeoVolume* v)
270262{
271-
272263 LOG (debug2) << " AddSensitiveVolume " << v->GetName ();
273264
274265 // Only register volumes which are not already registered
@@ -293,7 +284,6 @@ FairVolume* FairModule::getFairVolume(FairGeoNode* fN)
293284 if ((fv->getGeoNode ()) == fN ) {
294285 fvol = fv;
295286 return fvol;
296- break ;
297287 }
298288 }
299289 return fvol;
0 commit comments