GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Regarding Some Problem in TProfile (Radiation length calculation)
Regarding Some Problem in TProfile [message #17553] Thu, 20 November 2014 14:48 Go to next message
Shyam Kumar is currently offline  Shyam Kumar
Messages: 78
Registered: September 2012
Location: Mumbai, Maharashtra India
continuous participant
From: 103.21.125*
Dear All,
I am facing a problem in the use of TProfile I have plotted radiation length map by using TH2D and TProfile in TH2D X/X_0 vs theta is going up to 1.5% of X_0 but in TProfile It is going up to 0.7% of X_0 however macro used is same. Is there some problem with TProfile? Plots are attached.


Thank You
Shyam
Re: Regarding Some Problem in TProfile [message #17554 is a reply to message #17553] Thu, 20 November 2014 15:41 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
Can you please axplain better your problem? From your sentence and your plot I was not able to understand what you did.
Re: Regarding Some Problem in TProfile [message #17555 is a reply to message #17554] Thu, 20 November 2014 15:50 Go to previous messageGo to next message
Shyam Kumar is currently offline  Shyam Kumar
Messages: 78
Registered: September 2012
Location: Mumbai, Maharashtra India
continuous participant
From: 103.21.125*
Thanks for reply, I have plotted the radiation length map by using the same code in one case I have used TH2D for filling and drawing the ( x/x0 vs theta and x/x0 vs phi) in other case I have used TProfile for filling and drawing ( x/x0 vs theta and x/x0 vs phi). I have used the same code in both case but plots are looking very different why?
https://subversion.gsi.de/trac/fairroot/browser/pandaroot/development/sh yam/PANDAROOT-Source%40pandaroot/macro/run/materialbudgetlambdas.C

[Updated on: Thu, 20 November 2014 15:51]

Report message to a moderator

Re: Regarding Some Problem in TProfile [message #17556 is a reply to message #17554] Thu, 20 November 2014 15:58 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
Never used profile in such a way, I cannot help.
Re: Regarding Some Problem in TProfile [message #17557 is a reply to message #17556] Thu, 20 November 2014 16:05 Go to previous messageGo to next message
Shyam Kumar is currently offline  Shyam Kumar
Messages: 78
Registered: September 2012
Location: Mumbai, Maharashtra India
continuous participant
From: 103.21.125*
Can you tell me the way you have used then I will change the way of used TProfile in macro.

Thank You

[Updated on: Thu, 20 November 2014 16:09]

Report message to a moderator

Re: Regarding Some Problem in TProfile [message #17559 is a reply to message #17557] Thu, 20 November 2014 21:48 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: 93.48.232*
Taking a TH2 histogram and doing->ProfileX(...), not filling a TProfile. I have no idea what that code is doing.
Re: Regarding Some Problem in TProfile [message #17560 is a reply to message #17559] Fri, 21 November 2014 04:25 Go to previous messageGo to next message
Shyam Kumar is currently offline  Shyam Kumar
Messages: 78
Registered: September 2012
Location: Mumbai, Maharashtra India
continuous participant
From: 103.21.125*
Thank you for reply, I will use profile this way.
Re: Regarding Some Problem in TProfile [message #17561 is a reply to message #17560] Sat, 22 November 2014 11:12 Go to previous message
Shyam Kumar is currently offline  Shyam Kumar
Messages: 78
Registered: September 2012
Location: Mumbai, Maharashtra India
continuous participant
From: 103.21.126*
Hi,
The Problem is solved, Since TH2D and TProfile are the two different approaches, In TH2D entries are filled like (x,y) but Tprofile It shows the values mean value of Y for each bin interms of entries so we can not compare them. I have written a test macro (attached) to check it.


Thank You
Shyam
  • Attachment: test.C
    (Size: 0.30KB, Downloaded 268 times)

[Updated on: Sat, 22 November 2014 11:14]

Report message to a moderator

Previous Topic: tracks belonging to the same MC truth track
Next Topic: New PandaRoot release oct14
Goto Forum:
  


Current Time: Tue Nov 26 01:42:01 CET 2024

Total time taken to generate the page: 0.00706 seconds