Message: Re: Energy Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Energy 

Forum: Biasing and Scoring
Re: None Energy (smith)
Re: None Re: Energy (Tsukasa Aso)
Re: Question Re: Energy (smith)
Date: 30 Sep, 2012
From: Tsukasa Aso <Tsukasa Aso>


 I see you are using 
Did you start from one of example code in Geant4?
Which example code did you use?

If you started from the example code in Geant4, then you should refer the example code,
since the code will let you know how it should be developed. is used with AIDA interface. ( I have no experience for AIDA. )

With, examples/extended/analysis/AnaEx01 may be a good example.

 Basically you need,  ( and please check following files in the example. )

  1) you have to define histograms in HistManager::book( ) method.

  2) The HistManager::book method  should be invoked in
     RunAction::BeginOfRunAction() method.

 3) You will obtain energy deposit of each step in SteppingAction of UserSteppingAction() method.
     You may need to identify the layer of the detector He or Silicon. 
     I think it will be similar way for checking Absorber and Gap in the example code.
     The step by step energy deposit is then saved to EventAction, via AddAbs() or AddGap() method in 
     EventAction class. This need to accumulate the energy deposit during the event.

4) At the end of event, EventAction::EndOfEventAction() method is called. 
    In the method, the accumulated energy deposit during a event should be filled to
    a proper histogram.

5) At the end of Run, RunAction::EndofRunAction() method is called.
    Then, you need to save the histograms histoManager->save();.

 Best regards,

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

1 None: Re: Energy   (smith - 01 Oct, 2012)
(_ None: Re: Energy   (smith - 03 Oct, 2012)
(_ None: Re: Energy   (Tsukasa Aso - 03 Oct, 2012)
(_ None: Re: Energy   (smith - 04 Oct, 2012)
 Add Message Add Message
to: "Re: Energy"

 Subscribe Subscribe

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