* provided "as is" without express or implied warranty. *
**************************************************************************/
+/* $Id$ */
+
//_________________________________________________________________________
// Class to calculate jet chararacteristics
//
+// This class implements for PHOS a jet finder for PHOS. It depends on a
+// energy seed
+// minimum energy, cone radius and movement of the cone.
//*-- Author : D.Peressounko
//////////////////////////////////////////////////////////////////////////////
//____________________________________________________________________________
AliPHOSJet::AliPHOSJet():TObject() {
+ //Inicilize members
fNpart = 0 ;
fList = 0 ;
// fMode = 0 ;
//____________________________________________________________________________
AliPHOSJet::~AliPHOSJet(){
+ //dtor
if(fList){
delete fList ;
fList = 0 ;
}
//____________________________________________________________________________
-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.
}
}
//____________________________________________________________________________
-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.
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.
}
//____________________________________________________________________________
Bool_t AliPHOSJet::IsInCone(const TParticle * p)const
-{//
+{
+ //Say if particle is inside the defined cone
Double_t dEta ;
Double_t dPhi ;
if(!fEnergy){ //Final values not calculated yet, use intermediate
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 ;
Double_t dPhi ;
if(!fEnergy){ //Final values not calculated yet, use intermediate
}
//____________________________________________________________________________
void AliPHOSJet::CalculateAll(void){
-
+ //Calculate all jet parameters
if(fSumEnergy==0)
return ; //Nothing to calculate
fSumPhi = 0. ;
}
//____________________________________________________________________________
-void AliPHOSJet::Print(Option_t * option){
+void AliPHOSJet::Print(){
+ //Print jet parameters
printf("-------------- AliPHOSJet ------------\n") ;
printf(" Energy............. %f \n",fEnergy) ;
printf(" Eta................ %f \n",fEta ) ;
printf(" N particles in jet %d \n",fNpart) ;
printf("----------------------------------\n") ;
}
+
+
+