]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
propagating patches from the online system
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 Oct 2011 07:56:12 +0000 (07:56 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 Oct 2011 07:56:12 +0000 (07:56 +0000)
- initialization of AliTPCcalibDB
  patch https://savannah.cern.ch/patch/?5039#comment3
  bug https://savannah.cern.ch/bugs/?86155

- eliminating debug messages and correcting data oigin
  patch https://savannah.cern.ch/patch/?5039#comment4

HLT/TPCLib/AliHLTTPCdEdxComponent.cxx
HLT/TPCLib/AliHLTTPCdEdxMonitoringComponent.cxx

index 8937e4f6462c50d8fbe021f0bc9e81ec4b8f27b8..e931b6ac1d28a6697c3f4d32c7920d52631badb5 100644 (file)
@@ -45,7 +45,9 @@
 #include "AliTPCseed.h"
 #include "AliTPCclusterMI.h"
 #include "TGeoGlobalMagField.h"
-
+#include "AliTPCcalibDB.h"
+#include "AliTPCRecoParam.h"
+#include "AliTPCTransform.h"
 
 /** ROOT macro for the implementation of ROOT specific class methods */
 ClassImp( AliHLTTPCdEdxComponent )
@@ -276,7 +278,14 @@ int AliHLTTPCdEdxComponent::DoInit( int argc, const char** argv )
     HLTError("magnetic field not initialized, please set up TGeoGlobalMagField and AliMagF");
     return -ENODEV;
   }
-  
+
+  AliTPCcalibDB::Instance()->SetRun(GetRunNo());
+  AliTPCcalibDB::Instance()->UpdateRunInformations(GetRunNo());
+
+  AliTPCcalibDB::Instance()->GetTransform()->SetCurrentRun(GetRunNo());
+  AliTPCcalibDB::Instance()->GetTransform()->SetCurrentTimeStamp( GetTimeStamp() );
+  AliTPCcalibDB::Instance()->GetTransform()->SetCurrentRecoParam(AliTPCRecoParam::GetHLTParam());
+
   //AliTPCTransform *transform = AliTPCcalibDB::Instance()->GetTransform();
   //if( transform ){
   //AliTPCRecoParam *reco = transform->GetCurrentRecoParam();
index 334197367ccfa40c3e313e0d3343a53186ae198e..50d3a6570aac90ba9249337632dfc3cab435eabc 100644 (file)
@@ -205,12 +205,9 @@ Int_t AliHLTTPCdEdxMonitoringComponent::DoEvent(const AliHLTComponentEventData&
   // support this and we need the const_cast
   AliESDEvent* esd = dynamic_cast<AliESDEvent*>(const_cast<TObject*>(obj));
   if (esd != NULL) {
-    AliInfoClass(Form("==================== event %3d ================================", GetEventCount()));
     esd->GetStdContent();
     for (Int_t i = 0; i < esd->GetNumberOfTracks(); i++) {
       AliESDtrack* track = esd->GetTrack(i);
-      AliInfoClass(Form("-------------------- track %3d --------------------------------", i));
-      track->Print("");
       sig=track->GetTPCsignal();
       if(!fESDTrackCuts->AcceptTrack(track)) continue;
       if (!track->GetInnerParam()) continue;
@@ -219,7 +216,7 @@ Int_t AliHLTTPCdEdxMonitoringComponent::DoEvent(const AliHLTComponentEventData&
     }
   }
   // publish the histogram
-  PushBack(dynamic_cast<TObject*>(fHist), kAliHLTDataTypeHistogram);
+  PushBack(fHist, kAliHLTDataTypeHistogram | kAliHLTDataOriginHLT);
 
   return 0;
 }