]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - JETAN/AliDAJetHeader.cxx
adding contructors and assignment operator for better usability; removing deprecated...
[u/mrichter/AliRoot.git] / JETAN / AliDAJetHeader.cxx
... / ...
CommitLineData
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():
29 AliJetHeader("AliDAJetHeader"),
30 fSelectJets(kTRUE),
31 fRadius(0.7),
32 fNclustMax(10),
33 fFixedCl(kFALSE),
34 fEtMin(10.),
35 fNeff(0),
36 fEtaEff(0.9)
37{
38 // Constructor
39}
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.
46 // It must not be intended as a sharp limit on the cluster radius
47
48 Int_t nclust = (Int_t) (4.*fEtaEff/(radius*radius)) + 1;
49 SetNclust(nclust);
50}