SpiRIT-Collaboration / SpiRITROOT

SPiRITROOT development repository
7 stars 3 forks source link

Independently load geometry with Digi process #10

Closed geniejhang closed 9 years ago

geniejhang commented 10 years ago

I cannot load geometry without mc code. I sent a figure of event display of cosmic to Prabi and that figure is drawn with mc data as an input despite of that simulation data not being used for any purpose.

We need to find out how that could be done. I mean, drawing event display without mc data.

squeak923 commented 10 years ago

I'm a little confused about what you mean. What exactly are you trying to draw?

On Sat, Jul 12, 2014 at 1:02 PM, Genie Jhang notifications@github.com wrote:

I cannot load geometry without mc code. I sent a figure of event display of cosmic to Prabi and that figure is drawn with mc data as an input despite of that simulation data not being used for any purpose.

We need to find out how that could be done. I mean, drawing event display without mc data.

— Reply to this email directly or view it on GitHub https://github.com/SpiRIT-Collaboration/SPiRITROOT/issues/10.

Lambdastar commented 10 years ago

I guess what he meant is, he cannot run the reconstruction simulation script without mc data as an input. He was trying to draw cosmic data display using PSA alone code but without mc data, he got it running cosmic data and could able to display as well but with the mc data as an input. We only need geometry file and other parameter files as an input here along with cosmic data.

geniejhang commented 10 years ago

I can run the reconstruction process without mc data as an input. What I can't do is to draw the reconstructed data with the geometry. I'm still working on it

squeak923 commented 10 years ago

Oh you know what. I remember running into a problem like this previously and I just did some tests.

So normally from what I've seen it was common procedure to save the TGeoManager in the root file and not the "top" volume. If this is the case then in order to draw a geometry from a root file you would do the following: gSystem->Load("libGeom"); TGeoManager::Import("rootfile.root"); TGeoVolume *top = gGeoManger->Get("topvolumevariable"); top->Draw(""); This method works if I save the TGeoManager to the file and not the "top" TGeoVolume.

Unfortunately I was unable to get the run_mc to work when I save the TGeoManager. I have to save just the top volume to the root geometry file in order for the run_mc file not to seg fault. I will see if I can come up with a work around for this somehow.

On Mon, Jul 14, 2014 at 11:54 PM, Genie Jhang notifications@github.com wrote:

I can run the reconstruction process without mc data as an input. What I can't do is to draw the reconstructed data with the geometry. I'm still working on it

— Reply to this email directly or view it on GitHub https://github.com/SpiRIT-Collaboration/SPiRITROOT/issues/10#issuecomment-48990534 .

ejungwoo commented 9 years ago

We can run now reconstruction without input file to FariRunAna due to FairRoot update v15.07. One disadvantage is that we always have to run from event number 0. There are two ways to load geometry file in this case: 1) geometry can be set independently with FairRun::SetGeomFile() or 2) just use FairRuntimeDb::saveOutput() method in reco and use this parameter file instead. I didn't try later one but former case definitely works. Anyway I'm closing this issue and update it on the code.