Cuts not showing up in root histograms

Asked by Keegan Downham

I am currently using the expert mode of Madanalysis and I have modified the .cpp file to create a root file that contains the histograms from my analysis. However, when I create these root files the histograms that I produce are not being subject to the cuts that I defined in the analysis. I know that the cuts are tied to regions that are defined in the initialize method in the .cpp file and that you can specify the region when defining the histograms, but there is no option to specify the signal region when dealing with a TH1F. Is there any way that I can get the cuts to show up in the root histograms?

Question information

Language:
English Edit question
Status:
Answered
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jack Y. Araz (jackaraz) said :
#1

Hi

Unfortunately, ROOT is not fully supported for histogramming in MadAnalysis. I would suggest creating different analysis codes using newAnalyzer.py under ANALYSIS_NAME/Build/SampleAnalyzer where each file can include one signal region. This way your cuts will be applied to root histograms. If you are keen on using a single analysis file, on the other hand, I would suggest using Ma5's own histogramming module.

Cheers
Jack

Revision history for this message
Jack Y. Araz (jackaraz) said :
#2

Hi

You can also use nested if conditions to apply cuts instead of Ma5's cut-flow module. That way your cuts will be applied on the histograms.

Cheers
Jack

Revision history for this message
Keegan Downham (kdownham) said :
#3

Hi Jack,

I didn't even think about using nested if statements to apply the cuts. Thanks for the advice!

Keegan

Can you help with this problem?

Provide an answer of your own, or ask Keegan Downham for more information if necessary.

To post a message you must log in.