Fix compilation problems in DAs
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 3 Feb 2010 14:33:27 +0000 (14:33 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 3 Feb 2010 14:33:27 +0000 (14:33 +0000)
TRD/AliTRDCalibPadStatus.cxx
TRD/AliTRDCalibraFillHisto.cxx
TRD/TRDPEDESTALda.cxx
TRD/TRDVDRIFTda.cxx

index 2e2cc14..d4bec83 100644 (file)
@@ -459,6 +459,7 @@ Int_t AliTRDCalibPadStatus::ProcessEvent2(AliRawReader *rawReader)
   Int_t withInput = 1;
 
   AliTRDrawFastStream *rawStream = new AliTRDrawFastStream(rawReader);
+  rawStream->SetNoErrorWarning();
   rawStream->SetSharedPadReadout(kTRUE);
 
   AliTRDdigitsManager *digitsManager = new AliTRDdigitsManager(kTRUE);
@@ -1074,4 +1075,3 @@ Int_t AliTRDCalibPadStatus::GetSector(Int_t d) const
 
 }
 
-
index 7f4c352..194f468 100644 (file)
@@ -381,6 +381,9 @@ Bool_t AliTRDCalibraFillHisto::Init2Dhistos(Int_t nboftimebin)
   if(nboftimebin > 0) fTimeMax = nboftimebin;
   else fTimeMax = cal->GetNumberOfTimeBinsDCS();
   if(fTimeMax <= 0) fTimeMax = 30;
+  printf("////////////////////////////////////////////\n");
+  printf("Number of time bins in calibration component %d\n",fTimeMax);
+  printf("////////////////////////////////////////////\n");
   fSf                 = parCom->GetSamplingFrequency();
   if(!fNormalizeNbOfCluster) fRelativeScale = 20.0;
   else fRelativeScale = 1.18;
@@ -1933,10 +1936,15 @@ void AliTRDCalibraFillHisto::StoreInfoCHPHtrack(const AliTRDcluster *cl,const Do
   // cls is shared cluster if any
   //
   
+  //printf("StoreInfoCHPHtrack\n");
+
   // time bin of the cluster not corrected
   Int_t    time     = cl->GetPadTime();
   Float_t  charge   = TMath::Abs(cl->GetQ());  
-  if(cls) charge += TMath::Abs(cls->GetQ());
+  if(cls) {
+    charge += TMath::Abs(cls->GetQ());
+    //printf("AliTRDCalibraFillHisto::Add the cluster charge");
+  }
 
   //printf("Store::time %d, amplitude %f\n",time,dqdl);
   
@@ -2553,6 +2561,7 @@ Int_t AliTRDCalibraFillHisto::ProcessEventDAQ2(AliRawReader *rawReader)
 
    //  AliTRDrawFastStream *rawStream = AliTRDrawFastStream::GetRawStream(rawReader);
   AliTRDrawFastStream *rawStream = new AliTRDrawFastStream(rawReader);
+  rawStream->SetNoErrorWarning();
   rawStream->SetSharedPadReadout(kFALSE);
 
   AliTRDdigitsManager *digitsManager = new AliTRDdigitsManager(kTRUE);
index ddac68d..23cd640 100644 (file)
@@ -36,7 +36,7 @@ extern "C" {
 //
 #include "AliRawReader.h"
 #include "AliRawReaderDate.h"
-#include "AliTRDrawStream.h"
+#include "AliTRDrawFastStream.h"
 #include "AliTRDrawStreamBase.h"
 #include "AliCDBManager.h"
 
@@ -102,18 +102,8 @@ int main(int argc, char **argv) {
   //unsigned long32 runNb=0;      //run number
 
   // setting
-  // AliTRDrawStream::SetNoDebug();
-  AliTRDrawStream::DisableSkipData();
-  AliTRDrawStream::SetNoErrorWarning();
-  //AliTRDrawStream::SetForceCleanDataOnly();
-  //AliTRDrawStream::AllowCorruptedData();
-  //AliTRDrawStream::DisableStackNumberChecker();
-  //AliTRDrawStream::DisableStackLinkNumberChecker();
-  //AliTRDrawStream::SetSkipCDH();
-  //AliTRDrawStream::SetExtraWordsFix();
-  //AliTRDrawStream::EnableDebugStream();
-  //AliTRDrawStream::SetDumpHead(320);
-  //AliTRDrawStream::SetDumpHead(80);
+  AliTRDrawFastStream::DisableSkipData();
 
   /* read the data files */
   int n;
@@ -156,7 +146,7 @@ int main(int argc, char **argv) {
        AliRawReader *rawReader = new AliRawReaderDate((void*)event);
        rawReader->Select("TRD");
        
-       Int_t result = calipad.ProcessEvent2((AliTRDrawReader *)rawReader);
+       Int_t result = calipad.ProcessEvent2((AliRawReader *) rawReader);
        // 0 error, 1 no input, 2 output
        if(result == 2) nevents++;
        if(result == 0) passpadstatus = kFALSE;
index b7dd726..788f056 100644 (file)
@@ -42,7 +42,7 @@ extern "C" {
 //
 #include "AliRawReader.h"
 #include "AliRawReaderDate.h"
-#include "AliTRDrawStream.h"
+#include "AliTRDrawFastStream.h"
 #include "AliTRDrawStreamBase.h"
 
 //
@@ -109,7 +109,7 @@ int main(int argc, char **argv) {
   int nevents_total=0;
   //unsigned long32 runNb=0;      //run number
 
-  //Instance of AliCDBManager: needed by AliTRDrawStream
+  //Instance of AliCDBManager: needed by AliTRDrawFastStream
   //AliCDBManager *man = AliCDBManager::Instance();
   //man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
   //man->SetRun(0);
@@ -122,20 +122,8 @@ int main(int argc, char **argv) {
   Int_t  nbvdrift    = 0;     // number of events with entries for vdrift
 
    // setting
-  // AliTRDrawStream::SetNoDebug();
-  AliTRDrawStream::DisableSkipData();
-  AliTRDrawStream::SetNoErrorWarning();
-  //AliTRDrawStream::SetForceCleanDataOnly();
-  //AliTRDrawStream::AllowCorruptedData();
-  //AliTRDrawStream::DisableStackNumberChecker();
-  //AliTRDrawStream::DisableStackLinkNumberChecker();
-  //AliTRDrawStream::SetSkipCDH();
-  //AliTRDrawStream::SetExtraWordsFix();
-  //AliTRDrawStream::EnableDebugStream();
-  //AliTRDrawStream::SetDumpHead(320);
-  //AliTRDrawStream::SetDumpHead(80);
-
-  
+  AliTRDrawFastStream::DisableSkipData();
+    
   /* main loop (infinite) */
   for(;;) {
   //for(Int_t k = 0; k < 20; k++) {
@@ -177,7 +165,7 @@ int main(int argc, char **argv) {
       AliRawReader *rawReader = new AliRawReaderDate((void*)event);
       rawReader->Select("TRD");
 
-      Int_t result = calibra->ProcessEventDAQ2((AliTRDrawReader *) rawReader);
+      Int_t result = calibra->ProcessEventDAQ2((AliRawReader *)rawReader);
       if(!result) passvdrift = kFALSE;
       else nbvdrift += (Int_t) result/2;
              
@@ -239,24 +227,22 @@ int main(int argc, char **argv) {
   delete fileTRD;  
 
   return status;
-
-  /*
-    void SendToAmoreDB(TObject *o)
-    {
-    //AMORE
-    const char *amoreDANameorig=gSystem->Getenv("AMORE_DA_NAME");
-    gSystem->Setenv("AMORE_DA_NAME","TRD-dataQA");
-    
-    amore::da::AmoreDA amoreDA(amore::da::AmoreDA::kSender);
-    Int_t statusDA=0;
-    statusDA+=amoreDA.Send("DataQA-VDRIFT",o);
-    if ( statusDA!=0 )
-    printf("Waring: Failed to write one of the calib objects to the AMORE database\n");
-    // reset env var
-    if (amoreDANameorig) gSystem->Setenv("AMORE_DA_NAME",amoreDANameorig);
-    } 
-  */
-
 }
 
+/*
+  void SendToAmoreDB(TObject *o)
+  {
+  //AMORE
+  const char *amoreDANameorig=gSystem->Getenv("AMORE_DA_NAME");
+  gSystem->Setenv("AMORE_DA_NAME","TRD-dataQA");
+  
+  amore::da::AmoreDA amoreDA(amore::da::AmoreDA::kSender);
+  Int_t statusDA=0;
+  statusDA+=amoreDA.Send("DataQA-VDRIFT",o);
+  if ( statusDA!=0 )
+  printf("Waring: Failed to write one of the calib objects to the AMORE database\n");
+  // reset env var
+  if (amoreDANameorig) gSystem->Setenv("AMORE_DA_NAME",amoreDANameorig);
+  } 
+*/