Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
GeneratorInterface
HiGenCommon
interface
BaseHiGenEvtSelector.h
Go to the documentation of this file.
1
#ifndef __BaseHiGenEvtSelector_h_
2
#define __BaseHiGenEvtSelector_h_
3
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
#include "HepMC/GenEvent.h"
6
#include "HepMC/GenParticle.h"
7
8
class
BaseHiGenEvtSelector
{
9
public
:
10
BaseHiGenEvtSelector
(
const
edm::ParameterSet
&){;}
11
virtual
~BaseHiGenEvtSelector
(){;}
12
virtual
bool
filter
(HepMC::GenEvent *){
return
true
;}
13
bool
selectParticle
(
HepMC::GenParticle
* par,
int
status
,
int
pdg
/*Absolute*/
,
double
ptMin
,
double
etaMax
){
14
return
(par->status() == status &&
abs
(par->pdg_id()) == pdg && par->momentum().perp() > ptMin && fabs(par->momentum().eta()) < etaMax);
15
}
16
};
17
18
#endif
19
GenParticle.GenParticle
GenParticle
Definition:
GenParticle.py:18
BaseHiGenEvtSelector::~BaseHiGenEvtSelector
virtual ~BaseHiGenEvtSelector()
Definition:
BaseHiGenEvtSelector.h:11
BaseHiGenEvtSelector::selectParticle
bool selectParticle(HepMC::GenParticle *par, int status, int pdg, double ptMin, double etaMax)
Definition:
BaseHiGenEvtSelector.h:13
ParameterSet.h
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
BaseHiGenEvtSelector::filter
virtual bool filter(HepMC::GenEvent *)
Definition:
BaseHiGenEvtSelector.h:12
PtMinSelector_cfg.ptMin
tuple ptMin
Definition:
PtMinSelector_cfg.py:44
BaseHiGenEvtSelector::BaseHiGenEvtSelector
BaseHiGenEvtSelector(const edm::ParameterSet &)
Definition:
BaseHiGenEvtSelector.h:10
edm::ParameterSet
Definition:
ParameterSet.h:35
ntuplemaker.status
tuple status
Definition:
ntuplemaker.py:245
HLT_25ns14e33_v1_cff.etaMax
tuple etaMax
Definition:
HLT_25ns14e33_v1_cff.py:26058
BaseHiGenEvtSelector
Definition:
BaseHiGenEvtSelector.h:8
Generated for CMSSW Reference Manual by
1.8.5