Expert Mode: Set number of events to analyze

Asked by Andreas

Dear experts,

is there a straightforward way to run an analysis job only for a given number of events?

When testing code, I would like to be able to run only over e.g. 1000 events in order to quickly see if everything is working.
Ideally, this would be something like

./MadAnalysis5job input --nEvents=1000

Is this already implemented in some way?

Thank you

Andreas

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
Best Benjamin Fuks (fuks) said :
#1

Hi Andreas,

This is not implemented, but you can easily include this by modifying the main.cpp file.

Cheers,

Benjamin

> On 28 Feb 2017, at 14:17 , Andreas <email address hidden> wrote:
>
> New question #497605 on MadAnalysis 5:
> https://answers.launchpad.net/madanalysis5/+question/497605
>
> Dear experts,
>
> is there a straightforward way to run an analysis job only for a given number of events?
>
> When testing code, I would like to be able to run only over e.g. 1000 events in order to quickly see if everything is working.
> Ideally, this would be something like
>
> ./MadAnalysis5job input --nEvents=1000
>
> Is this already implemented in some way?
>
> Thank you
>
> Andreas
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
Andreas (balouderbaer) said :
#2

Hi Benjamin,

thanks for getting back to me. I will implement it myself then.
I think it's really useful feature, though, so it would probably be a good idea to include it in a future release.
So, while not a top priority, it would be nice to have!

Thanks again

Andreas

Revision history for this message
Andreas (balouderbaer) said :
#3

Thanks Benjamin Fuks, that solved my question.

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

Hi Andreas,

I agree. This would be a nice feature to implement. I havce added to our to-do list ;)

Cheers,

B>

> On 1 Mar 2017, at 22:19 , Andreas <email address hidden> wrote:
>
> Question #497605 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/497605
>
> Status: Answered => Solved
>
> Andreas confirmed that the question is solved:
> Hi Benjamin,
>
> thanks for getting back to me. I will implement it myself then.
> I think it's really useful feature, though, so it would probably be a good idea to include it in a future release.
> So, while not a top priority, it would be nice to have!
>
> Thanks again
>
> Andreas
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.