GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » General Discussion » getting run_rutherford to calculate eta parameter [SOLVED]
Re: getting run_rutherford to calculate eta parameter [message #14211 is a reply to message #14210] Wed, 14 November 2012 22:59 Go to previous messageGo to previous message
Radoslaw Karabowicz is currently offline  Radoslaw Karabowicz
Messages: 108
Registered: June 2004
Location: GSI
continuous participant
From: *
Dear Raphael,

If you need some extra variable to be written to the root file,

1. you have to edit FairRutherfordPoint.h and add the variable
in question to the private members, f.e.:
Float_t fEta;

2. edit the FairRutherfordPoint.cxx and set the value
of the variable in the constructors, preferably after the places
when the fTheta values are set:
fEta = -TMath::Log(TMath::Tan(fTheta/2.));

3. recompile

4. run the macro

Hopefully you will get the variable in the output tree as fEta.

Read Message
Read Message
Read Message
Previous Topic: abxolute scaling of the geometry files[SOLVED]?
Next Topic: Particle identification parameter for FairRutherfordPoint
Goto Forum:

Current Time: Sun Jul 14 07:13:02 CEST 2024

Total time taken to generate the page: 0.00832 seconds