Message: Particle with energy deposit and histo Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Particle with energy deposit and histo 

Forum: Particles
Date: 15 Apr, 2011
From: Chaw <Chaw>

Hi,

I have a question: You have your particle that arrives in a pixel, it deposits some of its energy (ie plotting a histogram) and then continues its path and arrives at another pixel in which it finished his life (another histogram). It is possible to get these histograms?

It is my SteppingAction.cc

    for(int i=0;i<36;i++)
    { 
    	pixel=i+1;

     	detName = TString(Form("inter%d",i+1));

     if( aStep->GetTrack()->GetVolume()->GetName() == detName.Data())
      { 

     fEventAction->AddEdep ( aStep->GetTotalEnergyDeposit()) ;

	  if ( !fHasEnteredTheDetector )
	  {
	     fHasEnteredTheDetector = true ; 

       fEventAction->SettotE       (aStep->GetTotalEnergyDeposit()) ;
       fEventAction->SetTrackID    (aStep->GetTrack()->GetTrackID());
       fEventAction->Setpixel      (pixel);
	 }
       }  

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

1 Question: Re: Particle with energy deposit and histo   (Chaw - 18 Apr, 2011)
 Add Message Add Message
to: "Particle with energy deposit and histo"

 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 ]