Fork me on GitHub

Changeset 1175 in svn for trunk


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

add Pythia config file to PileUpMergerPythia8

Location:
trunk/modules
Files:
2 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
  • trunk/modules/PileUpMergerPythia8.h

    r1167 r1175  
    3939  Double_t fMeanPileUp;
    4040  Double_t fZVertexSpread;
    41   Double_t fCMEnergy;
    4241  Double_t fPTMin;
    43 
    44   Int_t fRandomSeed;
    45   Int_t fBeamAID;
    46   Int_t fBeamBID;
    4742
    4843  Pythia8::Pythia *fPythia; //!
Note: See TracChangeset for help on using the changeset viewer.