void SetX(Int_t x) { fX = x; }
void SetZ(Int_t z) { fZ = z; }
void SetGain(Int_t gain) { fGain = gain; }
- void SetEntries(Int_t entries) { fEntries = 0; }
+ void SetEntries(Int_t /*entries*/) { fEntries = 0; } //TODO: should we not set fEntries to entries? is this a bug?
Float_t GetBaseline() { return fBaseline; }
Int_t GetX() { return fX; }
AliHLTPHOSBaselineAnalyzer::AliHLTPHOSBaselineAnalyzer() :
AliHLTPHOSBase(),
fSampleStart(5),
- fMaxSignal(0),
- fMaxCrazyDifference(0),
+ fMaxCrazyDifference(0),
+ fMaxSignal(0),
fTreePtr(0),
fSanityInspector(0)
{
char histName[128];
char histTitle[128];
- for(Int_t x = 0; x < N_XCOLUMNS_MOD; x++)
+ for(UInt_t x = 0; x < N_XCOLUMNS_MOD; x++)
{
- for(Int_t z = 0; z < N_ZROWS_MOD; z++)
+ for(UInt_t z = 0; z < N_ZROWS_MOD; z++)
{
- for(Int_t gain = 0; gain < N_GAINS; gain++)
+ for(UInt_t gain = 0; gain < N_GAINS; gain++)
{
sprintf(histName, "sample_value_channel_x_col_%d_z_row_%d_gain_%d", x, z, gain);
sprintf(histTitle, "Distribution of Sample Values for Channel X: %d - Z: %d - Gain: %d", x, z, gain);
AliHLTPHOSBaselineAnalyzer::CalculateChannelsBaselineRMS()
{
//comment
- for(Int_t x = 0; x < N_XCOLUMNS_MOD; x++)
+ for(UInt_t x = 0; x < N_XCOLUMNS_MOD; x++)
{
- for(Int_t z = 0; z < N_ZROWS_MOD; z++)
+ for(UInt_t z = 0; z < N_ZROWS_MOD; z++)
{
- for(Int_t gain = 0; gain < N_GAINS; gain++)
+ for(UInt_t gain = 0; gain < N_GAINS; gain++)
{
fRMSHistogramPtr->Fill(fChannelHistogramsPtr[x][z][gain]->GetRMS());
if(gain == 1)
AliHLTPHOSBaseline *baseline;
Int_t n = 0;
- for(Int_t x = 0; x < N_XCOLUMNS_MOD; x++)
+ for(UInt_t x = 0; x < N_XCOLUMNS_MOD; x++)
{
- for(Int_t z = 0; z < N_ZROWS_MOD; z++)
+ for(UInt_t z = 0; z < N_ZROWS_MOD; z++)
{
- for(Int_t gain = 0; gain < N_GAINS; gain++)
+ for(UInt_t gain = 0; gain < N_GAINS; gain++)
{
baseline = (AliHLTPHOSBaseline*)fBaselineArrayPtr->New(n);
baseline->SetX(x);
//comment
TFile *file = TFile::Open(filename, "recreate");
- for(Int_t x = 0; x < N_XCOLUMNS_MOD; x++)
+ for(UInt_t x = 0; x < N_XCOLUMNS_MOD; x++)
{
- for(Int_t z = 0; z < N_ZROWS_MOD; z++)
+ for(UInt_t z = 0; z < N_ZROWS_MOD; z++)
{
- for(Int_t gain = 0; gain < N_GAINS; gain++)
+ for(UInt_t gain = 0; gain < N_GAINS; gain++)
{
fChannelHistogramsPtr[x][z][gain]->Write();
}
AliHLTPHOSBaselineAnalyzer::ResetBaselines()
{
//comment
- for(Int_t x = 0; x < N_XCOLUMNS_MOD; x++)
+ for(UInt_t x = 0; x < N_XCOLUMNS_MOD; x++)
{
- for(Int_t z = 0; z < N_ZROWS_MOD; z++)
+ for(UInt_t z = 0; z < N_ZROWS_MOD; z++)
{
- for(Int_t gain = 0; gain < N_GAINS; gain++)
+ for(UInt_t gain = 0; gain < N_GAINS; gain++)
{
fBaselines[x][z][gain] = 0;
}
void
AliHLTPHOSBaselineAnalyzer::ResetAccumulatedBaselines()
{
- for(Int_t x = 0; x < N_XCOLUMNS_MOD; x++)
+ for(UInt_t x = 0; x < N_XCOLUMNS_MOD; x++)
{
- for(Int_t z = 0; z < N_ZROWS_MOD; z++)
+ for(UInt_t z = 0; z < N_ZROWS_MOD; z++)
{
- for(Int_t gain = 0; gain < N_GAINS; gain++)
+ for(UInt_t gain = 0; gain < N_GAINS; gain++)
{
fAccumulatedBaselines[x][z][gain][0] = 0;
fAccumulatedBaselines[x][z][gain][1] = 0;
void
AliHLTPHOSBaselineAnalyzer::SetChannelsHistograms(TH1F *channelLowGainHistArray[N_XCOLUMNS_MOD][N_ZROWS_MOD], TH1F *channelHighGainHistArray[N_XCOLUMNS_MOD][N_ZROWS_MOD])
{
- for(Int_t x = 0; x < N_XCOLUMNS_MOD; x++)
+ for(UInt_t x = 0; x < N_XCOLUMNS_MOD; x++)
{
- for(Int_t z = 0; z < N_ZROWS_MOD; z++)
+ for(UInt_t z = 0; z < N_ZROWS_MOD; z++)
{
- for(Int_t gain = 0; gain < N_GAINS; gain++)
+ for(UInt_t gain = 0; gain < N_GAINS; gain++)
{
fChannelLowGainHistogramsPtr[x][z][gain] = channelLowGainHistArray[x][z][gain];
fChannelHighGainHistogramsPtr[x][z][gain] = channelHighGainHistArray[x][z][gain];
int
AliHLTPHOSBaselineAnalyzerComponent::DoEvent(const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
- AliHLTComponentTriggerData& /*trigData*/, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size,
- std::vector<AliHLTComponentBlockData>& outputBlocks)
+ AliHLTComponentTriggerData& /*trigData*/, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& /*size*/, //TODO: I think that not setting the size explicitly to zero when returning from this method may be a subtle bug in this component. Please check.
+ std::vector<AliHLTComponentBlockData>& /*outputBlocks*/)
{
//Do event
- UInt_t tSize = 0;
- UInt_t offset = 0;
- UInt_t mysize = 0;
- Int_t index = 0;
+ //UInt_t tSize = 0;
+ //UInt_t offset = 0;
+ //UInt_t mysize = 0;
+ //Int_t index = 0;
- Int_t fileCount = 0;
- Int_t digitCount = 0;
- char filename [50];
+ //Int_t fileCount = 0;
+ //Int_t digitCount = 0;
+ //char filename [50];
AliHLTUInt8_t* outBPtr;
fstream runNbFile;
//char dir [10];
- Int_t newRunNb;
+ //Int_t newRunNb;
runNbFile.open("/opt/HLT-public/rundir/runNumber.txt");
runNbFile >> fRunNb;
runNbFile.close();
Float_t tmpBaselines[N_XCOLUMNS_MOD][N_ZROWS_MOD][N_GAINS][2];
- for(Int_t x = 0; x < N_XCOLUMNS_MOD; x++)
+ for(UInt_t x = 0; x < N_XCOLUMNS_MOD; x++)
{
- for(Int_t z = 0; z < N_ZROWS_MOD; z++)
+ for(UInt_t z = 0; z < N_ZROWS_MOD; z++)
{
- for(Int_t gain = 0; gain < N_GAINS; gain++)
+ for(UInt_t gain = 0; gain < N_GAINS; gain++)
{
- for(Int_t d = 0; d < 2; d++)
+ for(UInt_t d = 0; d < 2; d++)
{
tmpBaselines[x][z][gain][d] = 0;
}
Int_t n = 0;
- for(x = 0; x < N_XCOLUMNS_MOD; x++)
+ for(x = 0; x < (Int_t)N_XCOLUMNS_MOD; x++)
{
- for(z = 0; z < N_ZROWS_MOD; z++)
+ for(z = 0; z < (Int_t)N_ZROWS_MOD; z++)
{
- for(gain = 0; gain < N_GAINS; gain++)
+ for(gain = 0; gain < (Int_t)N_GAINS; gain++)
{
baselineObject = (AliHLTPHOSBaseline*)totalBaselineArray->New(n);
baselineObject->SetBaseline(tmpBaselines[x][z][gain][0]);
cout << "Warning! Number of entries for x: " << x << " - z: " << z << " - gain: " << gain << " = "
<< tmpBaselines[x][z][gain][1] << endl;
}
- baselineObject->SetEntries(tmpBaselines[x][z][gain][1]);
+ baselineObject->SetEntries( Int_t(tmpBaselines[x][z][gain][1]) );
n++;
}
}
AliHLTComponent* Spawn();
protected:
+ using AliHLTPHOSProcessor::DoEvent;
int DoInit(int argc, const char** argv);
virtual int Deinit(); ////////// PTH WARNING you should Define a class AliHLTPHOSModuleProcessor
fHistLowRatioPtr = new TH2F("lowoutofsync", "Low gain channel count divided by number of events",
64, 0, 63, 56, 0, 56);
- for(Int_t x = 0; x < N_XCOLUMNS_MOD; x++)
+ for(UInt_t x = 0; x < N_XCOLUMNS_MOD; x++)
{
- for(Int_t z = 0; z < N_ZROWS_MOD; z++)
+ for(UInt_t z = 0; z < N_ZROWS_MOD; z++)
{
- for(Int_t gain = 0; gain < 2; gain++)
+ for(UInt_t gain = 0; gain < 2; gain++)
{
fChannelArrayPtr[x][z][gain] = 0;
}
{
//comment
Int_t tmp[N_XCOLUMNS_MOD][N_ZROWS_MOD][N_GAINS];
- for(Int_t x = 0; x < N_XCOLUMNS_MOD; x++)
+ for(UInt_t x = 0; x < N_XCOLUMNS_MOD; x++)
{
- for(Int_t z = 0; z < N_ZROWS_MOD; z++)
+ for(UInt_t z = 0; z < N_ZROWS_MOD; z++)
{
- for(Int_t gain = 0; gain < 2; gain++)
+ for(UInt_t gain = 0; gain < 2; gain++)
{
tmp[x][z][gain] = 0;
}
[validDataPtr->fZ + channelDataPtr->fRcuZ*N_ZROWS_RCU]
[validDataPtr->fGain]++;
}
- for(Int_t x = 0; x < N_XCOLUMNS_MOD; x++)
+ for(UInt_t x = 0; x < N_XCOLUMNS_MOD; x++)
{
- for(Int_t z = 0; z < N_ZROWS_MOD; z++)
+ for(UInt_t z = 0; z < N_ZROWS_MOD; z++)
{
- for(Int_t gain = 0; gain < N_ZROWS_MOD; gain++)
+ for(UInt_t gain = 0; gain < N_ZROWS_MOD; gain++)
{
if(tmp[x][z][gain] > 1)
fChannelArrayPtr[x][z][gain] = fChannelArrayPtr[x][z][gain] + 1;
{
//comment
printf("After %d events:\n", nEvents);
- for(Int_t x = 0; x < N_XCOLUMNS_MOD; x++)
- //for(Int_t x = 0; x < 63; x++)
+ for(UInt_t x = 0; x < N_XCOLUMNS_MOD; x++)
+ //for(UInt_t x = 0; x < 63; x++)
{
- for(Int_t z = 0; z < N_ZROWS_MOD; z++)
- //for(Int_t z = 0; z < 55; z++)
+ for(UInt_t z = 0; z < N_ZROWS_MOD; z++)
+ //for(UInt_t z = 0; z < 55; z++)
{
- for(Int_t gain = 0; gain < N_GAINS; gain++)
- //for(Int_t gain = 0; gain < 2; gain++)
+ for(UInt_t gain = 0; gain < N_GAINS; gain++)
+ //for(UInt_t gain = 0; gain < 2; gain++)
{
printf("x = %d -- z = %d -- gain = %d: %d\n", x, z, gain, (fChannelArrayPtr[x][z][gain]));
}
for(Int_t gain = 0; gain < 2; gain++)
{
- if(gain = 0)
+ if(gain == 0) //TODO: this line was "if(gain = 0)" I presume that was a bug. Please check.
{
fHistHighGainPtr->SetBinContent(x, z, fChannelArrayPtr[x][z][gain]);
fHistHighRatioPtr->SetBinContent(x, z, fChannelArrayPtr[x][z][gain]/(float)nEvents);
* This file is property of and copyright by the ALICE HLT Project *
* All rights reserved. *
* *
- * Primary Authors: Oystein Djuvsland *
+ * Primary Authors: Oystein Djuvsland *
* *
* Permission to use, copy, modify and distribute this software and its *
* documentation strictly for non-commercial purposes is hereby granted *
}//end
-AliHLTPHOSClusterizer::AliHLTPHOSClusterizer(const AliHLTPHOSClusterizer &)
+AliHLTPHOSClusterizer::AliHLTPHOSClusterizer(const AliHLTPHOSClusterizer &) : AliHLTPHOSBase()
{
//Copy constructor, not implemented
}//end
// Calculates the center of gravity in the local PHOS-module coordinates
Float_t wtot = 0.;
- Int_t relid[4];
+ //Int_t relid[4];
Float_t x = 0.;
Float_t z = 0.;
AliHLTPHOSRecPointDataStruct *recPoint = 0;
AliHLTPHOSDigitDataStruct *digit = 0;
- AliPHOSGeometry * phosgeom = AliPHOSGeometry::GetInstance() ;
+ //AliPHOSGeometry * phosgeom = AliPHOSGeometry::GetInstance() ;
- Int_t iDigit = 0;
- Int_t iRecPoint = 0;
+ UInt_t iDigit = 0;
+ UInt_t iRecPoint = 0;
for(iRecPoint=0; iRecPoint<fRecPointContainerPtr->fNRecPoints; iRecPoint++)
{
* This file is property of and copyright by the ALICE HLT Project *
* All rights reserved. *
* *
- * Primary Authors: Oystein Djuvsland *
+ * Primary Authors: Oystein Djuvsland *
* *
* Permission to use, copy, modify and distribute this software and its *
* documentation strictly for non-commercial purposes is hereby granted *
#include "AliHLTPHOSBase.h"
#include "AliPHOSGetter.h"
-#include "AliHLTPHOSRecPointContainerStruct.h";
-#include "AliHLTPHOSRecPointDataStruct.h";
-#include "AliHLTPHOSDigitContainerDataStruct.h";
-#include "AliHLTPHOSDigitDataStruct.h";
+#include "AliHLTPHOSRecPointContainerStruct.h"
+#include "AliHLTPHOSRecPointDataStruct.h"
+#include "AliHLTPHOSDigitContainerDataStruct.h"
+#include "AliHLTPHOSDigitDataStruct.h"
-#include "AliPHOSGeometry.h";
+#include "AliPHOSGeometry.h"
class TClonesArray;
class AliPHOSDigit;
UInt_t mysize = 0;
Int_t nRecPoints = 0;
Int_t nDigits = 0;
- Int_t index = 0;
+ //Int_t index = 0;
Int_t j =0;
AliHLTUInt8_t* outBPtr;
// cout << "Warning: data type is not fgkAliHLTDigitDataType " << endl;
continue;
}
- for (Int_t i = 0; i < digitContainerPtr->fNDigits; i++)
+ for (UInt_t i = 0; i < digitContainerPtr->fNDigits; i++)
{
if(fNoCrazyness && digitContainerPtr->fDigitDataStruct[i].fCrazyness)
continue;
protected:
+ using AliHLTPHOSProcessor::DoEvent;
int DoInit(int argc, const char** argv);
virtual int Deinit(); ////////// PTH WARNING you should Define a class AliHLTPHOSModuleProcessor
AliHLTPHOSDDLDecoderComponent::AliHLTPHOSDDLDecoderComponent():AliHLTPHOSRcuProcessor(),
- fOutPtr(0), fDataCorruptorPtr(0), fDecoderPtr(0), fAltroDataPtr(0), fMapperPtr(0)
+ fDataCorruptorPtr(0), fOutPtr(0), fDecoderPtr(0), fAltroDataPtr(0), fMapperPtr(0)
{
//Default constructor
fDataCorruptorPtr = new AliHLTPHOSDataCorruptor();
int
AliHLTPHOSDDLDecoderComponent::DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
- AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr,
+ AliHLTComponentTriggerData& /*trigData*/, AliHLTUInt8_t* outputPtr,
AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks )
{
//comment
cout <<"AliHLTPHOSDDLDecoderComponent::DoEvent()" << endl;
- Int_t sampleCnt = 0;
- Int_t processedChannels = 0;
+ //Int_t sampleCnt = 0;
+ //Int_t processedChannels = 0;
UInt_t offset = 0;
UInt_t mysize = 0;
UInt_t tSize = 0;
fOutPtr->fNValidChannels = tmpChannelCnt-1;
// cout << "AliHLTPHOSDDLDecoderComponent::DoEven: setting fOutPtr->fNValidChannels =" << tmpChannelCnt-1<<endl;
- int tmpSampleCnt=0;
+ //int tmpSampleCnt=0;
AliHLTComponentBlockData bd;
FillBlockData( bd );
bd.fOffset = offset;
AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr,
AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks );
+ protected:
+ using AliHLTPHOSRcuProcessor::DoEvent;
private:
AliHLTPHOSDataCorruptor *fDataCorruptorPtr; /**<Pointer to data corruptor*/
//_________________________________________________________________________________________________
const int
-AliHLTPHOSDDLPackedFileWriter::WriteFile(const AliHLTComponentEventData& evtData,
- const AliHLTComponentBlockData* blocks, AliHLTComponentTriggerData& trigData, int evntCnt) const
+AliHLTPHOSDDLPackedFileWriter::WriteFile(const AliHLTComponentEventData& /*evtData*/,
+ const AliHLTComponentBlockData* /*blocks*/, AliHLTComponentTriggerData& /*trigData*/, int /*evntCnt*/) const
{
return 0;
}
* @param N the number of samples in the array
*/
void
-AliHLTPHOSDataCorruptor::MakeCorruptedData(Double_t *dataArray, int N)
+AliHLTPHOSDataCorruptor::MakeCorruptedData(Double_t * /*dataArray*/, int /*N*/)
{
fDigitPtr(0),
// fDigitStructPtr(0),
fDigitCount(0),
- fDigitThreshold(0),
- fNrPresamples(10)
+ fNrPresamples(10),
+ fDigitThreshold(0)
{
}
UInt_t tSize = 0;
UInt_t offset = 0;
UInt_t mysize = 0;
- Int_t nRecPoints = 0;
- Int_t index = 0;
+ //Int_t nRecPoints = 0;
+ //Int_t index = 0;
- Int_t fileCount = 0;
+ //Int_t fileCount = 0;
Int_t digitCount = 0;
- char filename [50];
+ //char filename [50];
AliHLTUInt8_t* outBPtr;
AliHLTComponent* Spawn();
protected:
+ using AliHLTPHOSProcessor::DoEvent;
int DoInit(int argc, const char** argv);
virtual int Deinit(); ////////// PTH WARNING you should Define a class AliHLTPHOSModuleProcessor
// for(Int_t gain = 0; gain < N_GAINS; gain ++){
- for(Int_t module=0; module<N_MODULES; module++) {
- for(Int_t column=0; column< N_XCOLUMNS_MOD; column++) {
- for(Int_t row=0; row<N_ZROWS_MOD; row++) {
- for(Int_t gain = 0; gain < N_GAINS; gain ++){
+ for(UInt_t module=0; module<N_MODULES; module++) {
+ for(UInt_t column=0; column< N_XCOLUMNS_MOD; column++) {
+ for(UInt_t row=0; row<N_ZROWS_MOD; row++) {
+ for(UInt_t gain = 0; gain < N_GAINS; gain ++){
fADCchannelEnergy[module][column][row][gain] = calibda.fADCchannelEnergy[module][column][row][gain];
fADCpedestalEmcMeasured[module][column][row][gain] = calibda.fADCpedestalEmcMeasured[module][column][row][gain];
}
SetName(calibda.GetName());
SetTitle(calibda.GetName());
// for(Int_t gain = 0; gain < N_GAINS; gain ++){
- for(Int_t module=0; module<N_MODULES; module++) {
- for(Int_t column=0; column< N_XCOLUMNS_MOD; column++) {
- for(Int_t row=0; row<N_ZROWS_MOD; row++) {
- for(Int_t gain = 0; gain < N_GAINS; gain ++){
+ for(UInt_t module=0; module<N_MODULES; module++) {
+ for(UInt_t column=0; column< N_XCOLUMNS_MOD; column++) {
+ for(UInt_t row=0; row<N_ZROWS_MOD; row++) {
+ for(UInt_t gain = 0; gain < N_GAINS; gain ++){
fADCchannelEnergy[module][column][row][gain] = calibda.fADCchannelEnergy[module][column][row][gain];
fADCpedestalEmcMeasured[module][column][row][gain] = calibda.fADCpedestalEmcMeasured[module][column][row][gain];
}
// Set all pedestals and all ADC channels to its ideal values = 1.
// for(Int_t gain = 0; gain < PHOS_GAINS; gain ++){
- for (Int_t module=0; module<N_MODULES; module++){
- for (Int_t column=0; column< N_XCOLUMNS_MOD; column++){
- for (Int_t row=0; row<N_ZROWS_MOD; row++){
- for(Int_t gain = 0; gain < N_GAINS; gain ++){
+ for (UInt_t module=0; module<N_MODULES; module++){
+ for (UInt_t column=0; column< N_XCOLUMNS_MOD; column++){
+ for (UInt_t row=0; row<N_ZROWS_MOD; row++){
+ for(UInt_t gain = 0; gain < N_GAINS; gain ++){
fADCpedestalEmcMeasured[module][column][row][gain] = 0.;
fADCchannelEnergy[module][column][row][gain] = 1.;
}
if (strstr(option,"ped")) {
printf("\n ---- EMC Pedestal values ----\n\n");
// for(Int_t gain = 0; gain < N_GAINS; gain ++){
- for (Int_t module=0; module<N_MODULES; module++){
+ for (UInt_t module=0; module<N_MODULES; module++){
printf("============== Module %d\n",module+1);
- for (Int_t column=0; column< N_XCOLUMNS_MOD; column++){
- for (Int_t row=0; row<N_ZROWS_MOD; row++){
- for(Int_t gain = 0; gain < N_GAINS; gain ++){
+ for (UInt_t column=0; column< N_XCOLUMNS_MOD; column++){
+ for (UInt_t row=0; row<N_ZROWS_MOD; row++){
+ for(UInt_t gain = 0; gain < N_GAINS; gain ++){
printf("%4.1f",fADCpedestalEmcMeasured[module][column][row][gain]);
}
printf("\n");
if (strstr(option,"gain")) {
printf("\n ---- EMC ADC channel values ----\n\n");
// for(Int_t gain = 0; gain < N_GAINS; gain ++){
- for (Int_t module=0; module<N_MODULES; module++){
+ for (UInt_t module=0; module<N_MODULES; module++){
printf("============== Module %d\n",module+1);
- for (Int_t column=0; column< N_XCOLUMNS_MOD; column++){
- for (Int_t row=0; row<N_ZROWS_MOD; row++){
- for(Int_t gain = 0; gain < N_GAINS; gain ++){
+ for (UInt_t column=0; column< N_XCOLUMNS_MOD; column++){
+ for (UInt_t row=0; row<N_ZROWS_MOD; row++){
+ for(UInt_t gain = 0; gain < N_GAINS; gain ++){
printf("%4.1f",fADCchannelEnergy[module][column][row][gain]);
}
printf("\n");
void
AliHLTPHOSEmcCalibData::MakeADCpedestalCorrectionTable()
{
- for (Int_t module=0; module<N_MODULES; module++){
+ for (UInt_t module=0; module<N_MODULES; module++){
printf("============== Module %d\n",module+1);
- for (Int_t column=0; column< N_XCOLUMNS_MOD; column++){
- for (Int_t row=0; row<N_ZROWS_MOD; row++){
- for(Int_t gain = 0; gain < N_GAINS; gain ++){
+ for (UInt_t column=0; column< N_XCOLUMNS_MOD; column++){
+ for (UInt_t row=0; row<N_ZROWS_MOD; row++){
+ for(UInt_t gain = 0; gain < N_GAINS; gain ++){
fADCpedestalCorrectionTable[module][column][row][gain] = fADCpedestalEmcMeasured[module][column][row][gain] - fADCpedestalAltroReg[module][column][row][gain];
// printf("%4.1f",fADCchannelEnergy[module][column][row][gain]);
//
//_________________________________________________________________________________________________
void
-AliHLTPHOSFileWriter::SetDirectory(string& directory)
+AliHLTPHOSFileWriter::SetDirectory(string& /*directory*/)
{
}
/*
*Default constructor
*/
- for(int i=0; i<N_DATATYPES; i++)
+ for(unsigned int i=0; i<N_DATATYPES; i++)
{
fDataTypesToFile[i] = kAliHLTVoidDataType;
}
//comment
int ret = -1;
int tmpCnt = 0;
- for(int i=0; i< N_DATATYPES; i++)
+ for(unsigned int i=0; i< N_DATATYPES; i++)
{
if( fDataTypesToFile[i] != kAliHLTVoidDataType)
{
{
// see header file for documentation
Bool_t tmp = kFALSE;
- for(int i =0; i<N_DATATYPES; i++)
+ for(unsigned int i =0; i<N_DATATYPES; i++)
{
if((fDataTypesToFile[i] == dataType) && (dataType != kAliHLTVoidDataType))
{
Bool_t IsMIP = true;
Int_t *dataPtr = 0;
AliHLTPHOSDigitDataStruct *digitPtr;
- for(Int_t i = 0; i < digitContainerPtr->fNDigits; i++)
+ for(UInt_t i = 0; i < digitContainerPtr->fNDigits; i++)
{
digitPtr = &(digitContainerPtr->fDigitDataStruct[i]);
dataPtr = digitPtr->fData;
int
AliHLTPHOSMIPCounterComponent::DoEvent(const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
- AliHLTComponentTriggerData& /*trigData*/, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size,
- vector<AliHLTComponentBlockData>& outputBlocks)
+ AliHLTComponentTriggerData& /*trigData*/, AliHLTUInt8_t* /*outputPtr*/, AliHLTUInt32_t& /*size*/, //TODO: I think size should be set to zero when returning from this method if not data was written to the output buffer.
+ vector<AliHLTComponentBlockData>& /*outputBlocks*/)
{
//Do event
int digitCount = 0;
if(fEvtCnt % fInterval == 0)
{
printf("Event #: %d -- Number of MIPs the last %d events: %d -- Which gives a rate of: %f\n",
- fInterval, fMIPCountInterval, (Float_t)fMIPCountInterval/(Float_t)fInterval);
+ fEvtCnt, fInterval, Int_t(fMIPCountInterval), ((Float_t)fMIPCountInterval/(Float_t)fInterval)); //TODO: check that the proper things are being written to screen.
fIntervalHistPtr->Fill(fMIPCountInterval);
fRateHistPtr->Fill((Float_t)fMIPCountInterval/(Float_t)fInterval);
fMIPCountInterval = 0;
AliHLTComponent* Spawn();
- protected:
+protected:
+ using AliHLTPHOSProcessor::DoEvent;
int DoInit(int argc, const char** argv);
virtual int Deinit(); ////////// PTH WARNING you should Define a class AliHLTPHOSModuleProcessor
fPHOSRadius = geom->GetIPtoCrystalSurface();
- for(Int_t i = 0; i < N_MODULES; i++)
+ for(UInt_t i = 0; i < N_MODULES; i++)
{
fRotParametersCos[i] = cos((geom->GetPHOSAngle(i+1))*2*TMath::Pi()/360);
fPHOSRadius = geom->GetIPtoCrystalSurface();
- for(Int_t i = 0; i < N_MODULES; i++)
+ for(UInt_t i = 0; i < N_MODULES; i++)
{
fRotParametersCos[i] = cos((geom->GetPHOSAngle(i+1))*2*TMath::Pi()/360);
Int_t DoInit(int argc, const char** argv);
Int_t Deinit();
Int_t DoDeinit();
+ using AliHLTPHOSProcessor::DoEvent;
private:
double *
-AliHLTPHOSPulseGenerator::GetPulse(double a, double t0)
+AliHLTPHOSPulseGenerator::GetPulse(double /*a*/, double /*t0*/)
{
//See header file for documentation
return fDataPtr;
* @param dtaPtr Data array for wich a subarray will be taken to perform the fit
* @param fs the sampling frequency in entities of MHz. Needed in order to calculate physical time
**/
-AliHLTPHOSRawAnalyzer::AliHLTPHOSRawAnalyzer(double *dtaPtr, double fs): AliHLTPHOSBase(), fIntDataPtr(0), fSampleFrequency(10), fTau(2), fDTof(99999), fDAmpl(99999), fStartIndex(0)
+AliHLTPHOSRawAnalyzer::AliHLTPHOSRawAnalyzer(double * /*dtaPtr*/, double fs): AliHLTPHOSBase(), fIntDataPtr(0), fSampleFrequency(10), fTau(2), fDTof(99999), fDAmpl(99999), fStartIndex(0)
{
fSampleFrequency = fs;
} //end
* @param N the number of pretrigger samples used to calculate the baseline.
**/
void
-AliHLTPHOSRawAnalyzer::BaselineCorrection(double *dataPtr, int N)
+AliHLTPHOSRawAnalyzer::BaselineCorrection(double * /*dataPtr*/, int /*N*/)
{
cout << "Baseline correction not yet implemeted" << endl;
} //end BaselineCorrection
* @param baselineValue the basline value to subtract..
**/
void
-AliHLTPHOSRawAnalyzer::BaselineCorrection(double *dataPtr, double baselineValue)
+AliHLTPHOSRawAnalyzer::BaselineCorrection(double * /*dataPtr*/, double baselineValue)
{
printf("\nbaselineValue = %f\n", baselineValue);
cout << "Baseline correction not yet implemeted" << endl;
}
int
-AliHLTPHOSRawAnalyzer::FindStartIndex(double treshold)
+AliHLTPHOSRawAnalyzer::FindStartIndex(double /*treshold*/)
{
cout << "Find Start index not yet implemented" << endl;
return 0;
* @param treshold The index of the first value above treshold is ntaken to be the first value.
**/
void
-AliHLTPHOSRawAnalyzer::MakeInitialGuess(int treshold)
+AliHLTPHOSRawAnalyzer::MakeInitialGuess(int /*treshold*/)
{
cout << "Make initial guess not yet implemeted" << endl;
}
void
-AliHLTPHOSRawAnalyzer::SetTVector(Double_t *tVector, Int_t size)
+AliHLTPHOSRawAnalyzer::SetTVector(Double_t * /*tVector*/, Int_t /*size*/)
{
cout <<"ERROR: AliHLTPHOSRawAnalyzer::SetTVector: You cannot set the peakfindervector here, must be set in derived class peakfinder"<<endl;
}
void
-AliHLTPHOSRawAnalyzer::SetAVector(Double_t *aVector, Int_t size)
+AliHLTPHOSRawAnalyzer::SetAVector(Double_t * /*aVector*/, Int_t /*size*/)
{
cout <<"ERROR: AliHLTPHOSRawAnalyzer::SetAVector: You cannot set the peakfindervector here, must be set in derived class peakfinder"<<endl;
}
* @param length the number of samples to use starting from index
**/
void
-AliHLTPHOSRawAnalyzerChiSquareFit::Evaluate(int start, int length)
+AliHLTPHOSRawAnalyzerChiSquareFit::Evaluate(int /*start*/, int /*length*/)
{
/*
//AliHLTPHOSRawAnalyzerComponent::DoEvent( const AliHLTComponentEventD // AliHLTPHOSRcuCellEnergyDebugDataStruct* fOutPtr;ata& evtData, const AliHLTComponentBlockData* blocks, AliHLTComponentTriggerData& trigData,
// AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks )
int
-AliHLTPHOSRawAnalyzerComponent::DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, AliHLTComponentTriggerData& trigData,
+AliHLTPHOSRawAnalyzerComponent::DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, AliHLTComponentTriggerData& /*trigData*/,
AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks )
{
//comment
UInt_t tSize = 0;
Float_t baseline = 0;
AliHLTUInt8_t* outBPtr;
- AliHLTAltroBunch *bunchPtr;
+ //AliHLTAltroBunch *bunchPtr;
outBPtr = outputPtr;
const AliHLTComponentBlockData* iter = NULL;
unsigned long ndx;
mysize = 0;
offset = tSize;
// cout <<"TP1"<< endl;
- Int_t *dt = (Int_t*)(reinterpret_cast<UChar_t*>( iter->fPtr ));
+ //Int_t *dt = (Int_t*)(reinterpret_cast<UChar_t*>( iter->fPtr ));
// cout <<"TP2"<< endl;
Int_t crazyness = 0;
AliHLTPHOSRawAnalyzerComponent::Reset()
{
//comment
- for(int mod = 0; mod < N_MODULES; mod ++)
+ for(unsigned int mod = 0; mod < N_MODULES; mod ++)
{
- for(int row = 0; row < N_ZROWS_MOD; row ++)
+ for(unsigned int row = 0; row < N_ZROWS_MOD; row ++)
{
- for(int col = 0; col < N_XCOLUMNS_MOD; col ++)
+ for(unsigned int col = 0; col < N_XCOLUMNS_MOD; col ++)
{
- for(int gain = 0; gain < N_GAINS; gain ++ )
+ for(unsigned int gain = 0; gain < N_GAINS; gain ++ )
{
fMaxValues[mod][row][col][gain] = 0;
}
for(Int_t i = 0; i < baselineArray->GetEntriesFast(); i++)
{
baseline = (AliHLTPHOSBaseline*)baselineArray->At(i);
- if((baseline->GetX() < ((fRcuX + 1)*N_XCOLUMNS_RCU)) && (baseline->GetX() >= fRcuX*N_XCOLUMNS_RCU))
+ if((baseline->GetX() < (Int_t)((fRcuX + 1)*N_XCOLUMNS_RCU)) && (baseline->GetX() >= (Int_t)(fRcuX*N_XCOLUMNS_RCU)))
{
- if((baseline->GetZ() < ((fRcuZ + 1)*N_ZROWS_RCU)) && (baseline->GetZ() >= fRcuZ*N_ZROWS_RCU))
+ if((baseline->GetZ() < (Int_t)((fRcuZ + 1)*N_ZROWS_RCU)) && (baseline->GetZ() >= (Int_t)(fRcuZ*N_ZROWS_RCU)))
{
fBaselines[baseline->GetX() - fRcuX*N_XCOLUMNS_RCU][baseline->GetZ() - fRcuZ*N_ZROWS_RCU][baseline->GetGain()] = baseline->GetBaseline();
// cout << fBaselines[baseline->GetX() - fRcuX*N_XCOLUMNS_RCU][baseline->GetZ() - fRcuZ*N_ZROWS_RCU][baseline->GetGain()] << endl;
virtual int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr,
AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks );
+ using AliHLTPHOSRcuProcessor::DoEvent;
+
void Reset();
void ResetDataPtr(int startindex = 0, int sampleCnt = 0);
void SetBaselines(const char* baselineFile);
**/
//________________________________________________________________________________________________________
void
-AliHLTPHOSRawAnalyzerKLevel::Evaluate(int start, int length)
+AliHLTPHOSRawAnalyzerKLevel::Evaluate(int /*start*/, int /*length*/)
{
//thats all
} //end FitKLevel
* @param fs the sampling frequency in entities of MHz. Needed in order to calculate physical time
**/
//_____________________________________________________________________________________________________
-AliHLTPHOSRawAnalyzerLMS::AliHLTPHOSRawAnalyzerLMS(double *dtaPtr, double fs):AliHLTPHOSRawAnalyzer()
+AliHLTPHOSRawAnalyzerLMS::AliHLTPHOSRawAnalyzerLMS(double * /*dtaPtr*/, double fs):AliHLTPHOSRawAnalyzer()
{
// fFloatDataPtr = dtaPtr;
//_____________________________________________________________________________________________________
void
-AliHLTPHOSRawAnalyzerLMS::Evaluate(int start, int length)
+AliHLTPHOSRawAnalyzerLMS::Evaluate(int /*start*/, int /*length*/)
{
} //end FitLMS
//___________________________________________________________________
void
-AliHLTPHOSRawAnalyzerPeakFinder::Evaluate(Int_t start, Int_t length)
+AliHLTPHOSRawAnalyzerPeakFinder::Evaluate(Int_t /*start*/, Int_t length)
{
fDTof = 0;
fDAmpl = 0;
fDigitPtr(0),
// fDigitStructPtr(0),
fDigitCount(0),
- fDigitThreshold(0),
- fNrPresamples(10)
+ fNrPresamples(10),
+ fDigitThreshold(0)
{
//comment
}
UInt_t tSize = 0;
UInt_t offset = 0;
UInt_t mysize = 0;
- Int_t nRecPoints = 0;
- Int_t index = 0;
+ //Int_t nRecPoints = 0;
+ //Int_t index = 0;
- Int_t fileCount = 0;
+ //Int_t fileCount = 0;
Int_t digitCount = 0;
- char filename [50];
+ //char filename [50];
AliHLTUInt8_t* outBPtr;
AliHLTComponent* Spawn();
protected:
+ using AliHLTPHOSRcuProcessor::DoEvent;
int DoInit(int argc, const char** argv);
virtual int Deinit(); ////////// PTH WARNING you should Define a class AliHLTPHOSModuleProcessor
int geomz;
- for(int gain=0; gain< N_GAINS; gain++)
+ for(unsigned int gain=0; gain< N_GAINS; gain++)
{
sprintf(tmpHistoName, "DeadChanneMap_Module%d_rcuz%d_rcux%d_gain%d",(int)fModuleID, fRcuZ, fRcuX, gain);
// fDeadChannelMapHistogramPtrs[gain] = new TH2D( tmpHistoName, tmpHistoName, N_BINS, XBIN_LOW, XBIN_UP);
- for(int x = 0; x < N_XCOLUMNS_RCU; x ++)
+ for(unsigned int x = 0; x < N_XCOLUMNS_RCU; x ++)
{
- for(int z = 0; z < N_ZROWS_RCU; z ++)
+ for(unsigned int z = 0; z < N_ZROWS_RCU; z ++)
{
- for(int gain = 0; gain < N_GAINS; gain ++)
+ for(unsigned int gain = 0; gain < N_GAINS; gain ++)
{
geomx = x + N_XCOLUMNS_RCU*fRcuX;
geomz = z + N_ZROWS_RCU*fRcuZ;
AliHLTPHOSRcuHistogramProducer::FillLiveChannelHistograms()
{
//comment
- for(int x = 0; x < N_XCOLUMNS_RCU; x ++)
+ for(unsigned int x = 0; x < N_XCOLUMNS_RCU; x ++)
{
- for(int z = 0; z < N_ZROWS_RCU; z ++)
+ for(unsigned int z = 0; z < N_ZROWS_RCU; z ++)
{
- for(int gain = 0; gain < N_GAINS; gain ++)
+ for(unsigned int gain = 0; gain < N_GAINS; gain ++)
{
fDeadChannelMapHistogramPtrs[gain]->SetBinContent(x ,z , fCellAccEnergy.fDeadChannelMap[x][z][gain]);
}
AliHLTPHOSRcuHistogramProducer::Reset()
{
//See header file for documentation
- for(int x = 0; x < N_XCOLUMNS_RCU; x ++)
+ for(unsigned int x = 0; x < N_XCOLUMNS_RCU; x ++)
{
- for(int z = 0; z < N_ZROWS_RCU; z ++)
+ for(unsigned int z = 0; z < N_ZROWS_RCU; z ++)
{
- for(int gain = 0; gain < N_GAINS; gain ++)
+ for(unsigned int gain = 0; gain < N_GAINS; gain ++)
{
fEnergyAverageValues[x][z][gain] = 0;
fAccumulatedValues[x][z][gain] = 0;
}
}
- for(int i = 0; i <ALTRO_MAX_SAMPLES; i++)
+ for(unsigned int i = 0; i <ALTRO_MAX_SAMPLES; i++)
{
fTmpChannelData[i] = 0;
}
cout <<"printing histograms"<< endl;
- for(int x = 0; x < N_XCOLUMNS_RCU; x ++)
+ for(unsigned int x = 0; x < N_XCOLUMNS_RCU; x ++)
{
- for(int z = 0; z < N_ZROWS_RCU; z ++)
+ for(unsigned int z = 0; z < N_ZROWS_RCU; z ++)
{
- for(int gain = 0; gain < N_GAINS; gain ++)
+ for(unsigned int gain = 0; gain < N_GAINS; gain ++)
{
// cout << "the number of entries is " <<fEnergyHistogramPtrs[x][z][gain]->GetEntries()<< endl;
fEnergyHistogramPtrs[x][z][gain]->Write();
int min;
int sec;
int year;
- char sDate[5];
- char sHour[5];
- char sMin[5];
- char sSec[5];
- char sYear[10];
+ //char sDate[5];
+ //char sHour[5];
+ //char sMin[5];
+ //char sSec[5];
+ //char sYear[10];
sscanf(timeString, "%s %s %d %d:%d:%d %d\n", day, month, &date, &hour, &min, &sec, &year);
}
* and it fills the histograms with amplitudes per channel. *
* Usage example see in PHOS/macros/Shuttle/AliPHOSCalibHistoProducer.C *
**************************************************************************/
-AliHLTPHOSRcuHistogramProducerComponent:: AliHLTPHOSRcuHistogramProducerComponent():AliHLTPHOSRcuProcessor(), fRcuHistoProducerPtr(0), fHistoWriteFrequency(100)
+AliHLTPHOSRcuHistogramProducerComponent:: AliHLTPHOSRcuHistogramProducerComponent() :
+ AliHLTPHOSRcuProcessor(), fHistoWriteFrequency(100), fRcuHistoProducerPtr(0), fOutPtr(NULL)
{
//Default constructor
}
int AliHLTPHOSRcuHistogramProducerComponent::DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
- AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr,
+ AliHLTComponentTriggerData& /*trigData*/, AliHLTUInt8_t* outputPtr,
AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks )
{
// cout << "AliHLTPHOSRcuHistogramProducerComponent::DoEven TP0" << endl;
fOutPtr->fRcuZ = fRcuZ;
- for(int x=0; x < N_XCOLUMNS_RCU; x ++)
+ for(unsigned int x=0; x < N_XCOLUMNS_RCU; x ++)
{
- for(int z=0; z < N_ZROWS_RCU; z ++)
+ for(unsigned int z=0; z < N_ZROWS_RCU; z ++)
{
- for(int gain =0; gain < N_GAINS; gain ++)
+ for(unsigned int gain =0; gain < N_GAINS; gain ++)
{
fOutPtr->fAccumulatedEnergies[x][z][gain] = innPtr.fAccumulatedEnergies[x][z][gain];
fOutPtr->fHits[x][z][gain] = innPtr.fHits[x][z][gain];
virtual AliHLTComponent* Spawn();
virtual const char* GetComponentID();
+ protected:
+ using AliHLTPHOSRcuProcessor::DoEvent;
+
private:
int fHistoWriteFrequency;
}
void
-AliHLTPHOSRcuProcessor::SetCoordinates(AliHLTUInt16_t equippmentID)
+AliHLTPHOSRcuProcessor::SetCoordinates(AliHLTUInt16_t /*equippmentID*/)
{
int rcuIndex = (fkEquippmentID - 1792)%N_RCUS_PER_MODULE;
fModuleID = (fkEquippmentID -1792 -rcuIndex)/N_RCUS_PER_MODULE;
AliHLTPHOSDigit *digit = 0;
AliHLTPHOSDigitDataStruct *digitStruct = 0;
- for(Int_t i = 0; i < digitContainer->fNDigits; i++)
+ for(UInt_t i = 0; i < digitContainer->fNDigits; i++)
{
digitStruct = &(digitContainer->fDigitDataStruct[i]);
digit = (AliHLTPHOSDigit*)fDigitArrayPtr->New(i + nDigits);
int
AliHLTPHOSRcuTreeMakerComponent::DoEvent(const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
- AliHLTComponentTriggerData& /*trigData*/, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size,
- std::vector<AliHLTComponentBlockData>& outputBlocks)
+ AliHLTComponentTriggerData& /*trigData*/, AliHLTUInt8_t* /*outputPtr*/, AliHLTUInt32_t& /*size*/, //TODO: I think size should be set to zero when returning from this method if not data was written to the output buffer.
+ std::vector<AliHLTComponentBlockData>& /*outputBlocks*/)
{
//Do event
if ( iter->fDataType == AliHLTPHOSDefinitions::fgkAliHLTDigitDataType )
{
- digitEvent == true;
+ digitEvent = true;
nDigits = fTreeMakerPtr->MakeDigitArray ( reinterpret_cast<AliHLTPHOSRcuDigitContainerDataStruct*> ( iter->fPtr ), totalDigits );
totalDigits += nDigits;
//cout << totalDigits << endl;
fTreeMakerPtr->SetDigitTree(fDigitTreePtr);
fstream runNbFile;
- Int_t newRunNb;
+ //Int_t newRunNb;
runNbFile.open("/opt/HLT-public/rundir/runNumber.txt");
runNbFile >> fRunNb;
runNbFile.close();
void ResetTrees();
protected:
+
+ using AliHLTPHOSRcuProcessor::DoEvent;
+
int DoInit(int argc, const char** argv);
virtual int Deinit(); ////////// PTH WARNING you should Define a class AliHLTPHOSModuleProcessor
*/
int
AliHLTPHOSSandboxComponent::DoEvent(const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
- AliHLTComponentTriggerData& /*trigData*/, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size,
- vector<AliHLTComponentBlockData>& outputBlocks)
+ AliHLTComponentTriggerData& /*trigData*/, AliHLTUInt8_t* /*outputPtr*/, AliHLTUInt32_t& /*size*/, //TODO: I think size should be set to zero when returning from this method if not data was written to the output buffer.
+ vector<AliHLTComponentBlockData>& /*outputBlocks*/)
{
//Do event
int
-AliHLTPHOSSandboxComponent::DoInit(int argc, const char** argv )
+AliHLTPHOSSandboxComponent::DoInit(int argc, const char** /*argv*/ )
{
//Do initialization
AliHLTComponent* Spawn();
protected:
+
+ using AliHLTPHOSProcessor::DoEvent;
+
int DoInit(int argc, const char** argv);
virtual int Deinit(); ////////// PTH WARNING you should Define a class AliHLTPHOSModuleProcessor
AliHLTPHOSDigit *digit = 0;
AliHLTPHOSDigitDataStruct *digitStruct = 0;
- for(Int_t i = 0; i < digitContainer->fNDigits; i++)
+ for(UInt_t i = 0; i < digitContainer->fNDigits; i++)
{
digitStruct = &(digitContainer->fDigitDataStruct[i]);
digit = (AliHLTPHOSDigit*)fDigitArrayPtr->New(i + nDigits);
int
AliHLTPHOSTreeMakerComponent::DoEvent(const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
- AliHLTComponentTriggerData& /*trigData*/, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size,
- std::vector<AliHLTComponentBlockData>& outputBlocks)
+ AliHLTComponentTriggerData& /*trigData*/, AliHLTUInt8_t* /*outputPtr*/, AliHLTUInt32_t& /*size*/, //TODO: I think size should be set to zero when returning from this method if not data was written to the output buffer.
+ std::vector<AliHLTComponentBlockData>& /*outputBlocks*/)
{
//Do event
if ( iter->fDataType == AliHLTPHOSDefinitions::fgkAliHLTDigitDataType )
{
- digitEvent == true;
+ digitEvent = true;
nDigits = fTreeMakerPtr->MakeDigitArray ( reinterpret_cast<AliHLTPHOSDigitContainerDataStruct*> ( iter->fPtr ), totalDigits );
totalDigits += nDigits;
//cout << totalDigits << endl;
fTreeMakerPtr->SetDigitTree(fDigitTreePtr);
fstream runNbFile;
- Int_t newRunNb;
+ //Int_t newRunNb;
runNbFile.open("/opt/HLT-public/rundir/runNumber.txt");
runNbFile >> fRunNb;
runNbFile.close();
protected:
+ using AliHLTPHOSProcessor::DoEvent;
int DoInit(int argc, const char** argv);
virtual int Deinit(); ////////// PTH WARNING you should Define a class AliHLTPHOSModuleProcessor