if ( ! fTrackCuts->IsSelected(particle) )
continue;
- const Float_t aEtaPhi[] = { particle->Eta(), particle->Phi(), particle->Pt() };
+ const Float_t aEtaPhi[] = { static_cast<Float_t>(particle->Eta()), static_cast<Float_t>(particle->Phi()), static_cast<Float_t>(particle->Pt()) };
Int_t aGridIdx[] = { -1, -1, -1, -1, -1 };
fGrid->FillTrack(particle, aEtaPhi, aGridIdx);
if ( ! fTrackCuts->IsSelected(particle) )
continue;
- const Float_t aEtaPhi[] = { particle->Eta(), particle->Phi(), particle->Pt() };
+ const Float_t aEtaPhi[] = { static_cast<Float_t>(particle->Eta()), static_cast<Float_t>(particle->Phi()), static_cast<Float_t>(particle->Pt()) };
Int_t aGridIdx[] = { -1, -1, -1, -1, -1 };
// -- Fill grid
if ( ! fTrackCuts->IsSelected(esdTrack) )
continue;
- const Float_t aEtaPhi[] = { esdTrack->Eta(), esdTrack->Phi(), esdTrack->Pt() };
+ const Float_t aEtaPhi[] = { static_cast<Float_t>(esdTrack->Eta()), static_cast<Float_t>(esdTrack->Phi()), static_cast<Float_t>(esdTrack->Pt()) };
Int_t aGridIdx[] = { -1, -1, -1, -1, -1 };
// -- Fill grid
class AliHLTMUONFullTracker;
-const Float_t AliHLTMUONFullTracker::fgkTrackDetCoordinate[3] = {
+const Double_t AliHLTMUONFullTracker::fgkTrackDetCoordinate[3] = {
155.179+20.0, 166.234+20.0,
(AliMUONConstants::DefaultChamberZ(4)+ AliMUONConstants::DefaultChamberZ(5))/2.0
};
Int_t fCharge; /// charge
};
- static const Float_t fgkTrackDetCoordinate[3]; /// set the constant value for third station position and size
+ static const Double_t fgkTrackDetCoordinate[3]; /// set the constant value for third station position and size
static const Double_t fgkAbsoedge[4] ; /// edge of the absorber
static const Double_t fgkRadLen[3] ; /// radiation length of the main three matirials of the front absorber
HLTDebug("simulate channel %d: address %d", channel, channelAddress);
// save beginning of this channel for better navigation
- AliChannelPosition position={channelAddress, dataPos, 0};
+ AliChannelPosition position={static_cast<AliHLTUInt16_t>(channelAddress), dataPos, 0};
// add channel address and bunch count at the beginning
if (fpSimData->GetSize()<dataPos+2) fpSimData->Set(dataPos+2);
#include <vector>
#include <ostream>
-class AliRawDataHeader;
+struct AliRawDataHeader;
class TArrayS;
class TArrayC;
class TRandom;
fSpacePointData[counter].fZ = xyz[2];
}
else{
- Double_t x[3]={thisrow,fpad+.5,ftime};
+ Double_t x[3]={static_cast<Double_t>(thisrow),fpad+.5,ftime};
Int_t iSector[1]={thissector};
fOfflineTransform->Transform(x,iSector,0,1);
double y[3] = {x[0], x[1], x[2] };
cl!=fClusters.end(); cl++) {
str << " 0x" << hex << setw(8) << setfill('0') << cl->first << dec << cl->second << endl;
}
- out << str;
+ out << str.str();
}
AliHLTSpacePointContainer* AliHLTTPCHWCFSpacePointContainer::SelectByMask(AliHLTUInt32_t mask, bool /*bAlloc*/) const
<< " " << setw(5) << decoder->GetCharge(fIndex)
<< " " << setw(5) << decoder->GetQMax(fIndex)
<< " " << fTrackId << " " << fMCId << " " << fUsed;
- out << str;
+ out << str.str();
}
ostream& operator<<(ostream &out, const AliHLTTPCHWCFSpacePointContainer::AliHLTTPCHWCFSpacePointProperties& p)
cl!=fClusters.end(); cl++) {
str << " 0x" << hex << setw(8) << setfill('0') << cl->first << dec << cl->second << endl;
}
- out << str;
+ out << str.rdbuf();
}
AliHLTSpacePointContainer* AliHLTTPCRawSpacePointContainer::SelectByMask(AliHLTUInt32_t mask, bool /*bAlloc*/) const
<< " " << setw(5) << fpCluster->GetCharge()
<< " " << setw(5) << fpCluster->GetQMax()
<< " " << fTrackId << " " << fMCId << " " << fUsed;
- out << str;
+ out << str.rdbuf();
}
ostream& operator<<(ostream &out, const AliHLTTPCRawSpacePointContainer::AliHLTTPCRawSpacePointProperties& p)
}
transform->SetCurrentRecoParam((AliTPCRecoParam*)AliTPCReconstructor::GetRecoParam());
- double xx[3] = {cluster->GetRow(), cluster->GetPad(), cluster->GetTimeBin()};
+ double xx[3] = {static_cast<double>(cluster->GetRow()), cluster->GetPad(), cluster->GetTimeBin()};
int id[1] = {cluster->GetDetector()};
transform->Transform( xx, id, 0, 1 );
Int_t nTimeBins = tpcParam->GetMaxTBin();
Int_t is[]={0};
bool sign = 0;
- for( fLastTimeBin=0; fLastTimeBin<nTimeBins; fLastTimeBin++){
- Double_t xx[]={0,0,fLastTimeBin};
+ for( fLastTimeBin=0; fLastTimeBin<nTimeBins; fLastTimeBin++){
+ // static cast is okay since fLastTimeBin has limited value range
+ Double_t xx[]={0,0,static_cast<Double_t>(fLastTimeBin)};
fOrigTransform->Transform(xx,is,0,1);
bool s = (xx[2]>=0);
if( fLastTimeBin==0 ) sign = s;
for( Int_t j=0; j<fRows[iSector][iRow]->fSpline[i].GetNPoints(); j++){
Float_t pad, time;
fRows[iSector][iRow]->fSpline[i].GetAB(j,pad,time);
- Double_t xx[]={iRow,pad,time};
+ Double_t xx[]={static_cast<Double_t>(iRow),pad,time};
fOrigTransform->Transform(xx,is,0,1);
fRows[iSector][iRow]->fSpline[i].Fill(j,xx);
}
for (vector<AliHLTGlobalBarrelTrack>::iterator element=tracks.begin();
element!=tracks.end(); element++) {
Float_t points[4] = {
- element->GetX(),
- element->GetY(),
- element->GetLastPointX(),
- element->GetLastPointY()
+ static_cast<Float_t>(element->GetX()),
+ static_cast<Float_t>(element->GetY()),
+ static_cast<Float_t>(element->GetLastPointX()),
+ static_cast<Float_t>(element->GetLastPointY())
};
Int_t mcLabel = -1;