Rivet  1.8.3
CentralEtHCM.hh
1 // -*- C++ -*-
2 #ifndef RIVET_CentralEtHCM_HH
3 #define RIVET_CentralEtHCM_HH
4 
5 #include "Rivet/Particle.hh"
6 #include "Rivet/Event.hh"
7 #include "Rivet/Projections/DISFinalState.hh"
8 
9 namespace Rivet {
10 
11 
16  class CentralEtHCM : public Projection {
17  public:
18 
22  {
23  setName("CentralEtHCM");
24  addProjection(fs, "FS");
25  }
26 
28  virtual const Projection* clone() const {
29  return new CentralEtHCM(*this);
30  }
31 
32 
33  protected:
34 
36  void project(const Event& e);
37 
39  int compare(const Projection& p) const {
40  return mkNamedPCmp(p, "FS");
41  }
42 
43 
44  public:
45 
47  double sumEt() const { return _sumet; }
48 
49 
50  private:
51 
53  double _sumet;
54 
55  };
56 
57 }
58 
59 
60 #endif
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Definition: MC_JetAnalysis.hh:9
CentralEtHCM(const DISFinalState &fs)
Definition: CentralEtHCM.hh:21
double sumEt() const
The sum of the Et in the central rapidity bin.
Definition: CentralEtHCM.hh:47
Final state particles boosted to the hadronic center of mass system.
Definition: DISFinalState.hh:14
Definition: Event.hh:22
Summed of central particles in HCM system.
Definition: CentralEtHCM.hh:16
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Definition: Projection.cc:51
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Definition: ProjectionApplier.hh:113
void project(const Event &e)
Apply the projection on to the Event.
Definition: CentralEtHCM.cc:9
virtual const Projection * clone() const
Clone on the heap.
Definition: CentralEtHCM.hh:28
Base class for all Rivet projections.
Definition: Projection.hh:28
int compare(const Projection &p) const
Compare with other projections.
Definition: CentralEtHCM.hh:39