#include "AliMUONSegmentManuIndex.h"
#include "AliMUONSegmentPosition.h"
#include "AliMUONSegmentIndex.h"
+#include "AliLog.h"
//___________________________________________
ClassImp(AliMUONSegmentationDetectionElement)
{
// Protected copy constructor
- Fatal("AliMUONSegmentationDetectionElementModule", "Not implemented.");
+ AliFatal("Not implemented.");
}
//_________________________________________________
AliMUONSegmentationDetectionElement::~AliMUONSegmentationDetectionElement(){
}
}
if (!foundsegmentindex) {
- Warning("FindIndexFromPosition","Not found Index for position x=%5.2f y=%5.2f \n",x,y);
+ AliWarning(Form("Not found Index for position x=%5.2f y=%5.2f \n",x,y));
}
return foundsegmentindex;
}
// Getting AliMUONSegmentIndex from name of AliMUONSegmentManuIndex
if (fMapManuIndexIndex) return (AliMUONSegmentIndex*) fMapManuIndexIndex->GetValue(SegmentManuIndexName);
else {
- Warning("GetIndex","SegmentManuIndex %s out of DetectionElement Mapping %s",
- SegmentManuIndexName,fDetectionElementType.Data());
+ AliWarning(Form("SegmentManuIndex %s out of DetectionElement Mapping %s",
+ SegmentManuIndexName,fDetectionElementType.Data()));
return 0x0;
}
}
// Getting ManuIndex from manuname
if (fMapIndexManuIndex) return (AliMUONSegmentManuIndex*) fMapIndexManuIndex->GetValue(SegmentIndexName);
else {
- Warning("GetManuIndex","SegmentIndex %s out of Detection Element mapping %s",
- SegmentIndexName,fDetectionElementType.Data());
+ AliWarning(Form("SegmentIndex %s out of Detection Element mapping %s",
+ SegmentIndexName,fDetectionElementType.Data()));
return 0x0;
}
}
pady = segmentindex->GetPadY();
}
else {
- Warning("GetPadI","Not found Index for position x=%5.2f y=%5.2f \n",x,y);
+ AliWarning(Form("Not found Index for position x=%5.2f y=%5.2f \n",x,y));
}
}
//_________________________________________________
// Getting position from indexname
if (fMapIndexPosition) return (AliMUONSegmentPosition*) fMapIndexPosition->GetValue(SegmentIndexName);
else {
- Warning("GetPosition","SegmentIndex %s out of DetectionElement mapping %s",
- SegmentIndexName, fDetectionElementType.Data());
+ AliWarning(Form("SegmentIndex %s out of DetectionElement mapping %s",
+ SegmentIndexName, fDetectionElementType.Data()));
return 0x0;
}
}
// Getting index form positionname
if (fMapPositionIndex) return (AliMUONSegmentIndex*) fMapPositionIndex->GetValue(PositionName);
else {
- Warning("GetIndexFromPosition","SegmentPosition %s out of DetectionElement Mapping %s",
- PositionName,fDetectionElementType.Data());
+ AliWarning(Form("SegmentPosition %s out of DetectionElement Mapping %s",
+ PositionName,fDetectionElementType.Data()));
return 0x0;
}
}
// Getting AliMUONSegmentManuIndex objecto from manu index
if (fMapManuIndexIndex) return (AliMUONSegmentManuIndex*) fMapManuIndexIndex->FindObject(ManuIndexName);
else {
- Warning("FindManuIndex","SegmentManuIndex %s out of DetectionElement mapping %s",
- ManuIndexName,fDetectionElementType.Data());
+ AliWarning(Form("SegmentManuIndex %s out of DetectionElement mapping %s",
+ ManuIndexName,fDetectionElementType.Data()));
return 0x0;
}
}
// Getting
if (fMapIndexPosition) return (AliMUONSegmentIndex *) fMapIndexPosition->FindObject(IndexName);
else {
- Warning("FindIndex","SegmentIndex %s out of DetectionElement mapping %s",
- IndexName,fDetectionElementType.Data());
+ AliWarning(Form("SegmentIndex %s out of DetectionElement mapping %s",
+ IndexName,fDetectionElementType.Data()));
return 0x0;
}
}
Int_t icathode;
//Bendingplane
icathode=0;
- Info("ReadingSegmentationMappingFile","%s", fSegmentationMappingFileBending.Data());
+ AliInfo(Form("%s", fSegmentationMappingFileBending.Data()));
ReadingSegmentationMappingFile(fSegmentationMappingFileBending ,icathode);
//NonBendingplane
icathode=1;
- Info("Init","Reading mapping file is %s\n", fSegmentationMappingFileNonBending.Data());
+ AliInfo(Form("Reading mapping file is %s\n", fSegmentationMappingFileNonBending.Data()));
ReadingSegmentationMappingFile(fSegmentationMappingFileNonBending,icathode);
}
{
ifstream in( infile, ios::in);
if (!in) {
- Error("ReadingSegmentationMappingFile", "File not found.");
+ AliError("File not found.");
}
else {
Int_t id, ix, iy, idmanu, idchannel;