@@ -50,9 +50,9 @@ void Detector::InitializeO2Detector()
5050{
5151 // FIXME: we need to register the sensitive volumes with FairRoot
5252 TGeoVolume* v = gGeoManager ->GetVolume (" 0REG" );
53- if (v == nullptr )
54- printf ( " @@@@ Sensitive volume 0REG not found!!!!!!!!" ) ;
55- else {
53+ if (v == nullptr ) {
54+ LOG (WARN) << " @@@@ Sensitive volume 0REG not found!!!!!!!!" ;
55+ } else {
5656 AddSensitiveVolume (v);
5757 }
5858}
@@ -74,10 +74,10 @@ void Detector::ConstructGeometry()
7474
7575 int nCellsA = Geometry::NCellsA;
7676 int nCellsC = Geometry::NCellsC;
77-
77+
7878 Geometry geometry;
7979 TVector3 centerMCP = geometry.centerMCP (2 );
80-
80+
8181 Matrix (idrotm[901 ], 90 ., 0 ., 90 ., 90 ., 180 ., 0 .);
8282
8383 // C side Concave Geometry
@@ -247,7 +247,7 @@ void Detector::SetOneMCP(TGeoVolume* ins)
247247 topref->AddNode (rfv, 1 , new TGeoTranslation (xinv, 0 , 0 ));
248248 xinv = ptop[0 ] + prfv[0 ];
249249 topref->AddNode (rfv, 2 , new TGeoTranslation (xinv, 0 , 0 ));
250- yinv = -ptop[1 ] - prfh[1 ];
250+ yinv = -ptop[1 ] - prfh[1 ];
251251 topref->AddNode (rfh, 1 , new TGeoTranslation (0 , yinv, 0 ));
252252 yinv = ptop[1 ] + prfh[1 ];
253253 topref->AddNode (rfh, 2 , new TGeoTranslation (0 , yinv, 0 ));
@@ -260,7 +260,7 @@ void Detector::SetOneMCP(TGeoVolume* ins)
260260 yin = -pinstart[1 ] + 0.3 + (iy + 0.5 ) * 2 * ptopref[1 ];
261261 ntops++;
262262 ins->AddNode (topref, ntops, new TGeoTranslation (xin, yin, z));
263- z = -pinstart[2 ] + 2 * pal[2 ] + 2 * ptopref[2 ] + preg[2 ];
263+ z = -pinstart[2 ] + 2 * pal[2 ] + 2 * ptopref[2 ] + preg[2 ];
264264 ins->AddNode (cat, ntops, new TGeoTranslation (xin, yin, z));
265265 // cat->Print();
266266 }
0 commit comments