#include "AliHLTExternalTrackParam.h"
#include "AliHLTTrackMCLabel.h"
#include "AliHLTCTPData.h"
+#include "AliHLTErrorGuard.h"
#include "AliESDEvent.h"
#include "AliESDtrack.h"
#include "AliESDMuonTrack.h"
#include "AliHLTCaloClusterDataStruct.h"
#include "AliHLTCaloClusterReader.h"
#include "AliESDCaloCluster.h"
+#include "AliESDVZERO.h"
#include "AliHLTGlobalVertexerComponent.h"
/** ROOT macro for the implementation of ROOT specific class methods */
list.push_back(kAliHLTDataTypeESDObject);
list.push_back(kAliHLTDataTypeTObject);
list.push_back(kAliHLTDataTypeGlobalVertexer);
+ list.push_back(kAliHLTDataTypeESDContent);
}
AliHLTComponentDataType AliHLTGlobalEsdConverterComponent::GetOutputDataType()
// TODO 2010-07-12 find out if the kITSrefit has to be set as well
// 4) extract TRD tracks and add to ESD
// TODO 2010-07-12 at the moment there is no matching or merging of TPC and TRD tracks
+ // 5) Add Trigger Detectors
+ // VZERO, ZDC
// 1) first read MC information (if present)
std::map<int,int> mcLabelsTPC;
iAddedDataBlocks++;
}
+ // 5) Add Trigger Detectors
+ // VZERO, ZDC
+
+ // FIXME: the size of all input blocks can be added in one loop
+ for (const AliHLTComponentBlockData* pBlock=GetFirstInputBlock(kAliHLTDataTypeESDContent|kAliHLTDataOriginVZERO);
+ pBlock!=NULL; pBlock=GetNextInputBlock()) {
+ fBenchmark.AddInput(pBlock->fSize);
+ }
+
+ for ( const TObject *pObject = GetFirstInputObject(kAliHLTDataTypeESDContent|kAliHLTDataOriginVZERO);
+ pObject != NULL; pObject = GetNextInputObject() ) {
+ AliESDVZERO *esdVZERO = dynamic_cast<AliESDVZERO*>(const_cast<TObject*>( pObject ) );
+ if (esdVZERO) {
+ pESD->SetVZEROData( esdVZERO );
+ break;
+ } else {
+ ALIHLTERRORGUARD(1, "input object of data type %s is not of class AliESDVZERO",
+ DataType2Text(kAliHLTDataTypeESDContent|kAliHLTDataOriginVZERO).c_str());
+ }
+ }
+
// Add tracks from MUON.
for( const AliHLTComponentBlockData *i= GetFirstInputBlock(kAliHLTAnyDataType | kAliHLTDataOriginMUON); i!=NULL; i=GetNextInputBlock() ){
fBenchmark.AddInput(i->fSize);