]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
The RawAnalyzer classes are moved to the aliroot/EMCAL
authorphille <phille@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Jan 2010 00:21:35 +0000 (00:21 +0000)
committerphille <phille@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Jan 2010 00:21:35 +0000 (00:21 +0000)
directory  in order to be made available also for
off-line.

HLT/CALO/AliHLTCaloRawAnalyzer.cxx [deleted file]
HLT/CALO/AliHLTCaloRawAnalyzer.h [deleted file]

diff --git a/HLT/CALO/AliHLTCaloRawAnalyzer.cxx b/HLT/CALO/AliHLTCaloRawAnalyzer.cxx
deleted file mode 100644 (file)
index e1fd419..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-// $Id: AliHLTCALORawAnalyzer.cxx 34264 2009-08-14 18:29:23Z odjuvsla $
-
-/**************************************************************************
- * Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved.      *
- *                                                                        *
- * Author: Per Thomas Hille for the ALICE HLT Project.                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-
-#include "AliHLTCaloRawAnalyzer.h"
-#include "AliHLTCaloUtilities.h" 
-
-AliHLTCaloRawAnalyzer:: AliHLTCaloRawAnalyzer():fDoCorrectBaselineUsingFirstFiveSamples(false),
-                                               fShortDataPtr(0),
-                                               fSampleFrequency(10),
-                                               fTau(2), 
-                                               fDTof(99999), 
-                                               fDAmpl(99999),
-                                               fUtilitiesPtr(0)
-
-{
-  fUtilitiesPtr = new  AliHLTCaloUtilities(); 
-}
-
-
-AliHLTCaloRawAnalyzer::~AliHLTCaloRawAnalyzer()
-{
-  delete  fUtilitiesPtr;
-}
-
-
-void 
-AliHLTCaloRawAnalyzer::SetCorrectBaselineUsingFirstFiveSamples()
-{
-  fDoCorrectBaselineUsingFirstFiveSamples = true;
-}
-
-void 
-AliHLTCaloRawAnalyzer::CorrectBaselineUsingFirstFiveSamples(UShort_t *data, const int length)
-{
-  UShort_t sumOfFirstFiveSamples = 0;
-  for(int i=0; i< 5; i++)
-    {
-      sumOfFirstFiveSamples += data[i];
-    }
-  UShort_t valueToSubtract = sumOfFirstFiveSamples/5;
-  for(int j = 0; j < length; j++)
-    {
-      if( ( data[j] - valueToSubtract) > 0)
-       {
-         data[j] = data[j] - valueToSubtract;
-       }
-      else
-       {
-         data[j] = 0;
-       }
-    }
-}
-
-
-void
-AliHLTCaloRawAnalyzer::SetData(const UShort_t *data, const int length) 
-{
-  fShortDataPtr = const_cast<UShort_t *>(data);
-  if(fDoCorrectBaselineUsingFirstFiveSamples == true)
-     {
-       CorrectBaselineUsingFirstFiveSamples( fShortDataPtr, length );
-     }
- }
-
-
-
-
diff --git a/HLT/CALO/AliHLTCaloRawAnalyzer.h b/HLT/CALO/AliHLTCaloRawAnalyzer.h
deleted file mode 100644 (file)
index d1c5acc..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-//-*- Mode: C++ -*-
-#ifndef ALIHLTCALORAWANALYZER_H
-#define ALIHLTCALORAWANALYZER_H
-/* Copyright(c) 1998-2004, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id: AliHLTCALORawAnalyzer.h 34264 2009-08-14 18:29:23Z odjuvsla $ */
-
-#include "Rtypes.h"
-class AliHLTCaloUtilities;
-
-class AliHLTCaloRawAnalyzer
-{
- public:
-  AliHLTCaloRawAnalyzer();
-  virtual ~AliHLTCaloRawAnalyzer();
-  void SetCorrectBaselineUsingFirstFiveSamples();
-  void CorrectBaselineUsingFirstFiveSamples(UShort_t *data, const int length);
-  inline float GetTiming() const {  return fDTof;};
-  inline float GetEnergy() const { return fDAmpl;};
-  void SetData(const UShort_t *data, const int length);
-  virtual void Evaluate(Int_t start = 0, Int_t lenght = 100) = 0;
-
- protected:
-  bool fDoCorrectBaselineUsingFirstFiveSamples;
-  UShort_t   *fShortDataPtr;     /**<data that should be fitted */
-  double     fSampleFrequency; /**<The ADC sample frequency in MHz used under data taking */
-  double     fTau;            /**<The risetime in micro seconds*/               
-  double     fDTof;            /**<Time of flight in entities of sample intervals */
-  double     fDAmpl;           /**<Amplitude in entities of ADC levels*/
-
- protected:
-  AliHLTCaloUtilities *fUtilitiesPtr;
-
- private:
-  AliHLTCaloRawAnalyzer(const AliHLTCaloRawAnalyzer & );
-  AliHLTCaloRawAnalyzer & operator = (const AliHLTCaloRawAnalyzer &);
-};
-
-
-#endif