GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » [FIXED] error occuring on using different event generator
[FIXED] error occuring on using different event generator [message #16073] Thu, 27 March 2014 11:28 Go to next message
ForamShah is currently offline  ForamShah
Messages: 25
Registered: March 2014
Location: india
continuous participant
From: 14.139.121*
hi,
i have used different eventgenerators (dpm,evtgen,boxgenerator) by making changes in simulation file when i run it for 10 events it runs well but not working for 1000 events iget the following error,


[ERROR ] init() ANAPidSelections not initialized
Error in <FairRuntimeDb::initContainers()>: Error occured during initialization
[INFO ] The number of entries in chain is 1000
[INFO ] The number of entries in chain is 1000
Error: Symbol homegam_nopid is not defined in current scope tut_ana.C:138:
Error: Failed to evaluate homegam_nopid->Fill(jpsi[j].M())
*** Interpreter error recovered ***

how to solve this error??
what r the changes that i can expect by using different eventgenerators??

[Updated on: Tue, 01 April 2014 09:24] by Moderator

Report message to a moderator

Re: error occuring on using different event generator [message #16074 is a reply to message #16073] Thu, 27 March 2014 11:31 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
Error: Symbol homegam_nopid is not defined in current scope tut_ana.C:138:


You need to define the histogram homegam_nopid, in your analysis macro. It is completely uncorrelated to the event generators.
Re: error occuring on using different event generator [message #16077 is a reply to message #16074] Thu, 27 March 2014 11:37 Go to previous messageGo to next message
ForamShah is currently offline  ForamShah
Messages: 25
Registered: March 2014
Location: india
continuous participant
From: 14.139.121*
if we use different event generators what difference will it make??????
Re: error occuring on using different event generator [message #16078 is a reply to message #16073] Thu, 27 March 2014 11:38 Go to previous messageGo to next message
Elisabetta Prencipe (2) is currently offline  Elisabetta Prencipe (2)
Messages: 214
Registered: February 2013
first-grade participant
From: *ikp.kfa-juelich.de
Hello Foram,

you get an error in your analysis macro. There is an histogram not defined at the beginning, as well as I understand from your error message.
Concerning the story of the number of events to run: did you change it in your sim macro? You can pass this information even by external.

Something like:
.x mysim.C(1000)

You can run your analysis macro maximum on the number of simulated events you build, of course.

For your signal event, please use EvtGen; for simulating background pp to qqbar: you can use DPM Mc generator

Elisabetta

Re: error occuring on using different event generator [message #16079 is a reply to message #16077] Thu, 27 March 2014 11:39 Go to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
For one generator you enter inside some condition and you fill the not defined histogram. For other generators the condidition is not fulfilled and it does not fill the histogram, then it does not crash.
Previous Topic: [CLOSED] pandaroot/macro/run error
Next Topic: [OBSOLETE] error in analysis file in jan14
Goto Forum:
  


Current Time: Sat Apr 20 14:48:15 CEST 2024

Total time taken to generate the page: 0.00918 seconds