]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ZDC/AliZDCv2.cxx
Obsolete file deleted
[u/mrichter/AliRoot.git] / ZDC / AliZDCv2.cxx
index ac348c3c87d47976e0f78e364baf2b2988e77112..4857c38de6febc74b20e098513140102f96a92e7 100644 (file)
@@ -29,7 +29,6 @@
 
 // --- ROOT system
 #include <TBRIK.h>
-#include <TLorentzVector.h>
 #include <TMath.h>
 #include <TNode.h>
 #include <TRandom.h>
@@ -52,24 +51,56 @@ class  AliDetector;
 ClassImp(AliZDCv2)
 
 //_____________________________________________________________________________
-AliZDCv2::AliZDCv2() : AliZDC()
+AliZDCv2::AliZDCv2() :
+  AliZDC(),
+  fMedSensF1(0),
+  fMedSensF2(0),
+  fMedSensZP(0),
+  fMedSensZN(0),
+  fMedSensZEM(0),
+  fMedSensGR(0),
+  fMedSensPI(0),
+  fMedSensTDI(0),
+  fNalfan(0),
+  fNalfap(0),
+  fNben(0),  
+  fNbep(0),
+  fZEMLength(0),
+  fpLostIT(0), 
+  fpLostD1(0), 
+  fpLostTDI(0),
+  fpDetected(0),
+  fnDetected(0)
 {
   //
   // Default constructor for Zero Degree Calorimeter
   //
   
-  fMedSensF1  = 0;
-  fMedSensF2  = 0;
-  fMedSensZN  = 0;
-  fMedSensZP  = 0;
-  fMedSensZEM = 0;
-  fMedSensGR  = 0;
-
 }
  
 //_____________________________________________________________________________
 AliZDCv2::AliZDCv2(const char *name, const char *title)
-  : AliZDC(name,title)
+  : AliZDC(name,title),
+  fMedSensF1(0),
+  fMedSensF2(0),
+  fMedSensZP(0),
+  fMedSensZN(0),
+  fMedSensZEM(0),
+  fMedSensGR(0),
+  fMedSensPI(0),
+  fMedSensTDI(0),
+  fNalfan(90),
+  fNalfap(90),
+  fNben(18),  
+  fNbep(28), 
+  fZEMLength(0),
+  fpLostIT(0), 
+  fpLostD1(0), 
+  fpLostTDI(0),
+  fpDetected(0),
+  fnDetected(0)
+
+
 {
   //
   // Standard constructor for Zero Degree Calorimeter 
@@ -149,7 +180,7 @@ AliZDCv2::AliZDCv2(const char *name, const char *title)
   Int_t   kDivZEM[3] = {92, 0, 20};            // Divisions for EM detector
   Float_t kDimZEM0 = 2*kDivZEM[2]*(kDimZEMPb+kDimZEMAir+kFibRadZEM*(TMath::Sqrt(2.)));
   fZEMLength = kDimZEM0;
-  
+
 }
  
 //_____________________________________________________________________________
@@ -1023,7 +1054,6 @@ void AliZDCv2::AddAlignableVolumes() const
  // name with the corresponding volume path. Needs to be syncronized with
  // eventual changes in the geometry.
  //
- Int_t modnum = 0;
  TString volpath1 = "ALIC_1/ZDC_1/ZNEU_1";
  TString volpath2 = "ALIC_1/ZDC_1/ZPRO_1";
 
@@ -1040,9 +1070,9 @@ void AliZDCv2::AddAlignableVolumes() const
 //_____________________________________________________________________________
 void AliZDCv2::Init()
 {
- InitTables();
+  InitTables();
+  Int_t *idtmed = fIdtmed->GetArray();  
   Int_t i;
-  Int_t *idtmed = fIdtmed->GetArray();
   // Thresholds for showering in the ZDCs 
   i = 1; //tantalum
   gMC->Gstpar(idtmed[i], "CUTGAM", .001);
@@ -1138,7 +1168,7 @@ void AliZDCv2::Init()
   fMedSensZEM = idtmed[5];  // Sensitive volume: ZEM passive material
   fMedSensTDI = idtmed[6];  // Sensitive volume: TDI Cu shield
   fMedSensPI  = idtmed[7];  // Sensitive volume: beam pipes
-  fMedSensGR  = idtmed[12]; // Sensitive volume: air into the grooves  
+  fMedSensGR  = idtmed[12]; // Sensitive volume: air into the grooves
 }
 
 //_____________________________________________________________________________