ATLAS Offline Software
Loading...
Searching...
No Matches
TestBeam
TBRec
src
TBPreScalerStreamerTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TBREC_TBPRESCALERSTREAMERTOOL_H
6
#define TBREC_TBPRESCALERSTREAMERTOOL_H
7
8
#include "
TBEventStreamerTool.h
"
9
10
// This is needed for migration to CLHEP 1.9
11
// (Forward declarations of CLHEP classes will give rise to an error...)
12
// instead of ...
13
//class RanluxEngine;
14
// use this:
15
#include "CLHEP/Random/RanluxEngine.h"
16
17
#include <string>
18
#include <map>
19
#include <vector>
20
21
class
TBPreScalerStreamerTool
:
public
TBEventStreamerTool
22
{
23
public
:
24
25
TBPreScalerStreamerTool
(
const
std::string&
type
,
26
const
std::string& name,
27
const
IInterface* parent);
28
virtual
~TBPreScalerStreamerTool
();
29
30
virtual
StatusCode
initializeTool
()
override
;
31
32
virtual
StatusCode
accept
()
override
;
33
34
protected
:
35
37
// Properties //
39
40
double
m_acceptFraction
;
41
43
// Internal Stores //
45
46
CLHEP::RanluxEngine*
m_randomizer
;
47
49
// Internal Helpers //
51
52
};
53
#endif
TBEventStreamerTool.h
TBEventStreamerTool::TBEventStreamerTool
TBEventStreamerTool(const std::string &name, const std::string &type, const IInterface *parent)
Definition
TBEventStreamerTool.cxx:8
TBPreScalerStreamerTool::~TBPreScalerStreamerTool
virtual ~TBPreScalerStreamerTool()
Definition
TBPreScalerStreamerTool.cxx:26
TBPreScalerStreamerTool::initializeTool
virtual StatusCode initializeTool() override
Definition
TBPreScalerStreamerTool.cxx:29
TBPreScalerStreamerTool::TBPreScalerStreamerTool
TBPreScalerStreamerTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TBPreScalerStreamerTool.cxx:15
TBPreScalerStreamerTool::accept
virtual StatusCode accept() override
Definition
TBPreScalerStreamerTool.cxx:47
TBPreScalerStreamerTool::m_randomizer
CLHEP::RanluxEngine * m_randomizer
Definition
TBPreScalerStreamerTool.h:46
TBPreScalerStreamerTool::m_acceptFraction
double m_acceptFraction
Definition
TBPreScalerStreamerTool.h:40
type
Generated on
for ATLAS Offline Software by
1.14.0