Message: Re: How can we declare Co-60 source Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: How can we declare Co-60 source 

Forum: Documentation and Examples
Re: Question How can we declare Co-60 source (Dziri)
Re: Note Re: How can we declare Co-60 source (Dziri)
Date: 04 Mar, 2011
From: Laurent Desorgher <Laurent Desorgher>

Dear Samir,

> Thank you For your help. However, I am not using exatly the
> Radioactivedecay example, to get my histo, i am using a Ttree (Tfile) in
> my RunAction. If I understand, to use histo as in radioactivedecay, we
> need to install AIDA? I don't know if is there a version for MAC OS?.

For the example 1 indeed you need AIDA installed and then you should set the environment variable G4ANALYSIS_USE.

For the example 2 you can choose either AIDA or ROOT. To use AIDA you should set the environment variable G4ANALYSIS_USE To use ROOT you should set the environment variable G4ANALYSIS_USE_ROOT.

If you use only the ROOT option you will porbably get a compilation error, as I just did get now. To remove this compilation error just replace the lines 316-320 in exrdmHisto.cc by the following lines

#ifdef G4ANALYSIS_USE void exrdmHisto::addTuple(const G4String& w1, const G4String& w2, const G4String& w3 )

#else
#ifdef G4ANALYSIS_USE_ROOT
void exrdmHisto::addTuple(const G4String& w1, const G4String& w2, const G4String& w3 ) #else void exrdmHisto::addTuple(const G4String& w1, const G4String& w2, const G4String& )
#endif
#endif

With these modifications and by setting

G4ANALYSIS_USE_ROOT

You should get ROOT histo produced.

Best regards

Laurent

> 
> I am a bit lost beacause for some radioactive element I get a ggod
> spectrum and for the others ( Co-60, Y-88..etc) it's not the case.
> 
> Thank you
> 
> Samir
> 

 Add Message Add Message
to: "Re: How can we declare Co-60 source"

 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 ]