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
StjMCParticleCutStatus.h
1
// -*- mode: c++;-*-
2
// $Id: StjMCParticleCutStatus.h,v 1.1 2008/11/27 07:40:04 tai Exp $
3
// Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4
#ifndef STJMCPARTICLECUTSTATUS_H
5
#define STJMCPARTICLECUTSTATUS_H
6
7
#include "StjMCParticleCut.h"
8
9
#include <set>
10
11
class
StjMCParticleCutStatus
:
public
StjMCParticleCut
{
12
13
public
:
14
StjMCParticleCutStatus
(
int
goodStatus = 1)
15
: _goodStatusSet(&goodStatus, &goodStatus + 1) { }
16
StjMCParticleCutStatus
(
int
nGoodStatuses,
int
* goodStatuses)
17
: _goodStatusSet(goodStatuses, goodStatuses + nGoodStatuses) { }
18
virtual
~
StjMCParticleCutStatus
() { }
19
20
bool
operator()(
const
StjMCParticle
& p4)
21
{
22
if
( _goodStatusSet.count(p4.status) == 0 )
return
true
;
23
24
return
false
;
25
}
26
27
private
:
28
29
std::set<int> _goodStatusSet;
30
ClassDef(
StjMCParticleCutStatus
, 1)
31
32
};
33
34
#endif // STJMCPARTICLECUTSTATUS_H
StjMCParticle
Definition:
StjMCParticleList.h:12
StjMCParticleCutStatus
Definition:
StjMCParticleCutStatus.h:11
StjMCParticleCut
Definition:
StjMCParticleCut.h:11
Generated by
1.8.5