Message: Re: Keeping track of coincident events Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Keeping track of coincident events 

Forum: Event and Track Management
Re: Question Keeping track of coincident events (Jeff)
Re: Feedback Re: Keeping track of coincident events (Gumplinger Peter)
Date: 19 Sep, 2010
From: Jeff <Jeff>

Hi, Thanks for the responce but I'm still a bit confused.I added the following in LXeScintSD (the lines with ***** at the end are the ones that I added):

G4bool LXeScintSD::ProcessHits(G4Step* aStep,G4TouchableHistory* ){ 
  G4double edep = aStep->GetTotalEnergyDeposit();
  if(edep==0.) return false; //No edep so dont count as hit //edep = enery deposit

  G4StepPoint* thePrePoint = aStep->GetPreStepPoint();
  G4TouchableHistory* theTouchable = 
    (G4TouchableHistory*)(aStep->GetPreStepPoint()->GetTouchable());
  G4VPhysicalVolume* thePrePV = theTouchable->GetVolume();

  G4StepPoint* thePostPoint = aStep->GetPostStepPoint();

  //Get the average position of the hit
  G4ThreeVector pos = thePrePoint->GetPosition() + thePostPoint->GetPosition();
  pos/=2.;

//GetCopyNumber
    G4int scintnumber=aStep->GetPostStepPoint()->GetTouchable()->GetCopyNumber(); //******

  LXeScintHit* scintHit = new LXeScintHit(thePrePV);

  scintHit->SetEdep(edep);
  scintHit->SetPos(pos);
scintHit->Setscintnumber(ScintNumber); //******

  scintCollection->insert(scintHit);

  return true;
}

Now do I have to refer to this change also in ScintHit or can I now directly get this information when I make a change to endofeventaction?

Thanks, Jeff

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

1 Feedback: Re: Keeping track of coincident events   (Gumplinger Peter - 20 Sep, 2010)
 Add Message Add Message
to: "Re: Keeping track of coincident events"

 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 ]