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: *dip0.t-ipconnect.de
Dear Raphael,

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

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.

yours
radek
 
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 Apr 21 17:38:31 CEST 2024

Total time taken to generate the page: 0.01092 seconds