Set histo name in CF output according to the data container name (Zaida)
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 23 Jul 2012 13:59:52 +0000 (13:59 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 23 Jul 2012 13:59:52 +0000 (13:59 +0000)
PWGHF/vertexingHF/AliCFTaskVertexingHF.cxx

index 9016c4a..6028937 100644 (file)
@@ -1106,7 +1106,8 @@ void AliCFTaskVertexingHF::UserCreateOutputObjects()
        
        //slot #1
        OpenFile(1);
-       fHistEventsProcessed = new TH1I("CFHFchist0","",1,0,1) ;
+       const char* nameoutput=GetOutputSlot(1)->GetContainer()->GetName();
+       fHistEventsProcessed = new TH1I(nameoutput,"",1,0,1) ;
 
        PostData(1,fHistEventsProcessed) ;
        PostData(2,fCFManager->GetParticleContainer()) ;