Message: Re: Sampling .root histogram within Geant4? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Sampling .root histogram within Geant4? 

Forum: Analysis
Re: Question Sampling .root histogram within Geant4? (Jonning Kennethson)
Re: None Re: Sampling .root histogram within Geant4? (Andreas Pfeiffer)
Re: Question Re: Sampling .root histogram within Geant4? (Jonning Kennethson)
Date: 07 Apr, 2011
From: Andreas Pfeiffer <Andreas Pfeiffer>

Hi Jonning,

> Hi Andreas, Thank you so very much! that is just the example I was
> looking for.
>
> However, I noticed there is no sampling function in AIDA (equal to
> getrandom() in root), am I correct or did I just miss it?

no, this does indeed not exist in AIDA.

> Oh well, I guess I will have to write my own or do the cludge-approach
> of writing a root histogram in root from the one imported through aida.
> Nevertheless, this help saved me a lot of time.

In case you are using the iAIDA implementation ()* of AIDA, you can
find a helper class for copying AIDA histos to root histos in the src/
tree at: src/AIDA_Root/HistoConverter.h

HTH,
       cheers, andreas

(*) http://iaida.dynalias.net  -- code on sourceforge:
http://sf.net/projects/iaida

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Sampling .root histogram within Geant4?   (Guy Barrand - 08 Apr, 2011)
1 None: Re: Sampling .root histogram within Geant4?   (Guy Barrand - 08 Apr, 2011)
1 None: Re: Sampling .root histogram within Geant4?   (Andreas Pfeiffer - 09 Apr, 2011)
... 1 Message(s)
2 Question: Re: Sampling .root histogram within Geant4?   (Jonning Kennethson - 08 Apr, 2011)
1 None: Re: Sampling .root histogram within Geant4?   (Guy Barrand - 09 Apr, 2011)
... 1 Message(s)
2 None: Re: Sampling .root histogram within Geant4?   (Andreas Pfeiffer - 09 Apr, 2011)
3 None: Re: Sampling .root histogram within Geant4?   (Guy Barrand - 11 Apr, 2011)
 Add Message Add Message
to: "Re: Sampling .root histogram within Geant4?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]