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