During simulation: fill STU region w/ non null time sums
[u/mrichter/AliRoot.git] / TPC / AliTPCRecoParam.cxx
index 0c043e7..561a9c0 100644 (file)
 ClassImp(AliTPCRecoParam)
 
 
-
+Bool_t AliTPCRecoParam::fgUseTimeCalibration=kTRUE; // flag usage the time dependent calibration
+                                      // to be switched off for pass 0 reconstruction
+                                      // Use static function, other option will be to use 
+                                      // additional specific storage ?
 
 //_____________________________________________________________________________
 AliTPCRecoParam::AliTPCRecoParam():
   AliDetectorRecoParam(),
+  fUseHLTClusters(4),  // use HLTorRAW data
   fBClusterSharing(kTRUE),
   fCtgRange(1.05),       
   fMaxSnpTracker(0.95),
   fMaxSnpTrack(0.999),
+  fUseOuterDetectors(kFALSE),
   fDumpSignal(kFALSE),
   fFirstBin(0),
   fLastBin(-1),
@@ -70,6 +75,8 @@ AliTPCRecoParam::AliTPCRecoParam():
   fDumpAmplitudeMin(100),
   fMaxNoise(2.),
   //
+  fUseOnePadCluster(kTRUE),
+  fUseHLTOnePadCluster(kFALSE),
   fMinMaxCutAbs(4.),
   fMinLeftRightCutAbs(6.),
   fMinUpDownCutAbs(6.),
@@ -80,7 +87,28 @@ AliTPCRecoParam::AliTPCRecoParam():
   fMaxC(0.3),
   fBSpecialSeeding(kFALSE),
   fBKinkFinder(kTRUE),
-  fLastSeedRowSec(120)
+  fLastSeedRowSec(120),
+  fSeedGapPrim(6),
+  fSeedGapSec(6),
+  fUseFieldCorrection(2),      // use field correction
+  fUseComposedCorrection(kFALSE),      // use field correction
+  fUseRPHICorrection(0),      // use rphi correction
+  fUseRadialCorrection(0),    // use radial correction
+  fUseQuadrantAlignment(0),   // use quadrant alignment
+  fUseSectorAlignment(0),     // use sector alignment
+  fUseDriftCorrectionTime(1), // use drift correction time
+  fUseDriftCorrectionGY(1),   // use drif correction global y
+  fUseGainCorrectionTime(0),  // use gain correction time
+  fUseExBCorrection(1),  // use ExB correction
+  fUseMultiplicityCorrectionDedx(kTRUE), // use Dedx multiplicity correction
+  fUseAlignmentTime(kTRUE),              // use time dependent alignment correction
+  //
+  fUseTotCharge(kTRUE),          // switch use total or max charge
+  fMinFraction(0.01),           // truncated mean - lower threshold
+  fMaxFaction(0.7),            // truncated mean - upper threshold
+  fNeighborRowsDedx(2),           // neighbour rows for below threshold dEdx calculation
+  fUseTOFCorrection(kTRUE),
+  fUseSystematicCorrelation(kTRUE)
 {
   //
   // constructor
@@ -88,6 +116,14 @@ AliTPCRecoParam::AliTPCRecoParam():
   SetName("TPC");
   SetTitle("TPC");
   for (Int_t i=0;i<5;i++) fSystematicErrors[i]=0;
+  fCutSharedClusters[0]=0.5; // maximal allowed fraction of shared clusters - shorter track
+  fCutSharedClusters[1]=0.25; // maximal allowed fraction of shared clusters - longer  track
+  fClusterMaxRange[0]=1;     // y - pad      range
+  fClusterMaxRange[1]=1;     // z - time bin range
+  fKinkAngleCutChi2[0]=9;    // angular cut for kink finder - to create a kink
+                             // ~ about 5 % rate  for high pt kink finder
+  fKinkAngleCutChi2[1]=12;    // angular cut for kink finder - to use the partial track                             // form kink 
+                             // ~ about 2 % rate  for high pt kink finder
 }
 
 //_____________________________________________________________________________
@@ -98,7 +134,17 @@ AliTPCRecoParam::~AliTPCRecoParam()
   //  
 }
 
-
+void AliTPCRecoParam::Print(const Option_t* /*option*/) const{
+  //
+  //
+  //
+  AliTPCRecoParam::Dump();
+  printf("Systematic errors:\n");
+  const char * cherrs[5]={"sy=","sz=","ssnp=","stheta=","s1pt="};
+  for (Int_t i=0; i<5; i++){
+    printf("%s%f\n",cherrs[i],fSystematicErrors[i]);
+  }
+}
 
 
 AliTPCRecoParam *AliTPCRecoParam::GetLowFluxParam(){
@@ -122,6 +168,7 @@ AliTPCRecoParam *AliTPCRecoParam::GetHighFluxParam(){
   param->fCtgRange = 1.05;
   param->fFirstBin = 0;
   param->fLastBin  = 1000;  
+  param->fUseTotCharge=kFALSE;
   param->SetName("High Flux");
   param->SetTitle("High Flux");
   return param;
@@ -160,6 +207,8 @@ AliTPCRecoParam *AliTPCRecoParam::GetLaserTestParam(Bool_t bPedestal){
   param->fMaxSnpTracker = 0.98;
   param->fMaxC          = 0.02;
   param->fBSpecialSeeding = kTRUE;
+  param->fUseTOFCorrection=kFALSE;
+  param->fUseHLTClusters=1; // always RAW data
   //
   //
   param->SetName("Laser Flux");
@@ -181,6 +230,7 @@ AliTPCRecoParam *AliTPCRecoParam::GetCosmicTestParam(Bool_t bPedestal){
   param->fBSpecialSeeding = kTRUE;
   param->fMaxC          = 0.07;
   param->fBKinkFinder   = kFALSE;
+  param->fUseTOFCorrection =kFALSE;
   param->SetName("Cosmic Flux");
   param->SetTitle("Cosmic Flux");
 
@@ -188,4 +238,16 @@ AliTPCRecoParam *AliTPCRecoParam::GetCosmicTestParam(Bool_t bPedestal){
 }
 
 
+Bool_t  AliTPCRecoParam::GetUseTimeCalibration(){ 
+  //
+  // get
+  //
+  return fgUseTimeCalibration;
+}
+void    AliTPCRecoParam::SetUseTimeCalibration(Bool_t useTimeCalibration) {
+  //
+  // set 
+  //
+  fgUseTimeCalibration = useTimeCalibration;
+}