FastJet  3.1.0-beta.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups 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 }