Skip to content

Commit 2929bd9

Browse files
committed
More tests
1 parent cca2fdb commit 2929bd9

File tree

5 files changed

+29
-15
lines changed

5 files changed

+29
-15
lines changed

CHANGELOG

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ dataQED_WWexoticSpin0EvenResonances and dataQED_AAexoticSpin2Resonances
3838

3939
2015-01-20 Christophe Royon <[email protected]>, Murilo Rangel <[email protected]>
4040
* correct for normalisation for reggeon (applied in PDFs and not in flux)
41-
41+
4242
2014-11-26 Christophe Royon <[email protected]>
43-
* new code for heavy ion flux (nflux=11)
43+
* new code for heavy ion flux (nflux=11)
4444
* new cards to transmit BMIN
45-
* new code and fluxes for proton ion, ion proton via Pom/Photon exchange
45+
* new code and fluxes for proton ion, ion proton via Pom/Photon exchange
4646
* bug fix for photon pom
4747

4848
2014-09-11 Matthias Saimpert <[email protected]>
@@ -100,6 +100,6 @@ dataQED_WWexoticSpin0EvenResonances and dataQED_AAexoticSpin2Resonances
100100
ntuple.
101101

102102
2011-05-09 Oldrich Kepka <[email protected]>
103-
* Tagging version fpmc_v01-05 - cleanup of nutples, version for testing
103+
* Tagging version fpmc_v01-05 - cleanup of nutples, version for testing
104104

105105

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ project(FPMC)
33
set(PROJECT_VERSION 1)
44

55
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-long-long -Wno-deprecated-declarations -pedantic -std=c++11 -g")
6+
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -g -O1 -fno-automatic -fPIC")
67
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/cmake)
78

89
set(MODULES Fpmc Herwig Examples Tests)

Fpmc/interface/herwig.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
//-------------------------HERWIG common block -------------------------------------
55

6-
static const int nmxres = 501;
6+
static const int nmxres = 500;
77
static const int nmxsud = 1024; // max number of entries for Sudakov lookup table
88
static const int nmxcdk = 4000;
99
static const int nmxhep = 4000;
@@ -68,9 +68,9 @@ extern "C"
6868

6969
//--- arrays for particle properties (NMXRES = max no of particles defined)
7070
typedef struct {
71-
double RLTIM[nmxres], RMASS[nmxres], RSPIN[nmxres];
72-
int ICHRG[nmxres], IDPDG[nmxres],IFLAV[nmxres], NRES;
73-
int VTOCDK[nmxres], VTORDK[nmxres], QORQQB[nmxres], QBORQQ[nmxres]; // starting from 0...
71+
double RLTIM[nmxres+1], RMASS[nmxres+1], RSPIN[nmxres+1];
72+
int ICHRG[nmxres+1], IDPDG[nmxres+1],IFLAV[nmxres+1], NRES;
73+
int VTOCDK[nmxres+1], VTORDK[nmxres+1], QORQQB[nmxres+1], QBORQQ[nmxres+1]; // starting from 0...
7474
} hwprop_t;
7575
extern hwprop_t hwprop_;
7676

@@ -250,6 +250,8 @@ extern "C"
250250
#define hwuaem hwuaem_
251251

252252
//---------------------------------------------------------------
253+
void hwudat_();
254+
#define hwudat hwudat_
253255
void hweini_(); // initialise elementary process
254256
#define hweini hweini_
255257
void hwuine_(); // initialise event
@@ -278,6 +280,8 @@ extern "C"
278280
#define hwmevt hwmevt_
279281
void hwufne_(); // event generation completed, wrap up event, ...
280282
#define hwufne hwufne_
283+
void hwabeg_();
284+
#define hwabeg hwabeg_
281285

282286
#ifdef __cplusplus
283287
}

Fpmc/src/Fpmc.cc

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace fpmc
99
{}
1010

1111
Fpmc::Fpmc( const char* card ) :
12-
herwigVerbosity_( 1 ), maxEventsToPrint_( 2 ),
12+
herwigVerbosity_( 5 ), maxEventsToPrint_( 2 ),
1313
initialised_( false ),
1414
params_( FpmcParameters::parseCard( card ) ),
1515
debug_( false ), dbg_( std::cout )
@@ -36,7 +36,10 @@ namespace fpmc
3636
<< "UTYPINT = " << params_.getString( "typint" ) << std::endl
3737
<< "UTMASS = " << params_.getFloat( "tmass" ) << std::endl;
3838
}
39+
//--- initialise the common blocks
3940
initHerwig();
41+
42+
//--- dump the configuration into an output card
4043
params_.writeCard( "lastrun.card" );
4144
}
4245

@@ -47,9 +50,6 @@ namespace fpmc
4750

4851
dbg_ << "Initializing HERWIG/FPMC" << std::endl;
4952

50-
//--- call hwudat to set up HERWIG block data
51-
//hwudat();
52-
5353
params_.fetchHWBMCH( hwbmch_ );
5454
params_.fetchHWPROC( hwproc_ );
5555
params_.fetchPRTYPE( prtype_ );
@@ -61,7 +61,17 @@ namespace fpmc
6161
<< "TYPINT = " << prtype_.TYPINT << "\n"
6262
<< "IPROC = " << hwproc_.IPROC << "\n";
6363
}
64-
hwigin_();
64+
//--- call hwudat to set up HERWIG block data
65+
// hwudat();
66+
std::cout << "aaaaaaaaaaa" << std::endl;
67+
68+
//--- sets the input parameters
69+
hwigin();
70+
71+
for ( unsigned int i = 0; i < 500; ++i ) {
72+
std::cout << "hwprop for particle " << i << ": " << hwprop_.RLTIM[i] << "\t" << hwprop_.RMASS[i] << "\t" << hwprop_.RSPIN[i] << "\t" << hwprop_.ICHRG[i] << "\t" << hwprop_.IDPDG[i] << "\t" << hwprop_.IFLAV[i] << std::endl;
73+
}
74+
// exit(0);
6575

6676
params_.fetchHWPRAM( hwpram_ );
6777
hwpram_.IPRINT = herwigVerbosity_;
@@ -98,7 +108,6 @@ namespace fpmc
98108
params_.fetchHWHARD( hwhard_ );
99109

100110
params_.fetchXSECT( xsect_ );
101-
std::cout << "--------->" << xsect_.GAPSPR << std::endl;
102111
params_.fetchPDFS( pdfs_ );
103112
params_.fetchAAANOMAL( aaanomal_ );
104113
params_.fetchAAEXOTICAL( aaexotical_ );

Fpmc/src/FpmcParameters.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace fpmc
55
FpmcParameters::FpmcParameters() :
66
std::map<std::string,std::string>( {
77
// particles masses
8-
{ "rmass", "0.0" }, { "wmass", "80.425" }, { "hmass", "125.0" }, { "tmass", "174.3" }, { "mst1", "250.0" }, { "msb1", "250.0" },
8+
{ "wmass", "80.425" }, { "hmass", "125.0" }, { "tmass", "174.3" }, { "mst1", "250.0" }, { "msb1", "250.0" },
99
// kinematics cuts
1010
{ "ecms", "14000.0" }, { "yjmin", "-6.0" }, { "yjmax", "6.0" }, { "ptmin", "0.0" }, { "ptmax", "1.e8" }, { "emmin", "10.0" }, { "emmax", "1.e8" },
1111
{ "ywwmin", "0.0" }, { "ywwmax", "0.1" }, { "q2wwmn", "0.0" }, { "q2wwmx", "4.0" },

0 commit comments

Comments
 (0)