query regarding plots

Asked by nabanita ganguly

Hi,

I am doing an analysis where I want to see the distribution of PT sum of all the jets. For this, after jet clustering I have given the following commands in ma5 :

define jets = j
plot PT(jets) 100 0 400

I am getting the plot. But the problem is that in Y-axis 'N. of jets' is coming instead of 'Events' ( which I require). Is there any way of changing the variables appearing in Y-axis?

Best Regards,
Nabanita

Question information

Language:
English Edit question
Status:
Solved
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Solved by:
Benjamin Fuks
Solved:
Last query:
Last reply:
Revision history for this message
Benjamin Fuks (fuks) said :
#1

Hi Nabanita,

Please try
  plot PT(all j)
as written in the manual.

Cheers,

Benjamin

On 16 Mar 2016, at 08:27 , nabanita ganguly <email address hidden> wrote:

> New question #288706 on MadAnalysis 5:
> https://answers.launchpad.net/madanalysis5/+question/288706
>
> Hi,
>
> I am doing an analysis where I want to see the distribution of PT sum of all the jets. For this, after jet clustering I have given the following commands in ma5 :
>
> define jets = j
> plot PT(jets) 100 0 400
>
> I am getting the plot. But the problem is that in Y-axis 'N. of jets' is coming instead of 'Events' ( which I require). Is there any way of changing the variables appearing in Y-axis?
>
>
> Best Regards,
> Nabanita
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
nabanita ganguly (nabanita-rimpi) said :
#2

Hi Benjamin,
Thanks. It worked.
I have another query. I am using .lhco file for the analysis purpose which I get after Madgraph/pythia/Delphes chain. However, one can also use .root file generated after importing .hep.gz to madanalysis and running delphes. Are the two procedures equivalent?

Best Regards,
Nabanita

Revision history for this message
Benjamin Fuks (fuks) said :
#3

Hi Nabanita,

Not really as more information is available in the root file. Therefore, the answer depends on what you want to do.

Cheers,

Benjamin

On 16 Mar 2016, at 11:17 , nabanita ganguly <email address hidden> wrote:

> Question #288706 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/288706
>
> nabanita ganguly posted a new comment:
> Hi Benjamin,
> Thanks. It worked.
> I have another query. I am using .lhco file for the analysis purpose which I get after Madgraph/pythia/Delphes chain. However, one can also use .root file generated after importing .hep.gz to madanalysis and running delphes. Are the two procedures equivalent?
>
> Best Regards,
> Nabanita
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
nabanita ganguly (nabanita-rimpi) said :
#4

Hi Benjamin,

So do you mean that it is safer to use .root files?
 I want to apologize for the previous post. The problem is not really solved. As I mentioned before , I am getting "N. of all jets" instead of "Events" in the Y-axis when I asked to plot PT(all j) . How can I get "Events" in Y-axis i.e. no. of Events vs. PT(all j) plot?

Regards,
Nabanita

Revision history for this message
Best Benjamin Fuks (fuks) said :
#5

Hi Nabanita,

> So do you mean that it is safer to use .root files?
You have some amount of information in the root file, and a smaller amount of information in the lhco file. As I said, according to what you need, the LHCO file may be sufficient.

> I want to apologize for the previous post. The problem is not really solved. As I mentioned before , I am getting "N. of all jets" instead of "Events" in the Y-axis when I asked to plot PT(all j) . How can I get "Events" in Y-axis i.e. no. of Events vs. PT(all j) plot?
You must have exactly one entry per event. Please check on the output file. Therefore, it is the same thing.

Cheers.

Benjamin

Revision history for this message
nabanita ganguly (nabanita-rimpi) said :
#6

Thanks Benjamin Fuks, that solved my question.