]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - JETAN/AliJetDummyGeo.cxx
Added switch to turn off many histograms needed for cross checks but not always needed
[u/mrichter/AliRoot.git] / JETAN / AliJetDummyGeo.cxx
index cfc248fdae451901e1866ee3acb29ee1aa657144..2892cbc1fcc083a645e32f312bf9bd675ab5bf73 100644 (file)
@@ -170,6 +170,7 @@ AliJetDummyGeo::AliJetDummyGeo():
 }
 
 AliJetDummyGeo::AliJetDummyGeo(const AliJetDummyGeo& geom):
+  TObject(geom),  
   fArm1EtaMin(geom.fArm1EtaMin), 
   fArm1EtaMax(geom.fArm1EtaMax), 
   fArm1PhiMin(geom.fArm1PhiMin), 
@@ -279,7 +280,7 @@ AliJetDummyGeo::~AliJetDummyGeo()
 }
 
 //------------------------------------------------------------------------------------
-void AliJetDummyGeo::EtaPhiFromIndex(Int_t absId, Float_t& eta, Float_t& phi)
+void AliJetDummyGeo::EtaPhiFromIndex(Int_t absId, Float_t& eta, Float_t& phi) const
 {
   // Nov 16, 2006- float to double
   // version for TRD1 only
@@ -643,6 +644,9 @@ void AliJetDummyGeo::CreateListOfTrd1Modules()
   Int_t ind=0; // this is phi index
   Int_t ieta=0, nModule=0, iphiTemp;
   Double_t xr, zr, theta, phi, eta, r, x,y;
+  xr = 0.;
+  zr = 0.;
+  
   TVector3 vglob;
   Double_t ytCenterModule=0.0, ytCenterCell=0.0;
 
@@ -684,10 +688,10 @@ void AliJetDummyGeo::CreateListOfTrd1Modules()
         trd1->GetCenterOfCellInLocalCoordinateofSM(ic, xr, zr);      // case of 2X2
         GetCellPhiEtaIndexInSModule(0, nModule, 0, ic, iphiTemp, ieta); 
       } if(fNPHIdiv==3) {
-        trd1->GetCenterOfCellInLocalCoordinateofSM_3X3(ic, xr, zr);  // case of 3X3
+        trd1->GetCenterOfCellInLocalCoordinateofSM3X3(ic, xr, zr);  // case of 3X3
         GetCellPhiEtaIndexInSModule(0, nModule, 0, ic, iphiTemp, ieta); 
       } if(fNPHIdiv==1) {
-        trd1->GetCenterOfCellInLocalCoordinateofSM_1X1(xr, zr);      // case of 1X1
+        trd1->GetCenterOfCellInLocalCoordinateofSM1X1(xr, zr);      // case of 1X1
         GetCellPhiEtaIndexInSModule(0, nModule, 0, ic, iphiTemp, ieta); 
       }
       fCentersOfCellsXDir.AddAt(Float_t(xr) - fParSM[0],ieta);