Saving Writing simple types to TFile

Hi,

I have no idea how to save Types like Double_t or Integer to TFile in a simple way. Is there a simple way, or do I have to create Leafes manually?

Thanks for thinking about it…

Do you want to write one parameter at the time? with its own key?
This is ok if you have a limited number of parameters.
You can use the cllass TParameter, eg TParameter
To write a vector of parameters, use TVectorF or TVectorD or TH1, etc

If you want to write many parameters, a TTree will be by far a more
efficient object (time and space wise)

Rene

TParameter sounds good. I’ll try out. I need just to save some settings like the PMT-supply-voltage for the histogramms…

Thanks