Coding violations corrected.
[u/mrichter/AliRoot.git] / JETAN / AliDAJetHeader.cxx
CommitLineData
7c679be0 1// **************************************************************************
2// * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3// * *
4// * Author: The ALICE Off-line Project. *
5// * Contributors are mentioned in the code where appropriate. *
6// * *
7// * Permission to use, copy, modify and distribute this software and its *
8// * documentation strictly for non-commercial purposes is hereby granted *
9// * without fee, provided that the above copyright notice appears in all *
10// * copies and that both the copyright notice and this permission notice *
11// * appear in the supporting documentation. The authors make no claims *
12// * about the suitability of this software for any purpose. It is *
13// * provided "as is" without express or implied warranty. *
14// **************************************************************************
15
16//----------------------------------------------------------------------------
17// Deterministic Annealing Jet header class
18// Stores parameters of DA jet algorithm
19// Author: Davide Perrino (davide.perrino@ba.infn.it, davide.perrino@cern.ch)
20//----------------------------------------------------------------------------
21
22#include "AliDAJetHeader.h"
23
24ClassImp(AliDAJetHeader)
25
26
27//---------------------------------------------------------------------
28AliDAJetHeader::AliDAJetHeader():
36b5cc43 29 AliJetHeader("AliDAJetHeader"),
7c679be0 30 fSelectJets(kTRUE),
4be01860 31 fRadius(0.7),
32 fNclustMax(10),
474ff593 33 fFixedCl(kFALSE),
386b2e2f 34 fEtMin(10.),
35 fNeff(0),
36 fEtaEff(0.9)
7c679be0 37{
38 // Constructor
39}
4be01860 40
41//---------------------------------------------------------------------
42void AliDAJetHeader::SetRadius(Float_t radius)
43{
44 // The radius requested is used to estimate the number of clusters
45 // to be found, in order to obtain jets with the expected area.
386b2e2f 46 // It must not be intended as a sharp limit on the cluster radius
4be01860 47
386b2e2f 48 Int_t nclust = (Int_t) (4.*fEtaEff/(radius*radius)) + 1;
94384118 49 SetNclust(nclust);
4be01860 50}