Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added more explanation to GeneratorInterface/GenFilters/interface/TotalKinematicsFilter.h #2103

Merged
merged 1 commit into from Jan 21, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 13 additions & 2 deletions GeneratorInterface/GenFilters/interface/TotalKinematicsFilter.h
@@ -1,8 +1,6 @@
#ifndef TotalKinematicsFilter_h
#define TotalKinematicsFilter_h

// Filter to select events with deviation from nominal total kinematics smaller than a tolerance parameter

// system include files
#include <memory>
// user include files
Expand All @@ -16,6 +14,16 @@
#include "DataFormats/HepMCCandidate/interface/GenParticle.h"
#include "DataFormats/Candidate/interface/Particle.h"

/** Filter to select events with deviation from nominal total
kinematics smaller than a tolerance parameter.

This filter adds up the momenta of all generated particles
(except the initial state protons) and requires that the sum of the
of the three-momenta is zero (within tolerance) and that the sum
of the energies is equal to the center of mass energy (within
tolerance). The center of mass energy is obtained from the
initial state protons. The tolerance is specified in GeV.
*/
class TotalKinematicsFilter : public edm::EDFilter
{
public:
Expand All @@ -28,7 +36,10 @@ class TotalKinematicsFilter : public edm::EDFilter
// ----------member data ---------------------------

edm::InputTag src_;

/** tolerance in GeV */
double tolerance_;

bool verbose_;

};
Expand Down