]> git.uio.no Git - u/mrichter/AliRoot.git/blame - JETAN/AliDAJetHeader.cxx
Move JETANdev to JETAN (step 2)
[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)
139cbd96 20// 2011:
21// Adding FiducialEta/PhiMin/Max setters/getters and variables to accommodate with reader/finder splitting
7c679be0 22//----------------------------------------------------------------------------
23
24#include "AliDAJetHeader.h"
25
26ClassImp(AliDAJetHeader)
27
139cbd96 28///////////////////////////////////////////////////////////////////////
7c679be0 29
7c679be0 30AliDAJetHeader::AliDAJetHeader():
139cbd96 31 AliJetHeader("AliDAJetHeader"),
32 fSelectJets(kTRUE),
33 fNclustMax(10),
34 fFixedCl(kFALSE),
35 fEtMin(10.),
36 fNeff(0),
37 fEtaEff(0.9),
38 fFidEtaMin(-0.9),
39 fFidEtaMax(0.9),
40 fFidPhiMin(0.),
41 fFidPhiMax(2*TMath::Pi())
7c679be0 42{
139cbd96 43 // Constructor
7c679be0 44}
4be01860 45
46//---------------------------------------------------------------------
47void AliDAJetHeader::SetRadius(Float_t radius)
48{
139cbd96 49 // The radius requested is used to estimate the number of clusters
50 // to be found, in order to obtain jets with the expected area.
51 // It must not be intended as a sharp limit on the cluster radius
4be01860 52
386b2e2f 53 Int_t nclust = (Int_t) (4.*fEtaEff/(radius*radius)) + 1;
94384118 54 SetNclust(nclust);
139cbd96 55
4be01860 56}