Rivet  1.8.3
DISFinalState.hh
1 // -*- C++ -*-
2 #ifndef RIVET_DISFinalState_HH
3 #define RIVET_DISFinalState_HH
4 
5 #include "Rivet/Projections/FinalState.hh"
6 #include "Rivet/Projections/DISKinematics.hh"
7 
8 namespace Rivet {
9 
10 
14  class DISFinalState: public FinalState {
15  public:
16 
18  enum BoostType { HCM, BREIT };
19 
20 
22 
23 
25  DISFinalState(const DISKinematics& kinematicsp, BoostType boosttype)
26  : _boosttype(boosttype)
27  {
28  setName("DISFinalState");
29  addProjection(kinematicsp, "Kinematics");
30  }
31 
33  virtual const Projection* clone() const {
34  return new DISFinalState(*this);
35  }
36 
38 
39 
40  protected:
41 
43  void project(const Event& e);
44 
46  int compare(const Projection& p) const {
47  const DISFinalState& other = dynamic_cast<const DISFinalState&>(p);
48  return mkNamedPCmp(p, "Kinematics") || cmp(_boosttype, other._boosttype);
49  }
50 
51 
52  private:
53 
54  BoostType _boosttype;
55 
56  };
57 
58 
59 }
60 
61 #endif