]> git.uio.no Git - u/mrichter/AliRoot.git/blob - JETAN/AliDAJetHeader.cxx
Merge branch 'master_patch'
[u/mrichter/AliRoot.git] / JETAN / AliDAJetHeader.cxx
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 // 2011:
21 // Adding FiducialEta/PhiMin/Max setters/getters and variables to accommodate with reader/finder splitting 
22 //----------------------------------------------------------------------------
23
24 #include "AliDAJetHeader.h"
25
26 ClassImp(AliDAJetHeader)
27
28 ///////////////////////////////////////////////////////////////////////
29
30 AliDAJetHeader::AliDAJetHeader():
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())
42 {
43   // Constructor
44 }
45
46 //---------------------------------------------------------------------
47 void AliDAJetHeader::SetRadius(Float_t radius)
48 {
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
52     
53   Int_t nclust = (Int_t) (4.*fEtaEff/(radius*radius)) + 1;
54   SetNclust(nclust);
55
56 }