Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8309001
RivetAIDA.hh
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
RivetAIDA.hh
View Options
// $Id: $
#ifndef RIVETAIDA_HH
#define RIVETAIDA_HH 1
/// @author Andy Buckley
/// @date 2007-01-23
// Include files
#include
"Rivet/Rivet.hh"
#include
"AIDA/IAnalysisFactory.h"
#include
"AIDA/IHistogramFactory.h"
#include
"AIDA/IHistogram1D.h"
#include
"AIDA/ITreeFactory.h"
#include
"AIDA/IDataPointSetFactory.h"
#include
"AIDA/IDataPointSet.h"
#include
"AIDA/IDataPoint.h"
#include
"AIDA/IMeasurement.h"
#include
"AIDA/ITree.h"
#include
"AIDA/IAxis.h"
namespace
Rivet
{
/// Typedef for a collection of bin edges.
typedef
vector
<
double
>
BinEdges
;
/// Function to get a map of all the bin edge vectors in a paper with the
/// given @a papername.
const
map
<
string
,
BinEdges
>
getBinEdges
(
string
papername
);
/// Get the file system path to the AIDA reference file for this paper.
const
string
getDataPath
(
string
papername
);
/// Normalize the histogram to @a norm .
inline
void
normalize
(
AIDA
::
IHistogram1D
*
histo
,
const
double
norm
=
1.0
)
{
assert
(
norm
!=
0.0
);
double
area
=
0
;
for
(
int
i
=
0
;
i
<
histo
->
axis
().
bins
();
++
i
)
{
area
+=
histo
->
binHeight
(
i
)
*
histo
->
axis
().
binWidth
(
i
);
}
if
(
area
!=
0
)
{
histo
->
scale
(
norm
/
area
);
}
}
}
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Dec 21, 1:54 PM (15 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4023035
Default Alt Text
RivetAIDA.hh (1 KB)
Attached To
rRIVETSVN rivetsvn
Event Timeline
Log In to Comment