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
StjMCParticleCutEtaForStatus.h
1
// -*- mode: c++;-*-
2
// $Id: StjMCParticleCutEtaForStatus.h,v 1.1 2008/11/27 07:40:02 tai Exp $
3
// Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4
#ifndef STJMCPARTICLECUTETAFORSTATUS_H
5
#define STJMCPARTICLECUTETAFORSTATUS_H
6
7
#include "StjMCParticleCut.h"
8
9
class
StjMCParticleCutEtaForStatus
:
public
StjMCParticleCut
{
10
11
public
:
12
StjMCParticleCutEtaForStatus
(
double
min = -10.0,
double
max = 10.0,
int
status = 1)
13
: _min(min), _max(max), _status(status) { }
14
virtual
~
StjMCParticleCutEtaForStatus
() { }
15
16
bool
operator()(
const
StjMCParticle
& p4)
17
{
18
if
(p4.status != _status)
return
false
;
19
20
if
(p4.eta < _min)
return
true
;
21
22
if
(p4.eta > _max)
return
true
;
23
24
return
false
;
25
}
26
27
private
:
28
29
double
_min;
30
double
_max;
31
32
int
_status;
33
34
ClassDef(
StjMCParticleCutEtaForStatus
, 1)
35
36
};
37
38
#endif // STJMCPARTICLECUTETAFORSTATUS_H
StjMCParticle
Definition:
StjMCParticleList.h:12
StjMCParticleCutEtaForStatus
Definition:
StjMCParticleCutEtaForStatus.h:9
StjMCParticleCut
Definition:
StjMCParticleCut.h:11
Generated by
1.8.5