Message: Re: Event by Event Data Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Event by Event Data 

Forum: Hits, Digitization and Pileup
Re: Question Event by Event Data (Matt Worden)
Re: None Re: Event by Event Data (Tsukasa Aso)
Date: 27 Feb, 2011
From: Tsukasa Aso <Tsukasa Aso>

Hi,

   You need to loop the eventHitsMap with the cell number from 0 to Ncell.
Here Ncell is the number of cells in your geometry.

In your code, it will be as follows,


   G4int Ncell = 100; // for example
   for ( G4int icell = 0; icell  < Ncell; icell++){
	  G4double *ptr = (*eventHitsMap)[icell];
          if (!ptr)  ptr = new G4double(0.0);
	  G4double quantity = *ptr;
	  outFile << "Value" << icell <<  ": " << quantity << endl; 
   }


Best regards,
Tsukasa Aso

 Add Message Add Message
to: "Re: Event by Event Data"

 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 ]