]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSJet.cxx
Updated histogram limits (PHOS energy)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSJet.cxx
index 5249d95005a50fa1d9e9ac32c79e9c2067aa3ede..c3cd8afe91a0e4a20ce1ff3dd3ad09fd9d98e44c 100644 (file)
 
 // --- AliRoot header files ---
 #include "AliPHOSJet.h"
-//  #include "AliPHOSGetter.h"
 
 ClassImp(AliPHOSJet)
   
 //____________________________________________________________________________ 
-AliPHOSJet::AliPHOSJet():TObject() {
-  //Inicilize members
-  fNpart = 0 ;
-  fList = 0 ;
-  //  fMode = 0 ;
-  fConeRad = 0 ;
-  fMaxConeMove = 0 ;
-  fMinConeMove = 0 ;
-  
-  fSumEnergy = 0 ;
-  fSumEta = 0 ;
-  fSumPhi = 0 ; 
-  fEnergy = 0 ;
-  fEta = 0 ;
-  fPhi = 0 ; 
-  fLEnergy = 0 ;
-  fLEta = 0 ;
-  fLPhi = 0 ; 
+AliPHOSJet::AliPHOSJet():
+  fNpart(0),
+  fList(0),
+  fConeRad(0),
+  fMaxConeMove(0),
+  fMinConeMove(0),
+  fSumEnergy(0),
+  fSumEta(0),
+  fSumPhi(0),
+  fEnergy(0),
+  fEta(0),
+  fPhi(0),
+  fLEnergy(0),
+  fLEta(0),
+  fLPhi(0) 
+{
+  //Initialize members
 }
 
+//____________________________________________________________________________ 
+AliPHOSJet::AliPHOSJet(const AliPHOSJet & jet) : 
+  TObject(jet),
+  fNpart(0),
+  fList(0),
+  fConeRad(0),
+  fMaxConeMove(0),
+  fMinConeMove(0),
+  fSumEnergy(0),
+  fSumEta(0),
+  fSumPhi(0),
+  fEnergy(0),
+  fEta(0),
+  fPhi(0),
+  fLEnergy(0),
+  fLEta(0),
+  fLPhi(0) 
+{
+  // copy ctor: no implementation yet
+  Fatal("cpy ctor", "not implemented") ;
+}
+
+
 //____________________________________________________________________________ 
 AliPHOSJet::~AliPHOSJet(){
   //dtor
@@ -66,7 +87,7 @@ AliPHOSJet::~AliPHOSJet(){
   
 }
 //____________________________________________________________________________ 
-void AliPHOSJet::AddParticle(const TParticle * p,const Int_t index){
+void AliPHOSJet::AddParticle(const TParticle * p, Int_t index){
   //adds particle to jet. Calculates change in jet direction, 
   //due to addition of this particle and if it is smaller, than fMaxDev, 
   //add particle, axcept new direction and return true.
@@ -101,7 +122,7 @@ void AliPHOSJet::AddParticle(const TParticle * p,const Int_t index){
   }
 }
 //____________________________________________________________________________ 
-void AliPHOSJet::AddDigit(const Double_t e,const Double_t eta,const Double_t phi, const Int_t index){
+void AliPHOSJet::AddDigit(Double_t e, Double_t eta, Double_t phi, Int_t index){
   //adds particle to jet. Calculates change in jet direction, 
   //due to addition of this particle and if it is smaller, than fMaxDev, 
   //add particle, axcept new direction and return true.
@@ -155,7 +176,7 @@ void AliPHOSJet::AddDigit(const Double_t e,const Double_t eta,const Double_t phi
 //   case 1: 
 //     return AcceptConeDeviation(dEta,dPhi,p->Energy() );
 //   default:
-//     Error("IsInCone","Unknown mode of cone calculation %d \n",mode );
+//     AliError(Form("Unknown mode of cone calculation %d \n",mode ));
 //   }
 //   return kFALSE ;
 //}
@@ -180,7 +201,7 @@ Bool_t AliPHOSJet::AcceptConeDeviation(const TParticle * p)const
     return kFALSE ;
 }
 //____________________________________________________________________________ 
-Bool_t AliPHOSJet::AcceptConeDeviation(const Double_t e,const Double_t eta,const Double_t phi)const
+Bool_t AliPHOSJet::AcceptConeDeviation(Double_t e, Double_t eta, Double_t phi)const
 { //Calculate cone deviation in case of inclusion of the given
   //particle to jet. 
 
@@ -223,7 +244,7 @@ Bool_t AliPHOSJet::IsInCone(const TParticle * p)const
     return kFALSE ;
 }
 //____________________________________________________________________________ 
-Bool_t AliPHOSJet::IsInCone(const Double_t e,const Double_t eta,const Double_t phi)const
+Bool_t AliPHOSJet::IsInCone(Double_t eta, Double_t phi)const
 {
   //Says if particle is inside the defined cone
   Double_t dEta ;
@@ -282,7 +303,7 @@ void AliPHOSJet::CalculateAll(void){
   fSumPhi = 0. ;
 }
 //____________________________________________________________________________ 
-void AliPHOSJet::Print(Option_t * option){
+void AliPHOSJet::Print(const Option_t *) const {
   //Print jet parameters
   printf("-------------- AliPHOSJet ------------\n") ;
   printf(" Energy............. %f \n",fEnergy) ;