GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Event Generators » EMFFGen as a pi + pi - generator
EMFFGen as a pi + pi - generator [message #17998] Thu, 12 March 2015 09:17 Go to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *dip0.t-ipconnect.de
Hi all,

I would like to study the pi+ pi- MC data.
I found that EMFFgenerators are already implemented, and the library libEMFFGEN is already compiled during the installation of pandaroot as a default process.

I am trying to produce data with this package at PANDAroot, I introduced library at simulation.

Quote:


//at the beginning
gSystem->Load("libEMFFGEN");


// after the definition of primGen

PndPiPiGenerator* pipiGen = new PndPiPiGenerator();
pipiGen->SetBeamMom(mom);
pipiGen->SetSeed(seed);
pipiGen->SetCosThetaMin(-theta);
pipiGen->SetCosThetaMax(theta);
primGen->AddGenerator(pipiGen);


But I could not find PndPiPiGenerator at all.
What is the correct way to use pipi generator at PANDAroot?


best regards,

Donghee
Re: EMFFGen as a pi + pi - generator [message #18002 is a reply to message #17998] Fri, 13 March 2015 13:16 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
What do you mean you could not find it, if the files are there?
In any case, Dmitry Khaneft committed the code, who should not seat so far from you. You could ask him how to use it.
Re: EMFFGen as a pi + pi - generator [message #18004 is a reply to message #18002] Fri, 13 March 2015 21:53 Go to previous messageGo to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *dip0.t-ipconnect.de
Dear Stefano,

I made a contact with Dmitry and Manuel and they show me the correct way to use pi+pi- simulation code.

It turns out that I need to call rootlogon as well before loading libEMFFGEN
Quote:

gROOT->LoadMacro("$VMCWORKDIR/gconfig/rootlogon.C");
rootlogon();
gSystem->Load("libEMFFGEN.so");


Then PndPiPiGenerator can be accessable without trouble.
Thank you all of you for great help.
Best wishes,
Donghee
Re: EMFFGen as a pi + pi - generator [message #18007 is a reply to message #18004] Sat, 14 March 2015 08:54 Go to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: 93.49.200*
In reality the lines:

gROOT->LoadMacro("$VMCWORKDIR/gconfig/rootlogon.C");
rootlogon();
gSystem->Load("libEMFFGEN.so");


are not needed. This means that the CMakeLists.txt has errors inside.
Previous Topic: FTF generator
Next Topic: Problem with implementing new decay models in EvtGen
Goto Forum:
  


Current Time: Fri Apr 19 08:15:39 CEST 2024

Total time taken to generate the page: 0.00817 seconds