FastJet  3.2.0
test.cc
1 #include <fastjet/ClusterSequenceArea.hh>
2 #include "fastjet/tools/BackgroundEstimator.hh"
3 #include <iostream>
4 
5 using namespace fastjet;
6 using namespace std;
7 
8 class Test{
9 public:
10  Test(const BackgroundEstimator & bge) : _bge(bge){}
11  double get_rho(){ return _bge.rho();}
12 private:
13  BackgroundEstimator _bge;
14 };
15 
16 int main(){
17  vector<PseudoJet> input;
18  input.push_back(PtYPhiM(10.0,0.0,1.0,0.0));
20  AreaDefinition(active_area_explicit_ghosts, GhostedAreaSpec(5.0)));
21  Selector sel = SelectorAbsRapMax(4.0);
22 
23  BackgroundEstimator bge(csa, sel);
24 
25  Test test(bge);
26  cout << test.get_rho() << endl;
27 
28  return 0;
29 }
PseudoJet PtYPhiM(double pt, double y, double phi, double m)
return a pseudojet with the given pt, y, phi and mass
Definition: PseudoJet.cc:361
General class for user to obtain ClusterSequence with additional area information.
Selector SelectorAbsRapMax(double absrapmax)
select objects with |rap| <= absrapmax
Definition: Selector.cc:880
the longitudinally invariant kt algorithm
class that holds a generic area definition
int main()
an example program showing how to use fastjet
Definition: 01-basic.cc:50
the FastJet namespace
Class that encodes information about cuts and other selection criteria that can be applied to PseudoJ...
Definition: Selector.hh:149
Parameters to configure the computation of jet areas using ghosts.
class that is intended to hold a full definition of the jet clusterer