// --- Standard library ---
-#include <iostream.h>
-
// --- AliRoot header files ---
#include "AliPHOSCpvRecPoint.h"
-#include "AliPHOSGetter.h"
+#include "AliPHOSLoader.h"
ClassImp(AliPHOSCpvRecPoint)
//____________________________________________________________________________
fLengZ = -1;
}
+//____________________________________________________________________________
+AliPHOSCpvRecPoint::AliPHOSCpvRecPoint(const char * opt) : AliPHOSEmcRecPoint(opt)
+{
+ // ctor
+
+ fLengX = -1;
+ fLengZ = -1;
+ }
+
//____________________________________________________________________________
AliPHOSCpvRecPoint::~AliPHOSCpvRecPoint()
{
// dtor
}
-
//____________________________________________________________________________
Bool_t AliPHOSCpvRecPoint::AreNeighbours(AliPHOSDigit * digit1, AliPHOSDigit * digit2 ) const
{
Bool_t aren = kFALSE ;
- AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
- AliPHOSGeometry * phosgeom = (AliPHOSGeometry*)gime->PHOSGeometry();
+ AliPHOSGeometry * phosgeom = AliPHOSLoader::GetPHOSGeometry();
Int_t relid1[4] ;
phosgeom->AbsToRelNumbering(digit1->GetId(), relid1) ;
}
//______________________________________________________________________________
-void AliPHOSCpvRecPoint::ExecuteEvent(Int_t event, Int_t px, Int_t py) const
+void AliPHOSCpvRecPoint::ExecuteEvent(Int_t, Int_t, Int_t ) const
{
// // Execute action corresponding to one event
// // This member function is called when a AliPHOSRecPoint is clicked with the locator
// // static Int_t pxold, pyold;
-// AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
+// AliPHOSLoader * gime = AliPHOSLoader::GetInstance() ;
// static TGraph * digitgraph = 0 ;
AliPHOSDigit * digit ;
- AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
- AliPHOSGeometry * phosgeom = (AliPHOSGeometry*)gime->PHOSGeometry();
-
+ AliPHOSGeometry * phosgeom = AliPHOSLoader::GetPHOSGeometry();
+
Int_t iDigit;
for(iDigit=0; iDigit<fMulDigit; iDigit++) {
} else {
x = -1e6 ;
z = -1e6 ;
- if (fMulDigit != 0) cout << "AliPHOSCpvRecPoint: too low log weight factor "
- << "to evaluate cluster's center\n";
+ if (fMulDigit != 0)
+ Warning(":EvalLocalPosition", "Too low log weight factor to evaluate cluster's center" ) ;
}
fLocPos.SetX(x) ;
fLocPos.SetY(0.) ;
fLocPos.SetZ(z) ;
+ fLocPosM = 0 ;
}
AliPHOSDigit * digit ;
- AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
- AliPHOSGeometry * phosgeom = (AliPHOSGeometry*)gime->PHOSGeometry();
+ AliPHOSGeometry * phosgeom = AliPHOSLoader::GetPHOSGeometry();
const Int_t kMaxLeng=20;
Int_t idX[kMaxLeng], idZ[kMaxLeng];
//____________________________________________________________________________
-void AliPHOSCpvRecPoint::Print(Option_t * option)
+void AliPHOSCpvRecPoint::Print(Option_t *)
{
// Print the list of digits belonging to the cluster
- cout << "AliPHOSCpvRecPoint: " << endl ;
-
+ TString message ;
+ message = "AliPHOSCpvRecPoint: " ;
+ message += "Digits # " ;
+ Info("Print", message.Data()) ;
+
Int_t iDigit;
- cout << "Digits # " ;
for(iDigit=0; iDigit<fMulDigit; iDigit++)
- cout << fDigitsList[iDigit] << " " ;
- cout << endl ;
+ Info("Print", " %d ", fDigitsList[iDigit]) ;
- cout << "Energies: " ;
+ Info("Print", "Energies: ") ;
for(iDigit=0; iDigit<fMulDigit; iDigit++)
- cout << fEnergyList[iDigit] << " " ;
- cout << endl ;
+ Info("Print", " %f ", fEnergyList[iDigit]) ;
- cout << " Multiplicity = " << fMulDigit << endl ;
- cout << " Cluster Energy = " << fAmp << endl ;
- cout << " Stored at position " << GetIndexInList() << endl ;
+ message = " Multiplicity = %d\n" ;
+ message += " Cluster Energy = %f\n" ;
+ message += " Stored at position %d\n" ;
+ Info("Print", message.Data(), fMulDigit, fAmp, GetIndexInList() ) ;
+
}