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
fourvec
StjFourVecCutPt.h
1
// -*- mode: c++;-*-
2
// $Id: StjFourVecCutPt.h,v 1.1 2008/11/27 07:29:49 tai Exp $
3
// Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4
#ifndef STJFOURVECCUTPT_H
5
#define STJFOURVECCUTPT_H
6
7
#include "StjFourVecCut.h"
8
9
class
StjFourVecCutPt
:
public
StjFourVecCut
{
10
11
public
:
12
StjFourVecCutPt
(
double
min = 0,
double
max = 50000.0)
13
: _min(min), _max(max) { }
14
virtual
~
StjFourVecCutPt
() { }
15
16
bool
operator()(
const
StjFourVec
& p4)
17
{
18
if
(p4.pt <= _min)
return
true
;
19
20
if
(p4.pt > _max)
return
true
;
21
22
return
false
;
23
}
24
25
private
:
26
27
double
_min;
28
double
_max;
29
30
ClassDef(
StjFourVecCutPt
, 1)
31
32
};
33
34
#endif // STJFOURVECCUTPT_H
StjFourVecCut
Definition:
StjFourVecCut.h:11
StjFourVec
Definition:
StjFourVecList.h:12
StjFourVecCutPt
Definition:
StjFourVecCutPt.h:9
Generated by
1.8.5