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
towers
StjTowerEnergyCutAdc.h
1
// -*- mode: c++;-*-
2
// $Id: StjTowerEnergyCutAdc.h,v 1.1 2008/11/27 07:35:27 tai Exp $
3
// Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4
#ifndef STJTOWERENERGYCUTADC_H
5
#define STJTOWERENERGYCUTADC_H
6
7
#include "StjTowerEnergyCut.h"
8
9
class
StjTowerEnergyCutAdc
:
public
StjTowerEnergyCut
{
10
11
public
:
12
StjTowerEnergyCutAdc
(
int
min = 0,
double
factor = 2.0)
13
: _min(min), _factor(factor) { }
14
virtual
~
StjTowerEnergyCutAdc
() { }
15
16
bool
operator()(
const
StjTowerEnergy
& tower)
17
{
18
if
(tower.adc - tower.pedestal <= _min)
return
true
;
19
20
if
(tower.adc - tower.pedestal <= _factor*tower.rms)
return
true
;
21
22
return
false
;
23
}
24
25
private
:
26
27
int
_min;
28
double
_factor;
29
30
ClassDef(
StjTowerEnergyCutAdc
, 1)
31
32
};
33
34
#endif // STJTOWERENERGYCUTADC_H
StjTowerEnergy
Definition:
StjTowerEnergyList.h:13
StjTowerEnergyCutAdc
Definition:
StjTowerEnergyCutAdc.h:9
StjTowerEnergyCut
Definition:
StjTowerEnergyCut.h:11
Generated by
1.8.5