AliL3DigitRowData *rowPt;
rowPt = (AliL3DigitRowData*)fRowData;
Int_t digitcount=0;
- Int_t ndigits[(AliL3Transform::GetNRows(fPatch))];
+ // Int_t ndigits[(AliL3Transform::GetNRows(fPatch))];
+ Int_t * ndigits = new Int_t[(AliL3Transform::GetNRows(fPatch))];
for(Int_t i=AliL3Transform::GetFirstRow(fPatch); i<=AliL3Transform::GetLastRow(fPatch); i++)
{
AliL3DigitData *digPt = (AliL3DigitData*)rowPt->fDigitData;
mem->CloseBinaryOutput();
delete mem;
delete [] data;
+ delete [] ndigits;
}
void AliL3Modeller::RemoveBadTracks()
struct AliL3RemainingRow {
Byte_t fPadRow; //1 byte
UShort_t fNClusters; //2 bytes
+#if defined(__HP_aCC) || defined(__DECCXX) || defined(__SUNPRO_CC)
+ AliL3RemainingCluster fClusters[1];
+#else
AliL3RemainingCluster fClusters[0];
+#endif
};
typedef struct AliL3RemainingRow AliL3RemainingRow;
// Author: Anders Vestbo <mailto:vestbo@fi.uib.no>
//*-- Copyright © ALICE HLT Group
+#include <strings.h>
#include "AliL3StandardIncludes.h"
#include "AliL3Logging.h"
// Author: Anders Vestbo <mailto:vestbo@fi.uib.no>
//*-- Copyright © ALICE HLT Group
+#include <strings.h>
#include "AliL3StandardIncludes.h"
#ifndef no_root
track->CalculateHelix();
Int_t temp[200];
- Int_t temp2[AliL3Transform::GetNTimeBins()];
+ // Int_t temp2[AliL3Transform::GetNTimeBins()];
+ Int_t * temp2 = new Int_t[AliL3Transform::GetNTimeBins()];
Int_t entries=100;
Int_t clustercharge=100;
Int_t hitcounter=0;
fData[rowindex].npads=npads;
}
delete track;
+ delete [] temp2;
if(hitcounter < minhits)
return kFALSE;
return kTRUE;
Int_t nrows=fRowMax-fRowMin+1;
Int_t ndigitcount=0;
- Int_t ndigits[nrows];
+ // Int_t ndigits[nrows];
+ Int_t * ndigits = new Int_t[nrows];
UShort_t ***charges=new UShort_t**[nrows];
for(Int_t r=fRowMin;r<=fRowMax;r++){
Int_t lrow=r-fRowMin;
delete charges[lrow];
}
delete charges;
+ delete [] ndigits;
return data;
}
}
}
-inline void AliL3VHDLClusterFinder::FreeSeq(UShort_t i)
+void AliL3VHDLClusterFinder::FreeSeq(UShort_t i)
{
ClearSeq(i);
IncPointer(fLast,1,N_clmem);
else p=UShort_t(pp);
}
-inline void AliL3VHDLClusterFinder::IncRPointer(){
+void AliL3VHDLClusterFinder::IncRPointer(){
IncPointer(fRP);
}
-inline void AliL3VHDLClusterFinder::IncWPointer(){
+void AliL3VHDLClusterFinder::IncWPointer(){
IncPointer(fWP);
if(fWP==fOP){
}
}
-inline void AliL3VHDLClusterFinder::NextFreeIndex(){
+void AliL3VHDLClusterFinder::NextFreeIndex(){
IncPointer(fFirst,1,N_clmem);
if(fFirst==fLast) {
LOG(AliL3Log::kFatal,"AliL3VHDLClusterFinder::GetFreeIndex","Memory Check")
{
UInt_t fNDigit;
UInt_t fRow;
+#if defined(__HP_aCC) || defined(__DECCXX) || defined(__SUNPRO_CC)
+ AliL3DigitData fDigitData[1];
+#else
AliL3DigitData fDigitData[0];
+#endif
};
typedef struct AliL3DigitRowData AliL3DigitRowData;
for(Int_t iprim = 0; iprim<nparticles; iprim++){ //loop on tracks
part = astack->Particle(iprim);
- char *xxx=strstr(part->GetName(),"XXX");
+ const char * xxx=strstr(part->GetName(),"XXX");
if(xxx)continue;
TParticlePDG *ppdg = part->GetPDG();
Int_t nrows=0;
Int_t ndigitcount=0;
Int_t entries = (Int_t)fDigitsTree->GetEntries();
- Int_t ndigits[entries];
+ // Int_t ndigits[entries];
+ Int_t * ndigits = new Int_t[entries];
Float_t xyz[3];
for(Int_t r=fRowMin;r<=fRowMax;r++){
tmp += size;
tempPt = (AliL3DigitRowData*)tmp;
}
+ delete [] ndigits;
return data;
}
Int_t nrows=0;
Int_t ndigitcount=0;
Int_t entries = (Int_t)fDigitsTree->GetEntries();
- Int_t ndigits[entries];
+ // Int_t ndigits[entries];
+ Int_t * ndigits = new Int_t[entries];
Int_t lslice,lrow;
Int_t zerosupval=AliL3Transform::GetZeroSup();
Float_t xyz[3];
tmp += size;
tempPt = (AliL3DigitRowData*)tmp;
}
+ delete [] ndigits;
return data;
}
//
// Loop over hits calculating average
- Double_t fXYWeight[(fTrack->GetNHits())];
+ // Double_t fXYWeight[(fTrack->GetNHits())];
+ Double_t * fXYWeight = new Double_t[(fTrack->GetNHits())];
UInt_t *hitnum = fTrack->GetHitNumbers();
for(Int_t i=0; i<fTrack->GetNHits(); i++)
{
//
//if ( getPara()->getErrors ) getErrorsCircleFit ( acent, bcent, radius ) ;
//
+ delete [] fXYWeight;
return 0 ;
}
//TObjArray *hits = fTrack->GetHits();
//Int_t num_of_hits = fTrack->GetNumberOfPoints();
- Double_t fS[(fTrack->GetNHits())];
+ // Double_t fS[(fTrack->GetNHits())];
+ Double_t * fS = new Double_t[(fTrack->GetNHits())];
Double_t *fZWeight = new Double_t[fTrack->GetNHits()];
UInt_t *hitnum = fTrack->GetHitNumbers();
if (0)//fVertexConstraint==kTRUE)
fTrack->SetTglerr(dtanl);
fTrack->SetZ0err(dz0);
delete [] fZWeight;
+ delete [] fS;
return 0 ;
}
//create new track
AliL3Track *newtrack = mergedtracks->NextTrack();
//copy points
- UInt_t nn[AliL3Transform::GetNRows()];
+ // UInt_t nn[AliL3Transform::GetNRows()];
+ UInt_t * nn = new UInt_t[AliL3Transform::GetNRows()];
nps = 0;
// for(Int_t i=0;i<ntrack;i++){
newtrack->SetPsi(best->GetPsi());
newtrack->SetTgl(best->GetTgl());
newtrack->SetCharge(tpf->GetCharge());
+ delete [] nn;
return newtrack;
}
}
//Read the data
- Short_t charges[fNChannels][fNTimeBins];
+ // Short_t charges[fNChannels][fNTimeBins];
+ Short_t ** charges = new Short_t*[fNChannels];
+ for (Int_t iii=0; iii<fNChannels; iii++)
+ charges[iii] = new Short_t[fNTimeBins];
for(UInt_t channel = 0; channel < fNChannels; channel++){
for(Int_t timebin = 0 ; timebin < fNTimeBins ; timebin++){
Short_t dummy2;
//get data size
Int_t nrows=0;
Int_t ndigitcount=0;
- Int_t ndigits[AliL3Transform::GetNRows()];
+ // Int_t ndigits[AliL3Transform::GetNRows()];
+ Int_t * ndigits = new Int_t[AliL3Transform::GetNRows()];
for(Int_t i=0;i<AliL3Transform::GetNRows();i++) ndigits[i]=0;
//no need to search for slice/sector given by init
LOG(AliL3Log::kError,"AliL3RawDataFileHandler::RawData2Memory","Digits")
<<AliL3Log::kDec<<"Found Inconsistency "<<ndigitcount<<" != "<<ndigitcounttest2<<ENDLOG;
+ delete [] ndigits;
+ for (Int_t iii=0; iii<fNChannels; iii++)
+ delete [] charges[iii];
+ delete [] charges;
+
return data;
}
Int_t fTrackID;
#endif
UInt_t fNPoints;
+#if defined(__HP_aCC) || defined(__DECCXX) || defined(__SUNPRO_CC)
+ UInt_t fPointIDs[1];
+#else
UInt_t fPointIDs[0];
+#endif
};
typedef struct AliL3TrackSegmentData AliL3TrackSegmentData;
#include "AliL3Logging.h"
#include "AliL3Transform.h"
-#if __GNUC__ == 3
+#if defined(__GNUC__) && __GNUC__ == 3
using namespace std;
#endif
void AliL3Transform::PrintCompileOptions()
{
+#if defined(__GNUC__)
cout << "Compiler (g++) version used: " << __GNUC__ << endl;
+#endif
#ifdef no_root
cout << "STANDALONE version: -Dno_root was given." << endl;