Print to file Constraints using batchfile

Asked by Mathew Thomas

There exists an option to print to a plain text file the numerical Constraints from the GUI by following n_calchep -> Constraints -> All Constraints -> Print to file.

Could you please suggest if there exists a way to print these constraints into a plain text file while running the batch interface (i.e. from inside a batchfile). This is so that I can read the numerical values of certain constraints that change as I scan over input variables via the batchfile.

Question information

Language:
English Edit question
Status:
Answered
For:
CalcHEP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Neil Christensen (neil-christensen-qft) said :
#1

Hi Mathew,

I think what you want is contained in the .lhe files in the batch_results directory.

Best wishes,
Neil

Revision history for this message
Alexander Pukhov (pukhov) said :
#2

I do not see Constrains in  lhe file. In principle we  can add them, but
sometimes the list will be long.

Alternative  option is to use par_scan. For par_scan one can define the
list of constraints to print. But par_scan does not generate events.

Best

   Alexander Pukhov

On 05.09.2019 19:52, Mathew Thomas wrote:
> New question #683675 on CalcHEP:
> https://answers.launchpad.net/calchep/+question/683675
>
> There exists an option to print to a plain text file the numerical Constraints from the GUI by following n_calchep -> Constraints -> All Constraints -> Print to file.
>
> Could you please suggest if there exists a way to print these constraints into a plain text file while running the batch interface (i.e. from inside a batchfile). This is so that I can read the numerical values of certain constraints that change as I scan over input variables via the batchfile.
>
>
>
>
>

Revision history for this message
Alexander Belyaev (alexander.belyaev) said :
#3

  Hello Mathew

as Alexander Pukhov said, the best option for you is to use

par_scan script (see manual) which does print constraints (the list of
constraint you want to print you define in the input file together with
the scan parameters).

It will do the job.

We did not incorporate the option to print all constraints intot he
batch file since it can be quite abusive, in some models the number of
dependent parameters are 10-100K, so this will create a mess. But
selective print out using par_scan will work for you.

Best

Alexander Belyaev

On 06/09/2019 09:54, Alexander Pukhov wrote:
> Question #683675 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/683675
>
> Alexander Pukhov proposed the following answer:
> I do not see Constrains in  lhe file. In principle we  can add them, but
> sometimes the list will be long.
>
> Alternative  option is to use par_scan. For par_scan one can define the
> list of constraints to print. But par_scan does not generate events.
>
> Best
>
>   Alexander Pukhov
>
>
> On 05.09.2019 19:52, Mathew Thomas wrote:
>> New question #683675 on CalcHEP:
>> https://answers.launchpad.net/calchep/+question/683675
>>
>> There exists an option to print to a plain text file the numerical Constraints from the GUI by following n_calchep -> Constraints -> All Constraints -> Print to file.
>>
>> Could you please suggest if there exists a way to print these constraints into a plain text file while running the batch interface (i.e. from inside a batchfile). This is so that I can read the numerical values of certain constraints that change as I scan over input variables via the batchfile.
>>
>>
>>
>>
>>
--
______________________________________________________________________
Prof. Alexander S Belyaev (<email address hidden>)
https://www.hep.phys.soton.ac.uk/content/alexander-belyaev

School of Physics & Astronomy, University of Southampton
Office 5047, SO17 1BJ, TEL: +44 23805 98509, FAX: +44 23805 93910
.....................................................................
Particle Physics Department, Rutherford Appleton Laboratory
Didcot, OX11 0QX, TEL: +44 12354 45562, FAX: +44 12354 46733
.....................................................................
CERN, CH-1211 Geneva 23, Switzerland
Office 40/1-B20, Mailbox: E27910, TEL: +41 2276 71642
______________________________________________________________________

Can you help with this problem?

Provide an answer of your own, or ask Mathew Thomas for more information if necessary.

To post a message you must log in.