]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
New option to select between the new and the old RCU trailer format
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 30 May 2006 13:01:27 +0000 (13:01 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 30 May 2006 13:01:27 +0000 (13:01 +0000)
TPC/AliTPCReconstructor.cxx
TPC/AliTPCclustererMI.h

index 1cb63cddf43696e8ce39438c6a36b31db0092aab..e9fb3f19f3242e5389d14634603cd2d16df08ef7 100644 (file)
@@ -104,6 +104,8 @@ void AliTPCReconstructor::Reconstruct(AliRunLoader* runLoader,
   TString option = GetOption();
   if (option.Contains("PedestalSubtraction"))
     clusterer.SetPedSubtraction(kTRUE);
+  if (option.Contains("OldRCUFormat"))
+    clusterer.SetOldRCUFormat(kTRUE);
  
   Int_t iEvent = 0;
   while (rawReader->NextEvent()) {
index 8ec10939c246513afde6b2ec5a560e073c6a08e1..057944211e06280f18e801de2e152733061180c8 100644 (file)
@@ -32,6 +32,8 @@ public:
   virtual void Digits2Clusters(AliRawReader* rawReader);
   virtual void SetPedSubtraction(Bool_t pedestalSub = kFALSE)
     { fPedSubtraction = pedestalSub; };
+  virtual void SetOldRCUFormat(Bool_t rcuFormat = kFALSE)
+    { fIsOldRCUFormat = rcuFormat; };
   virtual void SetInput(TTree * tree);  // set input tree with digits    
   virtual void SetOutput(TTree * tree); //set output tree with 
 private:
@@ -65,6 +67,7 @@ private:
   Float_t fZWidth;     //the z bin width
 
   Bool_t  fPedSubtraction; // perform pedestal subtraction or not
+  Bool_t  fIsOldRCUFormat; // assume old RCU raw data format
 
   TTree * fInput;   //!input  tree with digits - object not owner
   TTree * fOutput;   //!output tree with digits - object not owner