]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSRecoParam.cxx
Bug fix in filling BB and BG flags in the ESD friend.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecoParam.cxx
index d12b9d677a5c2ef110de56ca9d6cfd763220ea2d..aff24fe03aeddc501a598b0a2ca67a5fce9a5d00 100644 (file)
@@ -38,12 +38,15 @@ AliPHOSRecoParam::AliPHOSRecoParam() :
   fEMCMinE(0.012),
   fEMCW0(4.5),
   fEMCSampleQualityCut(1.),
+  fTimeGateAmpThresh(10.),
+  fTimeGateLow(1.e-6),
+  fTimeGateHigh(1.e-6),    
   fEMCEcoreRadius(3.),
   fEMCEcore2ESD(kFALSE),
   fEMCSubtractPedestals(kTRUE),
   fEMCUnfold(kTRUE),
   fEMCEnergyCorrectionOn(kTRUE),
-  fEMCDecoderVersion(""),
+  fEMCFitterVersion(""),
   fGlobalAltroOffset(0),
   fGlobalAltroThreshold(0),
   fCPVClusteringThreshold(0.0),
@@ -64,12 +67,15 @@ AliPHOSRecoParam::AliPHOSRecoParam(const AliPHOSRecoParam& ):
   fEMCMinE(0.012),
   fEMCW0(4.5),
   fEMCSampleQualityCut(1.),
+  fTimeGateAmpThresh(10.),
+  fTimeGateLow(1.e-6),
+  fTimeGateHigh(1.e-6),    
   fEMCEcoreRadius(3.),
   fEMCEcore2ESD(kFALSE),
   fEMCSubtractPedestals(kTRUE),
   fEMCUnfold(kTRUE),
   fEMCEnergyCorrectionOn(kTRUE),
-  fEMCDecoderVersion(""),
+  fEMCFitterVersion(""),
   fGlobalAltroOffset(0),
   fGlobalAltroThreshold(0),
   fCPVClusteringThreshold(0.0),
@@ -93,12 +99,15 @@ AliPHOSRecoParam& AliPHOSRecoParam::operator = (const AliPHOSRecoParam& recoPara
     fEMCMinE                = recoParam.fEMCMinE;
     fEMCW0                  = recoParam.fEMCW0;
     fEMCSampleQualityCut    = recoParam.fEMCSampleQualityCut;
+    fTimeGateAmpThresh      = recoParam.fTimeGateAmpThresh ;
+    fTimeGateLow            = recoParam.fTimeGateLow ;
+    fTimeGateHigh           = recoParam.fTimeGateHigh ;
     fEMCEcoreRadius         = recoParam.fEMCEcoreRadius;
     fEMCEcore2ESD           = recoParam.fEMCEcore2ESD;
     fEMCSubtractPedestals   = recoParam.fEMCSubtractPedestals;
     fEMCUnfold              = recoParam.fEMCUnfold;
     fEMCEnergyCorrectionOn  = recoParam.fEMCEnergyCorrectionOn;
-    fEMCDecoderVersion      = recoParam.fEMCDecoderVersion;
+    fEMCFitterVersion       = recoParam.fEMCFitterVersion;
     fGlobalAltroOffset      = recoParam.fGlobalAltroOffset;
     fGlobalAltroThreshold   = recoParam.fGlobalAltroThreshold;
     fCPVClusteringThreshold = recoParam.fCPVClusteringThreshold;
@@ -126,8 +135,8 @@ void AliPHOSRecoParam::Print(Option_t * /*option*/) const
                  "\tEMCSubtractPedestals   = %d\n"
                  "\tEMCUnfold              = %d\n"
                  "\tEMCEnergyCorrectionOn  = %d\n"
-                 "\tEMCDecoderVersion      = \"%s\"\n"
-                 "\tGlobalAltroOffset      = %d",
+                 "\tEMCFitterVersion       = \"%s\"\n"
+                 "\tGlobalAltroOffset      = %d\n"
                  "\tGlobalAltroThreshold   = %d",
                  fEMCClusteringThreshold,
                  fEMCLocMaxCut,
@@ -140,7 +149,7 @@ void AliPHOSRecoParam::Print(Option_t * /*option*/) const
                  fEMCSubtractPedestals,
                  fEMCUnfold,
                  fEMCEnergyCorrectionOn,
-                 fEMCDecoderVersion.Data(),
+                 fEMCFitterVersion.Data(),
                  fGlobalAltroOffset,
                  fGlobalAltroThreshold));
 
@@ -162,7 +171,7 @@ const TObjArray* AliPHOSRecoParam::GetMappings()
   //If not found, read it from OCDB.
 
   //Quick check as follows:
-  //  root [0] AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT");
+  //  root [0] AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
   //  root [1] AliCDBManager::Instance()->SetRun(1);
   //  root [2] TObjArray* maps = AliPHOSRecoParam::GetMappings();
   //  root [3] maps->Print();