@@ -134,7 +134,7 @@ Bool_t Detector::ProcessHits(FairVolume* vol)
134134 return kFALSE ; // do nothing more
135135 }
136136
137- return kTRUE ;
137+ return kTRUE ;
138138}
139139
140140o2::fvd::Hit* Detector::addHit (Int_t trackId, Int_t cellId,
@@ -148,16 +148,16 @@ o2::fvd::Hit* Detector::addHit(Int_t trackId, Int_t cellId,
148148 return &(mHits ->back ());
149149}
150150
151- void Detector::ConstructGeometry ()
151+ void Detector::ConstructGeometry ()
152152{
153- createMaterials ();
154- buildModules ();
155- defineSensitiveVolumes ();
153+ createMaterials ();
154+ buildModules ();
155+ defineSensitiveVolumes ();
156156}
157157
158-
159- void Detector::EndOfEvent () {
160- Reset ();
158+ void Detector::EndOfEvent ()
159+ {
160+ Reset ();
161161}
162162
163163void Detector::Register ()
@@ -194,16 +194,16 @@ void Detector::createMaterials()
194194
195195 Int_t matId = 0 ; // tmp material id number
196196 const Int_t unsens = 0 , sens = 1 ; // sensitive or unsensitive medium
197- //
198- Int_t fieldType = 3 ; // Field type
199- Float_t maxField = 5.0 ; // Field max.
197+ //
198+ Int_t fieldType = 3 ; // Field type
199+ Float_t maxField = 5.0 ; // Field max.
200200
201201 Float_t tmaxfd = -10.0 ; // max deflection angle due to magnetic field in one step
202202 Float_t stemax = 0.1 ; // max step allowed [cm]
203203 Float_t deemax = 1.0 ; // maximum fractional energy loss in one step 0<deemax<=1
204204 Float_t epsil = 0.03 ; // tracking precision [cm]
205205 Float_t stmin = -0.001 ; // minimum step due to continuous processes [cm] (negative value: choose it automatically)
206-
206+
207207 LOG (info) << " FVD: CreateMaterials(): fieldType " << fieldType << " , maxField " << maxField;
208208
209209 o2::base::Detector::Mixture (++matId, " Scintillator" , aScint, zScint, dScint, nScint, wScint);
@@ -217,12 +217,12 @@ void Detector::buildModules()
217217
218218 TGeoVolume* vCave = gGeoManager ->GetVolume (" cave" );
219219 if (!vCave) {
220- LOG (fatal) << " Could not find the top volume!" ;
220+ LOG (fatal) << " Could not find the top volume!" ;
221221 }
222222
223223 // create modules
224- TGeoVolumeAssembly * vFVDA = buildModuleA ();
225- TGeoVolumeAssembly * vFVDC = buildModuleC ();
224+ TGeoVolumeAssembly* vFVDA = buildModuleA ();
225+ TGeoVolumeAssembly* vFVDC = buildModuleC ();
226226
227227 vCave->AddNode (vFVDA, 0 , new TGeoTranslation (0 ., 0 ., FVDBaseParam::zModA));
228228 vCave->AddNode (vFVDC, 1 , new TGeoTranslation (0 ., 0 ., FVDBaseParam::zModC));
@@ -232,24 +232,24 @@ TGeoVolumeAssembly* Detector::buildModuleA()
232232{
233233 TGeoVolumeAssembly* mod = new TGeoVolumeAssembly (" FVDA" );
234234
235- const TGeoMedium* medium = gGeoManager ->GetMedium (" FVD_Scintillator" );
235+ const TGeoMedium* medium = gGeoManager ->GetMedium (" FVD_Scintillator" );
236236
237237 const float dphiDeg = 45 .;
238238
239239 for (int ir = 0 ; ir < FVDBaseParam::nRingsA; ir++) {
240- for (int ic = 0 ; ic < 8 ; ic ++) {
241- int cellId = ic + 8 * ir;
242- std::string tbsName = " tbs" + std::to_string (cellId);
243- std::string nodeName = " fvd_node" + std::to_string (cellId);
244- float rmin = FVDBaseParam::rRingsA[ir];
245- float rmax = FVDBaseParam::rRingsA[ir+ 1 ];
246- float phimin = dphiDeg * ic;
247- float phimax = dphiDeg * (ic + 1 );
248- float dz = FVDBaseParam::dzScint;
249- auto tbs = new TGeoTubeSeg (tbsName.c_str (), rmin, rmax, dz, phimin, phimax);
250- auto nod = new TGeoVolume (nodeName.c_str (), tbs, medium);
251- mod->AddNode (nod, cellId);
252- }
240+ for (int ic = 0 ; ic < 8 ; ic++) {
241+ int cellId = ic + 8 * ir;
242+ std::string tbsName = " tbs" + std::to_string (cellId);
243+ std::string nodeName = " fvd_node" + std::to_string (cellId);
244+ float rmin = FVDBaseParam::rRingsA[ir];
245+ float rmax = FVDBaseParam::rRingsA[ir + 1 ];
246+ float phimin = dphiDeg * ic;
247+ float phimax = dphiDeg * (ic + 1 );
248+ float dz = FVDBaseParam::dzScint;
249+ auto tbs = new TGeoTubeSeg (tbsName.c_str (), rmin, rmax, dz, phimin, phimax);
250+ auto nod = new TGeoVolume (nodeName.c_str (), tbs, medium);
251+ mod->AddNode (nod, cellId);
252+ }
253253 }
254254
255255 return mod;
@@ -259,31 +259,30 @@ TGeoVolumeAssembly* Detector::buildModuleC()
259259{
260260 TGeoVolumeAssembly* mod = new TGeoVolumeAssembly (" FVDC" );
261261
262- const TGeoMedium* medium = gGeoManager ->GetMedium (" FVD_Scintillator" );
262+ const TGeoMedium* medium = gGeoManager ->GetMedium (" FVD_Scintillator" );
263263
264264 const float dphiDeg = 45 .;
265265
266266 for (int ir = 0 ; ir < FVDBaseParam::nRingsC; ir++) {
267- for (int ic = 0 ; ic < 8 ; ic ++) {
268- int cellId = ic + 8 * ir + FVDBaseParam::nCellA;
269- std::string tbsName = " tbs" + std::to_string (cellId);
270- std::string nodeName = " fvd_node" + std::to_string (cellId);
271- float rmin = FVDBaseParam::rRingsC[ir];
272- float rmax = FVDBaseParam::rRingsC[ir+ 1 ];
273- float phimin = dphiDeg * ic;
274- float phimax = dphiDeg * (ic + 1 );
275- float dz = FVDBaseParam::dzScint;
276- auto tbs = new TGeoTubeSeg (tbsName.c_str (), rmin, rmax, dz, phimin, phimax);
277- auto nod = new TGeoVolume (nodeName.c_str (), tbs, medium);
278- mod->AddNode (nod, cellId);
279- }
267+ for (int ic = 0 ; ic < 8 ; ic++) {
268+ int cellId = ic + 8 * ir + FVDBaseParam::nCellA;
269+ std::string tbsName = " tbs" + std::to_string (cellId);
270+ std::string nodeName = " fvd_node" + std::to_string (cellId);
271+ float rmin = FVDBaseParam::rRingsC[ir];
272+ float rmax = FVDBaseParam::rRingsC[ir + 1 ];
273+ float phimin = dphiDeg * ic;
274+ float phimax = dphiDeg * (ic + 1 );
275+ float dz = FVDBaseParam::dzScint;
276+ auto tbs = new TGeoTubeSeg (tbsName.c_str (), rmin, rmax, dz, phimin, phimax);
277+ auto nod = new TGeoVolume (nodeName.c_str (), tbs, medium);
278+ mod->AddNode (nod, cellId);
279+ }
280280 }
281281
282282 return mod;
283283}
284284
285285void Detector::defineSensitiveVolumes ()
286286{
287- LOG (info) << " Adding FVD Sentitive Volumes" ;
288-
287+ LOG (info) << " Adding FVD Sentitive Volumes" ;
289288}
0 commit comments