return 0;
}
+AliHLTEventID_t AliHLTComponent::GetEventId() const
+{
+ // see header file for function documentation
+ if (fpInputBlocks!=NULL) {
+ return fCurrentEventData.fEventID;
+ }
+ return 0;
+}
+
const TObject* AliHLTComponent::GetFirstInputObject(const AliHLTComponentDataType& dt,
const char* classname,
int bForce)
// no output blocks, set size to 0
size=0;
}
+ FillEventData(fCurrentEventData);
return iResult;
}
*/
int GetNumberOfInputBlocks() const;
+ /**
+ * Get id of the current event
+ * @return event id
+ */
+ AliHLTEventID_t GetEventId() const;
+
/**
* Get the first object of a specific data type from the input data.
* The hight-level methods provide functionality to transfer ROOT data
* Create the component.
* @param pConf configuration descritption
* @param pCH component handler
+ * @param pComponent [OUT] target to get the component instance
* @return component instance
*/
virtual int CreateComponent(AliHLTConfiguration* pConf, AliHLTComponentHandler* pCH, AliHLTComponent*& pComponent) const;
* @return pointer to system call
* @ingroup alihlt_wrapper_interface
*/
- void* AliHLTAnalysisGetInterfaceCall(const char*);
+ void* AliHLTAnalysisGetInterfaceCall(const char* function);
#ifdef __cplusplus
}
*/
// #################################################################################
-Int_t AliHLTESDMCEventPublisherComponent::DoInit(Int_t argc, const char** argv) {
+Int_t AliHLTESDMCEventPublisherComponent::DoInit(int argc, const char** argv) {
// see header file for class documentation
Int_t iResult = 0;
* -EINVAL unknown argument <br>
* -EPROTO parameter for argument missing <br>
*/
- Int_t DoInit( Int_t argc, const Char_t** argv );
+ Int_t DoInit( int argc, const char** argv );
/**
return 0;
}
-int AliHLTEMCALTrackerComponent::DoEvent( const AliHLTComponentEventData & evtData,
- AliHLTComponentTriggerData & trigData )
+int AliHLTEMCALTrackerComponent::DoEvent( const AliHLTComponentEventData & /*evtData*/,
+ AliHLTComponentTriggerData & /*trigData*/ )
{
//
// see header file for class documentation
// check if the input data are there at all - empty events possible
- HLTDebug("HLT::TRDTracker::DoEvent", "BLOCKS", "NofBlocks %lu", evtData.fBlockCnt );
+ HLTDebug("HLT::TRDTracker::DoEvent", "BLOCKS", "NofBlocks %lu", GetNumberOfInputBlocks() );
//implement a usage of the following
// AliHLTUInt32_t triggerDataStructSize = trigData.fStructSize;
// AliHLTUInt32_t triggerDataSize = trigData.fDataSize;
// void *triggerData = trigData.fData;
- HLTDebug("Struct size %d Data size %d Data location 0x%x", trigData.fStructSize, trigData.fDataSize, (UInt_t*)trigData.fData);
+ //HLTDebug("Struct size %d Data size %d Data location 0x%x", trigData.fStructSize, trigData.fDataSize, (UInt_t*)trigData.fData);
// another way to check the blocks
// AliHLTComponentBlockData *dblock = (AliHLTComponentBlockData *)GetFirstInputBlock( AliHLTEMCALDefinitions::fgkClusterDataType );
void AliHLTTPCCalibTracksComponent::ReadTracks(const AliHLTComponentBlockData *iter, Int_t &tt){
- AliHLTUInt8_t slice = AliHLTTPCDefinitions::GetMinSliceNr( *iter );
- AliHLTUInt8_t patch = AliHLTTPCDefinitions::GetMinPatchNr( *iter );
- HLTDebug("Input Data - TPC cluster - Slice/Patch: %d/%d.", slice, patch);
+ HLTDebug("Input Data - TPC cluster - Slice/Patch: %d/%d.",
+ AliHLTTPCDefinitions::GetMinSliceNr( *iter ),
+ AliHLTTPCDefinitions::GetMinPatchNr( *iter ));
const AliHLTTPCTrackletData *trackData = (const AliHLTTPCTrackletData*)iter->fPtr;
return 0;
}
-int AliHLTTPCClusterDumpComponent::DumpEvent( const AliHLTComponentEventData& evtData,
+int AliHLTTPCClusterDumpComponent::DumpEvent( const AliHLTComponentEventData& /*evtData*/,
const AliHLTComponentBlockData* /*blocks*/,
AliHLTComponentTriggerData& /*trigData*/ )
{
dump.open(fCurrentFileName.Data());
for (pDesc=GetFirstInputBlock(AliHLTTPCDefinitions::fgkClustersDataType); pDesc!=NULL; pDesc=GetNextInputBlock(), blockno++) {
- HLTDebug("event %Lu block %d: %s 0x%08x size %d", evtData.fEventID, blockno, DataType2Text(pDesc->fDataType).c_str(), pDesc->fSpecification, pDesc->fSize);
+ HLTDebug("event %Lu block %d: %s 0x%08x size %d", GetEventId(), blockno, DataType2Text(pDesc->fDataType).c_str(), pDesc->fSpecification, pDesc->fSize);
if(pDesc->fDataType!=AliHLTTPCDefinitions::fgkClustersDataType){continue;}
//fHistSignal = new TH1F("fHistSignal", "signal distribution per pad",1024,0,1024);
//fHistSignal->Reset();
- Int_t time = pDigitReader->GetTime();
+ //Int_t time = pDigitReader->GetTime();
for(Int_t i=0;i<pDigitReader->GetBunchSize();i++){
// see header file for class documentation
constBase = 8+216*4; // Track count + clusters count
inputMultiplier = 4.;
-#warning Adapt input Multiplier to something more realistic
}
// Spawn function, return new instance of this class
*
* Component ID: \b TPCOfflineTrackerCalib <br>
* Library: \b libAliHLTTPC.so <br>
- * Input Data Types: @ref kAliHLTDataTypeAliTObjArray|kAliHLTDataOriginTPC <br>
- * Output Data Types: @ref kAliHLTDataTypeTObjArray|kAliHLTDataOriginTPC <br>
+ * Input Data Types: ::kAliHLTDataTypeTObjArray|::kAliHLTDataOriginTPC <br>
+ * Output Data Types: ::kAliHLTDataTypeTObjArray|::kAliHLTDataOriginTPC <br>
*
* <h2>Mandatory arguments:</h2>
* <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
*
* Component ID: \b TPCOfflineTracker <br>
* Library: \b libAliHLTTPC.so <br>
- * Input Data Types: @ref kAliHLTDataTypeAliTObjArray|kAliHLTDataOriginTPC <br>
- * Output Data Types: @ref kAliHLTDataTypeESDTree|kAliHLTDataOriginTPC <br>
+ * Input Data Types: ::kAliHLTDataTypeTObjArray|::kAliHLTDataOriginTPC <br>
+ * Output Data Types: ::kAliHLTDataTypeESDTree|::kAliHLTDataOriginTPC <br>
*
* <h2>Mandatory arguments:</h2>
* <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
for( Int_t itr=0; itr<slice.NOutTracks(); itr++ ){
if( fSliceTrackInfos[iSlice][itr].fUsed ) continue;
//cout<<"\n slice "<<iSlice<<", track "<<itr<<"\n"<<endl;
- AliHLTTPCCAOutTrack &tCA = slice.OutTracks()[itr];
+ //AliHLTTPCCAOutTrack &tCA = slice.OutTracks()[itr];
AliHLTTPCCAGBTrack &t = fTracks[fNTracks];
//t.Param() = tCA.StartPoint();
//t.Alpha() = slice.Param().Alpha();
AliHLTTRDCalibrationComponent::AliHLTTRDCalibrationComponent()
: AliHLTCalibrationProcessor()
+ , fTRDCalibraFillHisto(NULL)
, fOutputPercentage(100) // By default we copy to the output exactly what we got as input
, fStrorageDBpath("local://$ALICE_ROOT")
, fCDB(NULL)
// Deinitialization of the component
// gain histo
- TH2I *hCH2d = fTRDCalibraFillHisto->GetCH2d();
+ //TH2I *hCH2d = fTRDCalibraFillHisto->GetCH2d();
// drift velocity histo
- TProfile2D *hPH2d = fTRDCalibraFillHisto->GetPH2d();
+ //TProfile2D *hPH2d = fTRDCalibraFillHisto->GetPH2d();
// PRF histo
- TProfile2D *hPRF2d = fTRDCalibraFillHisto->GetPRF2d();
+ //TProfile2D *hPRF2d = fTRDCalibraFillHisto->GetPRF2d();
if (fCDB)
{
, fRecoParam(NULL)
, fCDB(NULL)
, fMemReader(NULL)
+ , fReconstructor(NULL)
, fGeometryFileName("")
, fGeometryFile(NULL)
- , fReconstructor(NULL)
{
// Default constructor
return 0;
}
-int AliHLTTRDTrackerComponent::DoEvent( const AliHLTComponentEventData & evtData,
- AliHLTComponentTriggerData & trigData )
+int AliHLTTRDTrackerComponent::DoEvent( const AliHLTComponentEventData & /*evtData*/,
+ AliHLTComponentTriggerData & /*trigData*/ )
{
// Process an event
HLTInfo("Output percentage set to %lu %%", fOutputPercentage );
- HLTInfo("NofBlocks %lu", evtData.fBlockCnt );
+ HLTInfo("NofBlocks %lu", GetNumberOfInputBlocks() );
AliHLTUInt32_t dBlockSpecification = 0;
// AliHLTUInt32_t triggerDataStructSize = trigData.fStructSize;
// AliHLTUInt32_t triggerDataSize = trigData.fDataSize;
// void *triggerData = trigData.fData;
- HLTDebug("Struct size %d Data size %d Data location 0x%x", trigData.fStructSize, trigData.fDataSize, (UInt_t*)trigData.fData);
+ //HLTDebug("Struct size %d Data size %d Data location 0x%x", trigData.fStructSize, trigData.fDataSize, (UInt_t*)trigData.fData);
AliHLTComponentBlockData *dblock = (AliHLTComponentBlockData *)GetFirstInputBlock( AliHLTTRDDefinitions::fgkClusterDataType );
if (dblock != 0)
, fField(NULL)
, fGeometryFileName("")
, fGeometryFile(NULL)
+ , fGeoManager(NULL)
, fTracker(NULL)
, fRecoParam(NULL)
+ , fReconstructor(NULL)
{
// Default constructor
return 0;
}
-int AliHLTTRDTrackerV1Component::DoEvent( const AliHLTComponentEventData & evtData,
- AliHLTComponentTriggerData & trigData )
+int AliHLTTRDTrackerV1Component::DoEvent( const AliHLTComponentEventData & /*evtData*/,
+ AliHLTComponentTriggerData & /*trigData*/ )
{
// Process an event
Bool_t bWriteClusters = fReconstructor->IsWritingClusters();
HLTDebug("Output percentage set to %lu %%", fOutputPercentage );
- HLTDebug("NofBlocks %lu", evtData.fBlockCnt );
+ HLTDebug("NofBlocks %lu", GetNumberOfInputBlocks() );
AliHLTUInt32_t dBlockSpecification = 0;
// AliHLTUInt32_t triggerDataStructSize = trigData.fStructSize;
// AliHLTUInt32_t triggerDataSize = trigData.fDataSize;
// void *triggerData = trigData.fData;
- HLTDebug("Struct size %d Data size %d Data location 0x%x", trigData.fStructSize, trigData.fDataSize, (UInt_t*)trigData.fData);
+ //HLTDebug("Struct size %d Data size %d Data location 0x%x", trigData.fStructSize, trigData.fDataSize, (UInt_t*)trigData.fData);
AliHLTComponentBlockData *dblock = (AliHLTComponentBlockData *)GetFirstInputBlock( AliHLTTRDDefinitions::fgkClusterDataType );
if (dblock != 0)
{
AliHLTComponentDataType inputDataType = dblock->fDataType;
HLTDebug( "Event 0x%08LX (%Lu) received datatype: %s",
- evtData.fEventID, evtData.fEventID,
+ GetEventId(), GetEventId(),
DataType2Text(inputDataType).c_str());
dBlockSpecification = dblock->fSpecification;
}
HLTDebug("TClonesArray of clusters: nbEntries = %i", clusterArray->GetEntriesFast());
Int_t nb = clusterArray->GetEntriesFast();
for (Int_t i=0; i<nb; i++){
- AliTRDcluster * cluster = (AliTRDcluster* ) clusterArray->At(i);
+ //AliTRDcluster * cluster = (AliTRDcluster* ) clusterArray->At(i);
//HLTDebug("Cluster[%i]: detector %i", i, cluster->GetDetector());
}
AC_MSG_CHECKING(for version of AliExternalTrackParam)
AC_MSG_RESULT($externaltrackparam_version)
+ dnl The AliShuttleInterface was changed in rev 29388. Some return types
+ dnl had been const, now changed according to gcc 4.3 warnings
+ AC_MSG_CHECKING(for version of AliShuttleInterface.h)
+ CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/"
+ LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
+ LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALITPC_LIBS"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliShuttleInterface.h>],
+ [class dummy : public AliShuttleInterface {
+ public:
+ const UInt_t GetStartTimeDCSQuery() {;}
+ };])],
+ [AC_DEFINE(SHUTTLE_PRE_REV29388_INTERFACE)
+ alishuttleinterface_version=pre.rev.29388],
+ [alishuttleinterface_version=up.to.date])
+ AC_MSG_RESULT([$alishuttleinterface_version])
+
CPPFLAGS=$save_CPPFLAGS
LDFLAGS=$save_LDFLAGS
LIBS=$save_LIBS
}
-UInt_t AliHLTPendolino::GetStartTimeDCSQuery() {
+CONST_PROPERTY UInt_t AliHLTPendolino::GetStartTimeDCSQuery() {
return fStartTime;
}
-UInt_t AliHLTPendolino::GetEndTimeDCSQuery() {
+CONST_PROPERTY UInt_t AliHLTPendolino::GetEndTimeDCSQuery() {
return fEndTime;
}
//#include "AliHLTPredictionProcessorInterface.h"
+#ifdef SHUTTLE_PRE_REV29388_INTERFACE
+#define CONST_PROPERTY const
+#else
+#define CONST_PROPERTY
+#endif
class AliHLTPendolinoLogger;
* implementation in the Offline Shuttle - there the initial start time
* is set to the start-of-data for the complete run.)
*/
- virtual UInt_t GetStartTimeDCSQuery();
+ virtual CONST_PROPERTY UInt_t GetStartTimeDCSQuery();
/**
* Function to get the end time of the DCS Archive DB request; in HLT
* implementation in the Offline Shuttle - there the initial end time
* is set to the end-of-data for the complete run.)
*/
- virtual UInt_t GetEndTimeDCSQuery();
+ virtual CONST_PROPERTY UInt_t GetEndTimeDCSQuery();
protected:
}
-void AliHLTPendolinoLoggerDump::log(const char* detector, const char* msg) {
+void AliHLTPendolinoLoggerDump::log(const char* /*detector*/, const char* /*msg*/) {
// log function dump
}
return kFALSE;
}
-TMap* AliHLTPredictionProcessorHLT::produceTestData(TString aliasName) {
+TMap* AliHLTPredictionProcessorHLT::produceTestData(TString /*aliasName*/) {
// produces test data for AliHLTPredictionProcessorHLT
TMap* resultMap = 0;