changes in benchmarks and Read macro
authorsgweber <steffen.georg.weber@cern.ch>
Thu, 25 Sep 2014 14:01:04 +0000 (16:01 +0200)
committersgweber <steffen.georg.weber@cern.ch>
Thu, 25 Sep 2014 14:01:25 +0000 (16:01 +0200)
HLT/global/AliHLTGlobalEsdConverterComponent.cxx
HLT/global/AliHLTGlobalEsdToFlatConverterComponent.cxx
HLT/global/AliHLTGlobalFlatEsdConverterComponent.cxx
HLT/global/ReadFlatESD.C

index 085df8b..fe1cc92 100644 (file)
@@ -343,7 +343,7 @@ int AliHLTGlobalEsdConverterComponent::DoEvent(const AliHLTComponentEventData& e
   int iResult=0;
 
 
-  AliSysInfo::AddStamp("DoEvent.Start", evtData.fStructSize);
+  AliSysInfo::AddStamp("AliHLTGlobalEsdConverterComponent::DoEvent.Start", evtData.fStructSize);
 
   bool benchmark = true;
 
@@ -430,21 +430,13 @@ int AliHLTGlobalEsdConverterComponent::DoEvent(const AliHLTComponentEventData& e
   
     if(benchmark){
        
-               Int_t nV0s = pESD->GetNumberOfV0s();
-               Int_t nTracks = pESD->GetNumberOfTracks();
-       
        
        Double_t statistics[10]; 
        TString names[10];
        fBenchmark.GetStatisticsData(statistics, names);
-       //  statistics[5] = nTracks;
-       //  statistics[6] = time;
-       //  statistics[7] = nV0s;
-         
-       //  FillBenchmarkHistos( statistics, names);
          fBenchmark.Reset();
   
-       AliSysInfo::AddStamp("DoEvent.Stop", (int)(statistics[1]), (int)(statistics[2]),pESD->GetNumberOfV0s(),pESD->GetNumberOfTracks() );
+       AliSysInfo::AddStamp("AliHLTGlobalEsdConverterComponent::DoEvent.Stop", (int)(statistics[1]), (int)(statistics[2]),pESD->GetNumberOfV0s(),pESD->GetNumberOfTracks() );
   }
   
   for(Int_t i=0; i<fkNPartition; i++){
index c557e1d..59c0ef3 100644 (file)
@@ -35,6 +35,7 @@
 #include "TTree.h"
 #include "AliCDBEntry.h"
 #include "AliCDBManager.h"
+#include "AliSysInfo.h"
 
 using namespace std;
 
@@ -201,7 +202,10 @@ Int_t AliHLTGlobalEsdToFlatConverterComponent::DoEvent(const AliHLTComponentEven
                                                    AliHLTComponentBlockDataList& outputBlocks) {
   // see header file for class documentation
 
-  printf("AliHLTGlobalEsdToFlatConverterComponent::DoEvent\n");
+       
+       
+       
+  AliSysInfo::AddStamp("AliHLTGlobalEsdToFlatConverterComponent::DoEvent.Start");
   Int_t iResult=0;
 
        
@@ -217,25 +221,19 @@ Int_t AliHLTGlobalEsdToFlatConverterComponent::DoEvent(const AliHLTComponentEven
        
        
   for ( const TObject *iter = GetFirstInputObject(kAliHLTDataTypeESDObject | kAliHLTDataOriginOut); iter != NULL; iter = GetNextInputObject() ) {
-    cout<<"Found ESD in esd test component !!!"<<endl;
     esd =dynamic_cast<AliESDEvent*>(const_cast<TObject*>(iter));
     if( esd ){
       esd->GetStdContent();
-      cout<<"N ESD tracks: "<<esd->GetNumberOfTracks()<<endl;
                        iResult=1;
     } else {
-      cout<<"ESD pointer is NULL "<<endl;
     }
   }
 
    for ( const TObject *iter = GetFirstInputObject(kAliHLTDataTypeESDfriendObject | kAliHLTDataOriginOut); iter != NULL; iter = GetNextInputObject() ) {     
      //fBenchmark.AddInput(pBlock->fSize);
-    cout<<"Found ESD friend in esd test component !!!"<<endl;
     const AliESDfriend *esdFriend = dynamic_cast<const AliESDfriend*>(iter);
     if( esdFriend ){
-      cout<<"N friend tracks: "<<esdFriend->GetNumberOfTracks()<<endl;
     } else {
-      cout<<"ESD friend pointer is NULL "<<endl;
     }
   }
            
@@ -268,6 +266,8 @@ Int_t AliHLTGlobalEsdToFlatConverterComponent::DoEvent(const AliHLTComponentEven
        }
  
  
+       
+  AliSysInfo::AddStamp("AliHLTGlobalEsdToFlatConverterComponent::DoEvent.Stop",0, flatEsd->GetSize(),flatEsd->GetNumberOfV0s(),flatEsd->GetNumberOfTracks());
  
  
   return iResult;
index d02ca4a..73157dd 100644 (file)
@@ -65,6 +65,7 @@
 #include "AliHLTTPCDefinitions.h"
 #include "AliHLTTPCClusterMCData.h"
 #include "AliHLTTPCTransform.h"
+#include "AliSysInfo.h"
 
 /** ROOT macro for the implementation of ROOT specific class methods */
 ClassImp(AliHLTGlobalFlatEsdConverterComponent)
@@ -267,7 +268,11 @@ int AliHLTGlobalFlatEsdConverterComponent::DoEvent( const AliHLTComponentEventDa
 {
   // see header file for class documentation
 
+  AliSysInfo::AddStamp("AliHLTGlobalFlatEsdConverterComponent::DoEvent.Start");
+       
+       
   int iResult=0;
+       bool benchmark = true;
 
   if (!IsDataEvent()) return iResult;
 
@@ -638,6 +643,19 @@ int AliHLTGlobalFlatEsdConverterComponent::DoEvent( const AliHLTComponentEventDa
 
     size += outBlock.fSize;
   }
+      if(benchmark){
+       
+       
+       Double_t statistics[10]; 
+       TString names[10];
+       fBenchmark.GetStatisticsData(statistics, names);
+         fBenchmark.Reset();
+  
+       AliSysInfo::AddStamp("AliHLTGlobalFlatEsdConverterComponent::DoEvent.Stop", (int)(statistics[1]), (int)(statistics[2]),flatEsd->GetNumberOfV0s(),flatEsd->GetNumberOfTracks() );
+  }
+  
+  
+  
   fBenchmark.Stop(0);
   HLTWarning( fBenchmark.GetStatistics() );
 
index edef011..66e7283 100644 (file)
@@ -19,6 +19,7 @@
 #include "./AliFlatESDTrack.h"
 #include "./AliFlatTPCCluster.h"
 #include "./AliFlatExternalTrackParam.h"
+#include "./AliFlatESDTrigger.h"
 #include "Riostream.h"
 #endif   
 
@@ -62,7 +63,7 @@ cout<<"vtx SPD: "<<(Bool_t) flatEsd->GetFlatPrimaryVertexSPD()
          <<endl;
 
 // compare tracks
-if(verbose){
+if(verbose){/*
        static const int nExt = 4;
          AliFlatESDTrack *track = const_cast<AliFlatESDTrack*> ( flatEsd->GetTracks() );
          //new (track)AliFlatESDTrack(1);
@@ -96,16 +97,33 @@ cout<<" GetX"<<iExt<<" :"  << (ext[iExt] ? ext[iExt]->GetX(): -9999) <<endl;
        cout<<" 1/pt"<<iExt<<" :"  <<  (ext[iExt] ? ext[iExt]->GetSigned1Pt(): -9999)  <<endl;
                        
 
-}
-
-// read clusters
-
-       
-       
+}      
       track = const_cast<AliFlatESDTrack*> (track->GetNextTrack());
          
          
          }
+         
+*/
+         
+         
+         // compare triggers
+         
+         
+               cout<<"------------------\ntriggers\n------------------\n";
+    AliFlatESDTrigger * trigger =const_cast<AliFlatESDTrigger*>(flatEsd->GetTriggerClasses() ) ;
+    for( Int_t i = 0; i < flatEsd->GetNumberOfTriggerClasses() ; i++ ){
+      cout<<"\nnew trigger\n";
+                       cout<<"AliFlatESDTrigger::GetSize"<<trigger->GetSize()<<endl;
+                       cout<<"AliFlatESDTrigger::GetTriggerIndex"<<trigger->GetTriggerIndex()<<endl;
+                       cout<< "AliFlatESDTrigger::GetTriggerClassName"<<trigger->GetTriggerClassName()<<endl;
+                       
+      trigger= trigger->GetNextTriggerNonConst();
+    }
+         
+         
+
+         
+         
 }
 
   //  Printf("curr: %p \t + %d = %p , diff:%p", curr, flatEsd->GetSize() ,curr+ flatEsd->GetSize(), endBuff-(curr+ flatEsd->GetSize())   );