]> git.uio.no Git - u/mrichter/AliRoot.git/blob - JETAN/AliFastJetHeaderV1.cxx
repairing server's action after EOR signal
[u/mrichter/AliRoot.git] / JETAN / AliFastJetHeaderV1.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 /* $Id$ */
17
18 //---------------------------------------------------------------------
19 // FastJet v2.3.4 finder algorithm interface
20 // Finder Header Class 
21 // Author: Rafael.Diaz.Valdes@cern.ch
22 //---------------------------------------------------------------------
23
24 #include <Riostream.h>
25 #include <TMath.h>
26
27 #include "fastjet/AreaDefinition.hh"
28 #include "fastjet/JetDefinition.hh"
29
30 #include "AliFastJetHeaderV1.h"
31
32 using std::cout;
33 using std::endl;
34 ClassImp(AliFastJetHeaderV1)
35
36 ////////////////////////////////////////////////////////////////////////
37
38 AliFastJetHeaderV1::AliFastJetHeaderV1():
39   AliJetHeader("AliFastJetHeaderV1"),
40   fRparam(0.4),
41   fRparamBkg(0.4),  
42   fAlgorithm(fastjet::kt_algorithm),
43   fBGAlgorithm(fastjet::kt_algorithm),
44   fStrategy(fastjet::Best),
45   fRecombScheme(fastjet::BIpt_scheme),
46   fGhostEtaMax(2.0),
47   fGhostArea(0.01),
48   fActiveAreaRepeats(1),
49   fAreaType(fastjet::active_area), 
50   fPtMin(5.0),
51   fMinCellEt(0.),
52   fRapMax(0.),
53   fRapMin(0.),
54   fPhiMax(TMath::TwoPi()),
55   fPhiMin(0),
56   fUse4VectorArea(kFALSE),
57   fkBkgFastJetb(kFALSE),
58   fktBkgFastJetWoHardest(kFALSE)
59 {
60   // Default constructor
61   Double_t rapmax = fGhostEtaMax - fRparam;
62   Double_t rapmin = -fGhostEtaMax + fRparam;
63   SetRapRange(rapmin, rapmax);
64   
65 }
66
67 //____________________________________________________________________________
68 void AliFastJetHeaderV1::PrintParameters() const
69 {
70   // prints out parameters of jet algorithm
71
72   cout << "FastJet algorithm  parameters:"           << endl;
73   cout << "-- Jet Definition --- "                   << endl;
74   cout << "R "                                       << fRparam << endl;
75   cout << "Jet Algorithm "                           << fAlgorithm << endl; 
76   cout << "Bkg Jet Algorithm "                       << fBGAlgorithm << endl;
77   cout << "Strategy "                                << fStrategy << endl;  
78   cout << "Recombination Scheme "                    << fRecombScheme << endl; 
79   cout << "-- Ghosted Area Spec parameters --- "     << endl;
80   cout << "Ghost Eta Max "                           << fGhostEtaMax << endl;
81   cout << "Ghost Area "                              << fGhostArea << endl;
82   cout << "Active Area Repeats "                     << fActiveAreaRepeats << endl;
83   cout << "-- Area Definition parameters --- "       << endl;
84   cout << "Area Type "                               << fAreaType << endl; 
85   cout << "-- Cluster Sequence Area parameters --- " << endl;
86   cout << "pt min "                                  << fPtMin << endl; 
87   cout << "-- Range Definition parameters --- "      << endl;
88   cout << " bkg rapidity range from  "               << fRapMin << " to " << fRapMax << endl;
89   cout << " bkg phi range from "                     << fPhiMin << " to " << fPhiMax << endl;
90
91 }