ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
tree
geant4-10.6-release
config
environments
examples
source
analysis
digits_hits
error_propagation
event
externals
clhep
include
src
AxisAngle.cc
BasicVector3D.cc
Boost.cc
BoostX.cc
BoostY.cc
BoostZ.cc
DoubConv.cc
DualRand.cc
EngineFactory.cc
engineIDulong.cc
erfQ.cc
EulerAngles.cc
Evaluator.cc
flatToGaussian.cc
gammln.cc
JamesRandom.cc
LorentzRotation.cc
LorentzRotationC.cc
LorentzRotationD.cc
LorentzVector.cc
LorentzVectorB.cc
LorentzVectorC.cc
LorentzVectorK.cc
LorentzVectorL.cc
LorentzVectorR.cc
MixMaxRng.cc
MTwistEngine.cc
NonRandomEngine.cc
Normal3D.cc
Plane3D.cc
Point3D.cc
RandBinomial.cc
RandBit.cc
RandBreitWigner.cc
RandChiSquare.cc
RandExponential.cc
RandExpZiggurat.cc
RandFlat.cc
RandGamma.cc
RandGauss.cc
RandGaussQ.cc
RandGaussZiggurat.cc
RandGeneral.cc
RandLandau.cc
Random.cc
RandomEngine.cc
RandPoisson.cc
RandPoissonQ.cc
RandStudentT.cc
RanecuEngine.cc
Ranlux64Engine.cc
RanluxEngine.cc
RanshiEngine.cc
Rotation.cc
RotationA.cc
RotationC.cc
RotationE.cc
RotationInterfaces.cc
RotationIO.cc
RotationL.cc
RotationP.cc
RotationX.cc
RotationY.cc
RotationZ.cc
setStdMath.cc
setSystemOfUnits.cc
SpaceVector.cc
SpaceVectorD.cc
SpaceVectorP.cc
SpaceVectorR.cc
StaticRandomStates.cc
ThreeVector.cc
ThreeVectorR.cc
Transform3D.cc
TwoVector.cc
Vector3D.cc
ZMinput.cc
expat
zlib
g3tog4
geometry
global
graphics_reps
intercoms
interfaces
materials
parameterisations
particles
persistency
physics_lists
processes
readout
run
track
tracking
visualization
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
RandBit.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file RandBit.cc
1
// -*- C++ -*-
2
//
3
// -----------------------------------------------------------------------
4
// HEP Random
5
// --- RandBit ---
6
// class implementation file
7
// -----------------------------------------------------------------------
8
// This file is part of Geant4 (simulation toolkit for HEP).
9
10
// =======================================================================
11
// M Fischler - Created from RandFlat.cc, deleting almost all the content
12
// since inheritance takes care of it. 2/15/00
13
// M Fischler - put and get to/from streams 12/10/04
14
// =======================================================================
15
16
#include "
CLHEP/Random/RandBit.h
"
17
#include <string>
18
19
namespace
CLHEP {
20
21
std::string
RandBit::name
()
const
{
return
"RandBit"
;}
22
23
RandBit::~RandBit
() {
24
}
25
26
std::ostream &
RandBit::put
( std::ostream & os )
const
{
27
os <<
" "
<<
name
() <<
"\n"
;
28
RandFlat::put
(os);
29
return
os;
30
}
31
32
std::istream &
RandBit::get
( std::istream & is ) {
33
std::string inName;
34
is >> inName;
35
if
(inName !=
name
()) {
36
is.clear(std::ios::badbit | is.rdstate());
37
std::cerr <<
"Mismatch when expecting to read state of a "
38
<<
name
() <<
" distribution\n"
39
<<
"Name found was "
<< inName
40
<<
"\nistream is left in the badbit state\n"
;
41
return
is;
42
}
43
RandFlat::get
(is);
44
return
is;
45
}
46
47
}
// namespace CLHEP
48
geant4
tree
geant4-10.6-release
source
externals
clhep
src
RandBit.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:14
using
1.8.2 with
ECCE GitHub integration