Double_t dzz = 0.;
Double_t dxz = 0.;
for(Int_t iDigit=0; iDigit < fNCells; iDigit++) {
- Int_t relid[4] ;
Float_t xi ;
Float_t zi ;
phosgeom->AbsToRelNumbering(fCellsAbsId[iDigit], relid) ;
newRP->AddDigit(*digitMax,maxAtEnergy[iMax]);
//Neighbous ( matrix 3x3 around the local maximum)
- for(Int_t iDigit=0; iDigit<nDigits; iDigit++)
+ for(iDigit=0; iDigit<nDigits; iDigit++)
{
AliPHOSDigit* digit = (AliPHOSDigit*)fLoader->Digits()->At( digitsList[iDigit] );
Float_t eDigit = energies[iDigit];
CalculateEEtaPhi(digit,e,eta,phi) ;
jet->AddDigit(e,eta,phi,-1) ;
//loop over left digits
- for(Int_t iDigit = 0 ; iDigit < copyDigits->GetEntries() ; iDigit++){
+ for(iDigit = 0 ; iDigit < copyDigits->GetEntries() ; iDigit++){
if(iDigit!= ind){ //first digit already in jet
digit = static_cast<AliPHOSDigit *>(copyDigits->At(iDigit));
CalculateEEtaPhi(digit,e,eta,phi) ;
}
}
//____________________________________________________________________________
-void AliPHOSOnlineMonitor::ScanEdep(TClonesArray * digits){
+void AliPHOSOnlineMonitor::ScanEdep(TClonesArray * /*digits*/){
//Fill 2D distribution of ADC values in NEL and WEL events
// AliPHOSGetter * gime = AliPHOSGetter::Instance() ;
// AliPHOSCalibrationDB *cdb = 0 ;
rp->SetLastDaughter(-1);
rp->SetPolarisation(0,0,0);
//Set the position in global coordinate system from the RecPoint
- AliPHOSTrackSegment * ts = static_cast<AliPHOSTrackSegment *>(fTrackSegments->At(rp->GetPHOSTSIndex()));
- AliPHOSEmcRecPoint * erp = static_cast<AliPHOSEmcRecPoint *>(fEMCRecPoints->At(ts->GetEmcIndex()));
+ AliPHOSTrackSegment * ts1 = static_cast<AliPHOSTrackSegment *>(fTrackSegments->At(rp->GetPHOSTSIndex()));
+ AliPHOSEmcRecPoint * erp = static_cast<AliPHOSEmcRecPoint *>(fEMCRecPoints->At(ts1->GetEmcIndex()));
TVector3 pos ;
fGeom->GetGlobalPHOS(erp, pos) ;
rp->SetPos(pos);
iLG++ ;
digLG = dynamic_cast<AliPHOSDigit*>(tmpLG.At(iLG)) ;
}
- Int_t absId=digHG->GetId() ;
- Int_t relId[4] ;
+ absId=digHG->GetId() ;
fGeom->AbsToRelNumbering(absId,relId) ;
if(digLG && digHG->GetId() == digLG->GetId()){ //we found pair
track = fESD->GetTrack(iClosestTrack);
if (track->GetPxPyPzAt(rCPV, fESD->GetMagneticField(), pxyz)) { // track momentum ibid.
vecP.SetXYZ(pxyz[0],pxyz[1],pxyz[2]);
- Int_t dummyMod ;
fGeom->ImpactOnEmc(vtxCPV,vecP.Theta(),vecP.Phi(),dummyMod,zCPV,xCPV) ;
}
}
Int_t ncl=cArray.GetEntriesFast();
AliPHOSEmcRecPoint *bestCluster=0; // The "best" cluster
Double_t maxd2=400; // (cm^2)
- for (Int_t i=0; i<ncl; i++) {
- AliPHOSEmcRecPoint *c=(AliPHOSEmcRecPoint *)cArray.UncheckedAt(i);
+ for (Int_t j=0; j<ncl; j++) {
+ AliPHOSEmcRecPoint *c=(AliPHOSEmcRecPoint *)cArray.UncheckedAt(j);
if (c->TestBit(14)) continue; // This clusters is "used"
ClassImp(AliPHOSv1)
//____________________________________________________________________________
-AliPHOSv1::AliPHOSv1()
+AliPHOSv1::AliPHOSv1() : fCPVDigits(0)
{
//Def ctor.
}
//____________________________________________________________________________
AliPHOSv1::AliPHOSv1(const char *name, const char *title):
- AliPHOSv0(name,title)
+ AliPHOSv0(name,title), fCPVDigits(new TClonesArray("AliPHOSCPVDigit",20))
{
//
// We store hits :
fVecBGlo[iIdx] -= fVecBGloCorr[iIdxIdx];
for (jIdxIdx=0; jIdxIdx<=iIdxIdx; jIdxIdx++) {
- int jIdx = fCGLRow2Glo[jIdxIdx];
+ jIdx = fCGLRow2Glo[jIdxIdx];
fMatCGlo[iIdx][jIdx] -= fMatCGloCorr[iIdxIdx][jIdxIdx];
fMatCGlo[jIdx][iIdx] = fMatCGlo[iIdx][jIdx];
}
{
// Retrieve the list of QA data for a given detector and a given task
TObjArray * rv = NULL ;
- TString tmp(AliQA::GetQARefStorage()) ;
- if ( tmp.IsNull() ) {
+ if ( !strlen(AliQA::GetQARefStorage()) ) {
AliError("No storage defined, use AliQA::SetQARefStorage") ;
return NULL ;
}
if ( tmp.Contains(AliQA::GetLabLocalOCDB()) )
man->SetDefaultStorage(AliQA::GetQARefStorage()) ;
else {
- TString tmp(AliQA::GetQARefDefaultStorage()) ;
- tmp.Append(year) ;
- tmp.Append("?user=alidaq") ;
- man->SetDefaultStorage(tmp.Data()) ;
+ TString tmp1(AliQA::GetQARefDefaultStorage()) ;
+ tmp1.Append(year) ;
+ tmp1.Append("?user=alidaq") ;
+ man->SetDefaultStorage(tmp1.Data()) ;
}
}
man->SetSpecificStorage("*", AliQA::GetQARefStorage()) ;
}
-TNamed* AliReconstruction::CopyFileToTNamed(TString fPath,TString fName){
+TNamed* AliReconstruction::CopyFileToTNamed(TString fPath,TString pName){
// Dump a file content into a char in TNamed
ifstream in;
in.open(fPath.Data(),ios::in | ios::binary|ios::ate);
in.read (memblock, kBytes);
in.close();
TString fData(memblock,kBytes);
- fn = new TNamed(fName,fData);
+ fn = new TNamed(pName,fData);
printf("fData Size: %d \n",fData.Sizeof());
- printf("fName Size: %d \n",fName.Sizeof());
+ printf("pName Size: %d \n",pName.Sizeof());
printf("fn Size: %d \n",fn->Sizeof());
delete[] memblock;
}
return fn;
}
-void AliReconstruction::TNamedToFile(TTree* fTree, TString fName){
+void AliReconstruction::TNamedToFile(TTree* fTree, TString pName){
// This is not really needed in AliReconstruction at the moment
// but can serve as a template
TList *fList = fTree->GetUserInfo();
- TNamed *fn = (TNamed*)fList->FindObject(fName.Data());
+ TNamed *fn = (TNamed*)fList->FindObject(pName.Data());
printf("fn Size: %d \n",fn->Sizeof());
- TString fTmp(fn->GetName()); // to be 100% sure in principle fName also works
+ TString fTmp(fn->GetName()); // to be 100% sure in principle pName also works
const char* cdata = fn->GetTitle();
printf("fTmp Size %d\n",fTmp.Sizeof());
int size = fn->Sizeof()-fTmp.Sizeof()-sizeof(UChar_t)-sizeof(Int_t); // see dfinition of TString::SizeOf()...
printf("calculated size %d\n",size);
- ofstream out(fName.Data(),ios::out | ios::binary);
+ ofstream out(pName.Data(),ios::out | ios::binary);
out.write(cdata,size);
out.close();
Int_t nclus = fClusters.GetEntriesFast();
if( !nclus ) return activeDet;
- for( Int_t j=0; j<nclus; j++ ) {
+ for( Int_t j=0; j<nclus; ++j ) {
TString detStr = ((AliTriggerCluster*)fClusters.At(j))->GetDetectorsInCluster();
TObjArray* det = detStr.Tokenize(" ");
Int_t ndet = det->GetEntriesFast();
- for( Int_t j=0; j<ndet; j++ ) {
- if( activeDet.Contains( ((TObjString*)det->At(j))->String() ) )continue;
+ for( Int_t k=0; k<ndet; ++k ) {
+ if( activeDet.Contains( ((TObjString*)det->At(k))->String() ) )continue;
activeDet.Append( " " );
- activeDet.Append( ((TObjString*)det->At(j))->String() );
+ activeDet.Append( ((TObjString*)det->At(k))->String() );
}
}
return activeDet;