Fork me on GitHub

source: git/external/fastjet/ClusterSequence1GhostPassiveArea.hh@ 0b3c137

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 0b3c137 was 1d208a2, checked in by Pavel Demin <pavel.demin@…>, 8 years ago

update FastJet library to 3.2.1 and Nsubjettiness library to 2.2.4

  • Property mode set to 100644
File size: 3.8 KB
RevLine 
[35cdc46]1//FJSTARTHEADER
[1d208a2]2// $Id: ClusterSequence1GhostPassiveArea.hh 4047 2016-03-03 13:21:49Z soyez $
[d7d2da3]3//
[35cdc46]4// Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez
[d7d2da3]5//
6//----------------------------------------------------------------------
7// This file is part of FastJet.
8//
9// FastJet is free software; you can redistribute it and/or modify
10// it under the terms of the GNU General Public License as published by
11// the Free Software Foundation; either version 2 of the License, or
12// (at your option) any later version.
13//
14// The algorithms that underlie FastJet have required considerable
[35cdc46]15// development. They are described in the original FastJet paper,
16// hep-ph/0512210 and in the manual, arXiv:1111.6097. If you use
[d7d2da3]17// FastJet as part of work towards a scientific publication, please
[35cdc46]18// quote the version you use and include a citation to the manual and
19// optionally also to hep-ph/0512210.
[d7d2da3]20//
21// FastJet is distributed in the hope that it will be useful,
22// but WITHOUT ANY WARRANTY; without even the implied warranty of
23// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24// GNU General Public License for more details.
25//
26// You should have received a copy of the GNU General Public License
27// along with FastJet. If not, see <http://www.gnu.org/licenses/>.
28//----------------------------------------------------------------------
[35cdc46]29//FJENDHEADER
[d7d2da3]30
31#ifndef __FASTJET_CLUSTERSEQUENCE1GHOSTPASSIVEAREA_HH__
32#define __FASTJET_CLUSTERSEQUENCE1GHOSTPASSIVEAREA_HH__
33
34
35#include "fastjet/PseudoJet.hh"
36#include "fastjet/ClusterSequenceAreaBase.hh"
37#include "fastjet/ClusterSequenceActiveArea.hh"
38#include<iostream>
39#include<vector>
40
41FASTJET_BEGIN_NAMESPACE // defined in fastjet/internal/base.hh
42
43//using namespace std;
44
45/// @ingroup sec_area_classes
46/// \class ClusterSequence1GhostPassiveArea
47/// Like ClusterSequence with computation of the passive jet area by
48/// adding a single ghost
49///
50/// Class that behaves essentially like ClusterSequence except
51/// that it also provides access to the area of a jet (which
52/// will be a random quantity... Figure out what to do about seeds
53/// later...)
54///
55/// This class should not be used directly. Rather use
56/// ClusterSequenceArea
57class ClusterSequence1GhostPassiveArea : public ClusterSequenceActiveArea {
58public:
59
60 ClusterSequence1GhostPassiveArea() {}
61
62 /// constructor based on JetDefinition and 1GhostPassiveAreaSpec
63 template<class L> ClusterSequence1GhostPassiveArea
64 (const std::vector<L> & pseudojets,
65 const JetDefinition & jet_def_in,
66 const GhostedAreaSpec & area_spec,
67 const bool & writeout_combinations = false) ;
68
69 /// return an estimate for the number of empty jets -- one uses the
70 /// AreaBase one rather than the ActiveArea one (which for which we
71 /// do not have the information).
[1d208a2]72 virtual double n_empty_jets(const Selector & selector) const FASTJET_OVERRIDE {
[d7d2da3]73 return ClusterSequenceAreaBase::n_empty_jets(selector);
74 }
75
76protected:
77 /// does the initialisation and running specific to the passive
78 /// areas class
79 void _initialise_and_run_1GPA (const JetDefinition & jet_def_in,
80 const GhostedAreaSpec & area_spec,
81 const bool & writeout_combinations = false);
82
83private:
84
85 void _run_1GPA(const GhostedAreaSpec & area_spec);
86};
87
88
89
90
91template<class L> ClusterSequence1GhostPassiveArea::ClusterSequence1GhostPassiveArea
92(const std::vector<L> & pseudojets,
93 const JetDefinition & jet_def_in,
94 const GhostedAreaSpec & area_spec,
95 const bool & writeout_combinations) {
96
97 // transfer the initial jets (type L) into our own array
98 _transfer_input_jets(pseudojets);
99
100 // run the clustering for passive areas
101 _initialise_and_run_1GPA(jet_def_in, area_spec, writeout_combinations);
102
103}
104
105
106
107FASTJET_END_NAMESPACE
108
109#endif // __FASTJET_CLUSTERSEQUENCE1GHOSTPASSIVEAREA_HH__
Note: See TracBrowser for help on using the repository browser.