]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
- created argument for setting the charge threshold (-charge-threshold), default...
authorkkanaki <kkanaki@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Jan 2010 12:28:15 +0000 (12:28 +0000)
committerkkanaki <kkanaki@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Jan 2010 12:28:15 +0000 (12:28 +0000)
HLT/TPCLib/AliHLTTPCHWClusterTransformComponent.cxx
HLT/TPCLib/AliHLTTPCHWClusterTransformComponent.h

index b089c57b27ee8e71ca02034dd202b5b46b2ae393..5777779734d5eddcd008a57915629f83e8cce78c 100644 (file)
@@ -52,6 +52,7 @@ AliHLTTPCHWClusterTransformComponent::AliHLTTPCHWClusterTransformComponent()
 :
 fOfflineTransform(NULL),
 fDataId(kFALSE),
+fChargeThreshold(10),
 fOfflineTPCRecoParam()
 {
   // see header file for class documentation
@@ -253,7 +254,7 @@ int AliHLTTPCHWClusterTransformComponent::DoEvent(const AliHLTComponentEventData
           cluster.fSigmaZ2 = *((Float_t*)&buffer[nWords+4]);
           
           
-          if(cluster.fCharge<10) continue;
+          if(cluster.fCharge<fChargeThreshold) continue;
           
           // correct expressions for the error calculation
           // Kenneth: 12.11.2009 I'm not sure if this is a correct calculation. Leave it out for now since it is anyway not used later since it caused segfaults.
@@ -355,6 +356,14 @@ int AliHLTTPCHWClusterTransformComponent::ScanConfigurationArgument(int argc, co
     fDataId = kTRUE;
     return 1;
   }
+  
+  if (argument.CompareTo("-charge-threshold")==0) {
+    if (++i>=argc) return -EPROTO;
+    argument=argv[i];
+    fChargeThreshold=argument.Atof();
+    HLTInfo("The charge threshold has been set to %d.", fChargeThreshold);
+    return 2;
+  }    
 
   // unknown argument
   return -EINVAL;
index 5b7d11206140bad84215f4558ca2716f157850d6..a1b5fa44d278bea7d02c3a36e9af22d487e51fdb 100644 (file)
@@ -136,6 +136,7 @@ protected:
   using AliHLTProcessor::DoEvent;
   AliTPCTransform *fOfflineTransform;
   Bool_t fDataId;
+  Int_t fChargeThreshold;  //!transient 
 
 private:
    
@@ -147,11 +148,10 @@ private:
   /** assignment operator prohibited */
   AliHLTTPCHWClusterTransformComponent& operator=(const AliHLTTPCHWClusterTransformComponent&);
 
-  AliTPCRecoParam fOfflineTPCRecoParam;  //! transient
-
-  static const char* fgkOCDBEntryHWTransform;  //!transient
-          
-  ClassDef(AliHLTTPCHWClusterTransformComponent, 3)
+  AliTPCRecoParam fOfflineTPCRecoParam;       //! transient
+  static const char* fgkOCDBEntryHWTransform; //!transient
+  
+  ClassDef(AliHLTTPCHWClusterTransformComponent, 4)
 };
 
 #endif