]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/PHOS/AliHLTPHOSDataCorruptor.cxx
Warning removal (Marian)
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSDataCorruptor.cxx
index 8de7a66bbf00fad2f552ad723ea84fe93732ed28..29ccf25f335218169dfb33c4ec18adcbb0fd975d 100644 (file)
@@ -1,8 +1,23 @@
+// $Id$
+
+/**************************************************************************
+ * This file is property of and copyright by the ALICE HLT Project        * 
+ * All rights reserved.                                                   *
+ *                                                                        *
+ * Primary Author:  Per Thomas Hille  <perthi@fys.uio.no>                 *
+ *                                                                        *
+ * 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 "AliHLTPHOSDataCorruptor.h"
 #include "AliHLTPHOSPulseGenerator.h"
-
 #include "TRandom.h"
-
 #include <iostream>
 
 using namespace std;
@@ -10,7 +25,6 @@ using namespace std;
 
 AliHLTPHOSDataCorruptor::AliHLTPHOSDataCorruptor():fPulseGeneratorPtr(0), fRandomGeneratorPtr(0)
 {
-  cout << " AliHLTPHOSDataCorruptor::AliHLTPHOSDataCorruptor()  creating new datacorruptor" << endl;
   fPulseGeneratorPtr = new AliHLTPHOSPulseGenerator(100, 0, 300, 2, 10);
   fRandomGeneratorPtr = new TRandom();
 }
@@ -36,7 +50,7 @@ AliHLTPHOSDataCorruptor::~AliHLTPHOSDataCorruptor()
  * @param N  the number of samples in the array
  */
 void
-AliHLTPHOSDataCorruptor::MakeCorruptedData(Double_t *dataArray, int N)
+AliHLTPHOSDataCorruptor::MakeCorruptedData(Double_t * /*dataArray*/, int /*N*/)
 {
   
 
@@ -46,8 +60,6 @@ AliHLTPHOSDataCorruptor::MakeCorruptedData(Double_t *dataArray, int N)
 void
 AliHLTPHOSDataCorruptor::MakeCorruptedDataTest(Double_t *dataArray, int N)
 {
-  //  double testPulse[300];
-  //  dataArray[300];
   int* quantisized = new int[N];
 
   fPulseGeneratorPtr->SetSampleFreq(10);
@@ -55,38 +67,15 @@ AliHLTPHOSDataCorruptor::MakeCorruptedDataTest(Double_t *dataArray, int N)
   fPulseGeneratorPtr->SetTZero(0);
   fPulseGeneratorPtr->MakePulse(dataArray, N);
 
-  cout <<endl <<endl;
-  cout << "AliHLTPHOSDataCorruptor::MakeCorruptedDataTest: printing data array before corruption" <<endl;
 
   for(int i=0; i< N; i++)
     {
-      cout << dataArray[i] <<"\t";
       quantisized[i] = (int)(dataArray[i]);
     }
  
-  cout << endl;
-  cout << "AliHLTPHOSDataCorruptor::MakeCorruptedDataTest: printing data after quantization" <<endl;  
-
-  for(int i=0; i< N; i++)
-    {
-      cout << quantisized[i] <<"\t";
-    }
-  cout << endl;
-
   int bit = fRandomGeneratorPtr->Integer(10); 
-
-  cout << "AliHLTPHOSDataCorruptor::MakeCorruptedDataTest: printing data flipping sample 20, bit " << bit <<endl; 
-  
   FlipBit(&quantisized[10], bit);
 
-  cout << endl;
-
-  for(int i=0; i< N; i++)
-    {
-      cout << quantisized[i] <<"\t";
-    }
-  cout << endl;
-  cout << endl;
   delete [] quantisized;
 }
 
@@ -102,11 +91,6 @@ AliHLTPHOSDataCorruptor::MakeCorruptedDataTest(Double_t *dataArray, int N)
 void 
 AliHLTPHOSDataCorruptor::FlipBit(int *sample, int n)
 {
-
   int mask = 1 << n;
-  cout << "n = "<< n <<" mask = " << mask << endl;
-  cout << "before flip"<< *sample << endl;
   *sample = *sample ^ mask;
-  cout <<"after flip" << *sample <<endl;
-
 }