Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19244059
EvtAbsBinning.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
EvtAbsBinning.hh
View Options
/*****************************************************************************
* Project: BaBar detector at the SLAC PEP-II B-factory
* Package: EvtGenBase
* File: $Id: EvtAbsBinning.hh,v 1.2 2009-03-16 16:43:39 robbep Exp $
* Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
*
* Copyright (C) 2002 Caltech
*****************************************************************************/
/*
* Data point to bin value mapping
*/
#ifndef EVT_ABS_BINNING_HH
#define EVT_ABS_BINNING_HH
#define BIN_OUTSIDE -1
#include
<stdio.h>
template
<
class
T
>
class
EvtAbsBinning
{
public
:
EvtAbsBinning
()
{}
EvtAbsBinning
(
const
EvtAbsBinning
<
T
>&
other
)
{}
virtual
~
EvtAbsBinning
()
{}
virtual
EvtAbsBinning
<
T
>*
clone
()
const
=
0
;
virtual
int
getBin
(
const
T
&
point
)
const
=
0
;
virtual
T
getBinPoint
(
int
bin
)
const
=
0
;
virtual
double
size
(
int
bin
)
const
=
0
;
virtual
int
nTypes
()
const
=
0
;
virtual
char
*
typeLabel
(
int
i
)
const
{
char
*
a
=
new
char
[
128
];
sprintf
(
a
,
"%d"
,
i
);
return
a
;
}
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Sep 30, 4:38 AM (7 h, 25 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6496650
Default Alt Text
EvtAbsBinning.hh (1 KB)
Attached To
Mode
rEVTGEN evtgen
Attached
Detach File
Event Timeline
Log In to Comment