FastJet  3.1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
88-HI-pt-asymmetry.cc
1 #include "fastjet/ClusterSequeneArea.hh"
2 #include "fastjet/tools/Selector.hh"
3 #include "fastjet/tools/BackgroundEstimator"
4 #include<iostream> // needed for io
5 
6 using namespace std;
7 using namespace fastjet;
8 
9 
10 int main() {
11 
12  Selector jet_acceptance = SelectorPtMin(25.0) && SelectorAbsRapMax(2.8);
13  Selector background_acceptance = SelectorStripRange(1.0) * (!SelectorNHardest(2));
14  JetDefinition jet_def_akt04 = JetDefinition(antikt_algorithm, 0.4);
15  JetDefinition jet_def_bkgd = JetDefinition(kt_algorithm, 0.4);
16  AreaDefinition area_def; // can the default work here?
17 
18  // read in an event
19  vector<PseudoJet> input_particles;
20  double px, py , pz, E;
21  while (cin >> px >> py >> pz >> E) {
22  input_particles.push_back(fastjet::PseudoJet(px,py,pz,E));
23  }
24 
25  if (jets.size() > 2 && jets[0].perp() > 100) {
26  double A_J = (jets[0].perp()-jets[1].perp())/(jets[0].perp()+jets[1].perp());
27  }
28 }
Selector SelectorNHardest(unsigned int n)
select the n hardest objects
Definition: Selector.cc:1074
Selector SelectorAbsRapMax(double absrapmax)
select objects with |rap| <= absrapmax
Definition: Selector.cc:880
class that holds a generic area definition
Selector SelectorPtMin(double ptmin)
select objects with pt >= ptmin
Definition: Selector.cc:681
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
Class to contain pseudojets, including minimal information of use to jet-clustering routines...
Definition: PseudoJet.hh:67
class that is intended to hold a full definition of the jet clusterer