Fork me on GitHub

Ignore:
Timestamp:
Jul 4, 2013, 1:03:09 PM (11 years ago)
Author:
Pavel Demin
Message:

add Pythia config file to PileUpMergerPythia8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/PileUpMergerPythia8.cc

    r1168 r1175  
    5757void PileUpMergerPythia8::Init()
    5858{
     59  const char *fileName;
     60
    5961  fMeanPileUp  = GetDouble("MeanPileUp", 10);
    6062  fZVertexSpread = GetDouble("ZVertexSpread", 0.05)*1.0E3;
    6163
    62   fCMEnergy = GetDouble("CMEnergy", 14000.0);
    63   fPTMin = GetDouble("PTMin", 0.5);
     64  fPTMin = GetDouble("PTMin", 0.0);
    6465
    65   fRandomSeed = GetInt("RandomSeed", 1);
    66   fBeamAID = GetInt("BeamAID", 2212);
    67   fBeamBID = GetInt("BeamBID", 2212);
    68 
    69   // Pythia8 pile-up initialization
     66  fileName = GetString("ConfigFile", "MinBias.cmnd");
    7067  fPythia = new Pythia8::Pythia();
    71   fPythia->readString("SoftQCD:minBias = on");
    72   fPythia->init(fBeamAID, fBeamBID, fCMEnergy);
    73   fPythia->rndm.init(fRandomSeed);
     68  fPythia->readFile(fileName);
    7469
    7570  // import input array
Note: See TracChangeset for help on using the changeset viewer.