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
tracks
StjTrackCutFlag.h
1
// -*- mode: c++;-*-
2
// $Id: StjTrackCutFlag.h,v 1.2 2010/04/13 13:30:51 pibero Exp $
3
// Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4
#ifndef STJTRACKCUTFLAG_H
5
#define STJTRACKCUTFLAG_H
6
7
#include "StjTrackCut.h"
8
9
class
StjTrackCutFlag
:
public
StjTrackCut
{
10
11
public
:
12
StjTrackCutFlag
(Short_t min = 0,
13
Short_t max = kMaxShort)
14
: _min(min), _max(max) { }
15
virtual
~
StjTrackCutFlag
() { }
16
17
bool
operator()(
const
StjTrack
&
track
)
const
18
{
19
if
(track.flag <= _min)
return
true
;
20
21
if
(track.flag > _max)
return
true
;
22
23
return
false
;
24
}
25
26
private
:
27
28
Short_t _min;
29
Short_t _max;
30
31
ClassDef(
StjTrackCutFlag
, 1)
32
33
};
34
35
#endif // STJTRACKCUTFLAG_H
track
Definition:
MapTableTest.C:38
StjTrackCut
Definition:
StjTrackCut.h:11
StjTrack
Definition:
StjTrackList.h:12
StjTrackCutFlag
Definition:
StjTrackCutFlag.h:9
Generated by
1.8.5