StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StJetMaker
mcparticles
StjMCParticleCutEta.h
1
// -*- mode: c++;-*-
2
// $Id: StjMCParticleCutEta.h,v 1.1 2008/11/27 07:40:02 tai Exp $
3
// Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4
#ifndef STJMCPARTICLECUTETA_H
5
#define STJMCPARTICLECUTETA_H
6
7
#include "StjMCParticleCut.h"
8
9
class
StjMCParticleCutEta
:
public
StjMCParticleCut
{
10
11
public
:
12
StjMCParticleCutEta
(
double
min = -10.0,
double
max = 10.0) :_min(min), _max(max) { }
13
virtual
~
StjMCParticleCutEta
() { }
14
15
bool
operator()(
const
StjMCParticle
& p4)
16
{
17
if
(p4.eta < _min)
return
true
;
18
19
if
(p4.eta > _max)
return
true
;
20
21
return
false
;
22
}
23
24
private
:
25
26
double
_min;
27
double
_max;
28
29
ClassDef(
StjMCParticleCutEta
, 1)
30
31
};
32
33
#endif // STJMCPARTICLECUTETA_H
StjMCParticle
Definition:
StjMCParticleList.h:12
StjMCParticleCutEta
Definition:
StjMCParticleCutEta.h:9
StjMCParticleCut
Definition:
StjMCParticleCut.h:11
Generated by
1.8.5