]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/PHOS/AliHLTPHOSDataCorruptor.cxx
Script to make defauilt reco param
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSDataCorruptor.cxx
index b54894e919d19e13def05073fc6e94daff37e0d4..29ccf25f335218169dfb33c4ec18adcbb0fd975d 100644 (file)
@@ -1,3 +1,5 @@
+// $Id$
+
 /**************************************************************************
  * This file is property of and copyright by the ALICE HLT Project        * 
  * All rights reserved.                                                   *
@@ -15,9 +17,7 @@
 
 #include "AliHLTPHOSDataCorruptor.h"
 #include "AliHLTPHOSPulseGenerator.h"
-
 #include "TRandom.h"
-
 #include <iostream>
 
 using namespace std;
@@ -25,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();
 }
@@ -61,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);
@@ -70,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;
 }
 
@@ -117,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;
-
 }