}
void
-AliHLTPHOSClusterizer::SetRecoParameters(AliPHOSRecoParam* params)
+AliHLTPHOSClusterizer::SetRecoParameters(AliPHOSRecoParam* /*params*/)
{
//see header file for documentation
#ifndef HAVE_NOT_PHOSRECOPARAMEMC // set from configure if EMC functionality not available in AliPHOSRecoParam
virtual ~AliHLTPHOSClusterizer();
/** Copy constructor */
- AliHLTPHOSClusterizer(const AliHLTPHOSClusterizer &) :
- AliHLTPHOSBase(),
+ AliHLTPHOSClusterizer(const AliHLTPHOSClusterizer &) : AliHLTPHOSBase(),
fEmcClusteringThreshold(0),
fEmcMinEnergyThreshold(0),
fEmcTimeGate(0),
fDigitContainerPtr(0),
fRecPointContainerPtr(0),
fPHOSGeometry(0),
- fGetterPtr(0)
+ fGetterPtr(0),
+ fMaxDigitIndexDiff(0)
{
//Copy constructor not implemented
}
fDigitContainerStructPtr(0),
fDigitArrayPtr(0),
fDigitStructPtr(0),
- fDigitCount(0),
fShmPtr(0),
+ fDigitCount(0),
fOrdered(true)
{
// See header file for documentation
//See header file for documentation
Int_t j = 0;
- Float_t tmpEnergy = 0;
+ // Float_t tmpEnergy = 0;
// Int_t xMod = -1;
// Int_t zMod = -1;
void
-AliHLTPHOSFourier::ProcessFourier(const Int_t *data, const int length, const int z, const int x, const int gain, const int event)
+AliHLTPHOSFourier::ProcessFourier(const Int_t *data, const int length, const int /*z*/, const int /*x*/, const int gain, const int event)
{
Double_t re = 0;
Double_t im = 0;
void
-AliHLTPHOSFourierComponent::GetOutputDataSize(unsigned long& constBase, double& inputMultiplier)
+AliHLTPHOSFourierComponent::GetOutputDataSize(unsigned long& /*constBase*/, double& inputMultiplier)
{
// constBase =1;
// inputMultiplier = 1;
void SetMaxNtupleEntries(Int_t n) { fMaxNtupleEntries = n; }
private:
-
+AliHLTPHOSHistogramProducer(const AliHLTPHOSHistogramProducer & );
+AliHLTPHOSHistogramProducer & operator = (const AliHLTPHOSHistogramProducer &);
TH1D* fClusterEnergiesHistPtr;
TH1D* fMultiplicitiesHistPtr;
TNtuple* fClusterNtuplePtr;
int
AliHLTPHOSMonitorTriggerComponent::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*/,
+ std::vector<AliHLTComponentBlockData>& /*outputBlocks*/)
{
//See headerfile for documentation
eddWord = blockCount;
PushEventDoneData( eddWord );
- Int_t blockIndex = 0;
+ // Int_t blockIndex = 0;
// low data type
eddWord = 0;
fTau(2),
fDTof(99999),
fDAmpl(99999),
- fStartIndex(0)
+ fStartIndex(0),
+ fUtilitiesPtr(0)
{
fSampleFrequency = fs;
} //end
void
//AliHLTPHOSRawAnalyzer::CorrectBaselineUsingFirstFiveSamples(double *data, int length)
//AliHLTPHOSRawAnalyzer::CorrectBaselineUsingFirstFiveSamples(int *data, int length)
-AliHLTPHOSRawAnalyzer::CorrectBaselineUsingFirstFiveSamples(UInt_t *data, const int length)
+AliHLTPHOSRawAnalyzer::CorrectBaselineUsingFirstFiveSamples(UInt_t * /*data*/, const int /* length */)
{
// cout << "AliHLTPHOSRawAnalyzer::CorrectBaselineUsingFirstFiveSamples" << endl;
fUseBaselineSubtraction(false),
fDecoderPtr(0),
fAltroDataPtr(0),
- fAltroBunchPtr(0),
- fDoPushRawData(false),
- fDigitContainerPtr(0),
+ fAltroBunchPtr(0),
+
+ fDoPushRawData(false),
+ fDoMakeDigits(0),
+ fDigitMakerPtr(0),
+
+ fDigitContainerPtr(0),
fDoSelectiveReadOut(false),
fSelectedChannelsList(0),
fDoCheckDataSize(false),
void
-AliHLTPHOSRawAnalyzerComponent::FillDataArray(UInt_t *data, const AliAltroData *altrodataptr, const int channel)
+AliHLTPHOSRawAnalyzerComponent::FillDataArray(UInt_t *data, const AliAltroData * /*altrodataptr */, const int /* channel */)
{
ResetDataPtr(0, ALTRO_MAX_SAMPLES);
bool islastbunch = true;
void
-AliHLTPHOSRawAnalyzerComponent::GetFirstBunch(AliAltroData *altrodata, AliAltroBunch *altrobunch)
+AliHLTPHOSRawAnalyzerComponent::GetFirstBunch(AliAltroData * /*altrodata */, AliAltroBunch * /*altrobunch */)
{
while( fAltroDataPtr->NextBunch(fAltroBunchPtr) == true)
{
void
-AliHLTPHOSRawAnalyzerComponent::Reset(AliHLTPHOSRcuCellEnergyDataStruct* cellDataPtr)
+AliHLTPHOSRawAnalyzerComponent::Reset(AliHLTPHOSRcuCellEnergyDataStruct* /* cellDataPtr */)
{
ResetDataPtr(0, ALTRO_MAX_SAMPLES);
} // end Reset
fDecoderPtr(0),
fAltroDataPtr(0),
fAltroBunchPtr(0),
+ fNCorruptedBlocks(0),
fNOKBlocks(0),
fAlgorithm(0),
fOffset(0)
const AliHLTComponentBlockData* iter = NULL;
unsigned long ndx;
- bool droppedRaw = true;
+ // bool droppedRaw = true;
for( ndx = 0; ndx < evtData.fBlockCnt; ndx++ )
{
*value = atoi(argv[tmpIndex +1]);
return true;
}
+ else
+ {
+ return false;
+ }
}
}
*value = atof(argv[tmpIndex +1]);
return true;
}
+ else
+ {
+ return false;
+ }
}
}
else
{
// *value = atoi(argv[tmpIndex +1]);
sprintf(outname, "%s", argv[tmpIndex +1] );
-
return true;
}
+ else
+ {
+ return false;
+ }
}
}
else
#include <cstdlib>
#include <time.h>
#include "stdio.h"
+#include <stdexcept>
#define MIN_BUNCH_SIZE 0
+void test();
+
+
using namespace std;
+
+
int main(int argc, const char** argv)
{
-
+
+ /*
+ try
+ {
+ test();
+ }
+ // catch( bad_alloc &moryAllocationExeption)
+ // catch( bad_alloc)
+ // catch(...)
+ // catch( exception &e)
+ catch(...)
+ {
+ std::cerr<<"something bad happened\n";
+ cout << "SEGFAULT" << endl;
+ }
+*/
+
// int n_loops = 200000;
int n_loops = 1;
decoder->Decode();
- while(decoder->NextChannel(&altrodata) == true && channelCnt < 10)
+ //while(decoder->NextChannel(&altrodata) == true && channelCnt < 10)
+ while(decoder->NextChannel(&altrodata) == true)
{
channelCnt ++;
// decoder->PrintInfo(altrodata, altrodata.GetDataSize() +4);
-
- if( altrodata.GetDataSize() != 0 )
- {
+ // if( altrodata.GetDataSize() != 0 )
+ // {
+ // cnt = 0;
cnt = 0;
while( altrodata.NextBunch(altrobunchPtr) == true)
{
+ // cnt = 0;
// printf("\n");
- if(altrobunchPtr->GetBunchSize() > MIN_BUNCH_SIZE)
- {
- printf("\n");
- cout <<"cnt = "<< cnt <<endl;
- cout << "altrobunch.fDataSize = " << altrobunchPtr->GetBunchSize() << endl;
- cout << "altrobunch.fEndTimeBin = " << altrobunchPtr->GetEndTimeBin() << endl;
- cout << "altrobunch.fStartTimeBin = " << altrobunchPtr->GetStartTimeBin() << endl;
-
- for(int i=0; i<altrobunchPtr->GetBunchSize() + 20; i++)
+ // if(altrobunchPtr->GetBunchSize() > MIN_BUNCH_SIZE)
+ // {
+ printf("\n");
+ cout <<"bunchcnt = "<< cnt <<endl;
+ cout << "altrobunch.fDataSize = " << altrobunchPtr->GetBunchSize() << endl;
+ cout << "altrobunch.fEndTimeBin = " << altrobunchPtr->GetEndTimeBin() << endl;
+ cout << "altrobunch.fStartTimeBin = " << altrobunchPtr->GetStartTimeBin() << endl;
+
+ // for(int i=0; i<altrobunchPtr->GetBunchSize() + 20; i++)
+ for(int i=0; i<altrobunchPtr->GetBunchSize(); i++)
+ {
+ if(i != 0 && i%4==0)
{
- if(i != 0 && i%4==0)
- {
- printf("\n");
- }
+ printf("\n");
+ }
- // printf("%d\t", altrobunchPtr->fData[i]);
- printf("%d\t", (altrobunchPtr->GetData())[i]);
+ // printf("%d\t", altrobunchPtr->fData[i]);
+ printf("%d\t", (altrobunchPtr->GetData())[i]);
- }
-
- printf("\n\n");
}
+
cnt ++;
+
+ printf("\n\n");
}
+
+ // cnt ++;
+ //}
- }
+ // }
}
}
decoder->GetFailureRate();
// cnt ++;
-
- return 0;
+ /*
+ try
+ {
+ test();
+ }
+ catch
+ {
+ cout << "SEGFAULT" << endl;
+ }
+ */
+
+ return 0;
}
+
+
+void test()
+{
+ int *tmp;
+
+ for(int i=0; i < 100; i++)
+ {
+ printf("%d\n", tmp[i]);
+ }
+
+}