Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CLHEP
CLHEP
Commits
22ed3447
Commit
22ed3447
authored
Mar 14, 2005
by
Lynn Garren
Browse files
*** empty log message ***
parent
38806809
Changes
2
Hide whitespace changes
Inline
Side-by-side
StdHep/StdHep/StdRunInfoConvert.icc
View file @
22ed3447
// $Id: StdRunInfoConvert.icc,v 1.1.1.1.2.
2
2005/03/14 1
7:36:31
garren Exp $
// $Id: StdRunInfoConvert.icc,v 1.1.1.1.2.
3
2005/03/14 1
8:27:47
garren Exp $
// ----------------------------------------------------------------------
//
// StdRunInfoConvert.icc
...
...
@@ -27,8 +27,8 @@ StdRunInfo * getRunInfoFromSTDCM( int irun )
(double)(*cm)->stdcm1()->stdxsec );
// convert doubles to longs and save
std::vector<unsigned long> state(4);
DoubleConversion::dto2longs((*cm)->stdcm1()->stdseed1,
*
state[0],
*
state[1]);
DoubleConversion::dto2longs((*cm)->stdcm1()->stdseed2,
*
state[2],
*
state[3]);
HepMC::
DoubleConversion::dto2longs((*cm)->stdcm1()->stdseed1,state[0],state[1]);
HepMC::
DoubleConversion::dto2longs((*cm)->stdcm1()->stdseed2,state[2],state[3]);
run->saveSeeds( state );
// save names
std::string gname = (*cm)->stdcm2()->generatorname;
...
...
@@ -49,13 +49,13 @@ bool RunInfoToSTDCM( StdRunInfo * run )
// convert longs to double
std::vector<unsigned long> state = run->seedArray();
std::vector<double> result;
for( unsigned int i=0; i<(
itsSeedList
.size()-1); ++i ) {
d
d =
DoubleConversion::longs2double(
*
state[i],
*
state[i+1]);
for( unsigned int i=0; i<(
state
.size()-1); ++i ) {
d
ouble dd = HepMC::
DoubleConversion::longs2double(state[i],state[i+1]);
++i;
result.push_back(dd);
}
if( r
un->
size() > 1 ) (*cm)->stdcm1()->stdseed1 = result[0];
if( r
un->
size() > 3 ) (*cm)->stdcm1()->stdseed2 = result[1];
if( r
esult.
size() > 1 ) (*cm)->stdcm1()->stdseed1 = result[0];
if( r
esult.
size() > 3 ) (*cm)->stdcm1()->stdseed2 = result[1];
// check run number
if( run->runNumber() == 0 ) return false;
return true;
...
...
StdHep/examples/GNUmakefile.example.in
View file @
22ed3447
...
...
@@ -169,12 +169,12 @@ examHerwigToStdHepXDR: $(HWGOBJS)
$(HerwigLIB) \
$(CRNLIB)/libpacklib.a $(LCXX) $(LOCAL)
readPythia: readPythia$(SFX).o $(READOBJS)
$(LIBNAME)
readPythia: readPythia$(SFX).o $(READOBJS)
$(CXX) -o $@ readPythia$(SFX).o $(READOBJS) \
$(LIBNAME) \
$(CRNLIB)/libpacklib.a $(LCXX) $(LOCAL)
readPythiaHerwig: readPythiaHerwig$(SFX).o $(READOBJS)
$(LIBNAME)
readPythiaHerwig: readPythiaHerwig$(SFX).o $(READOBJS)
$(CXX) -o $@ readPythiaHerwig$(SFX).o $(READOBJS) \
$(LIBNAME) \
$(CRNLIB)/libpacklib.a $(LCXX) $(LOCAL)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment