GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » General Discussion » event registration
event registration [message #14495] Tue, 12 March 2013 18:15 Go to next message
Raphael Cervantes is currently offline  Raphael Cervantes
Messages: 34
Registered: September 2012
Location: Stony Brook University
continuous participant
From: *physics.sunysb.edu
Can someone help me understand how a detector in FairRoot registers an event? I need to understand what criterion a detector uses to registering events, e.g. if a detector registers a particle that just grazes the edge of it, or how much energy is required, etc...

I'm am currently looking at the Rutherford example. In line 71 of FairRutherford.cxx, it says " if ( gMC->IsTrackEntering() ) {". Where is the IsTrackEntering() method defined?

I hope my question makes sense. Let me know if I need to clarify anything.
Re: event registration [message #15767 is a reply to message #14495] Wed, 08 January 2014 09:54 Go to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hi,

better too late than never!

Is IsTrackEntering() is one flag from a set of state flags in Geant3/4 which tell you in about the status of the particle being transported with respect to the volume that you defined as sensitive in your detector.

The stepping of the transport engine forward the action (call the so-called processHit method of your detector) only when it enters a volume that you define as sensitive so that you create a point (hit) or take what ever action your detector should do.

cheers,

Mohammad
Previous Topic: Decay particles
Next Topic: A bug in FairRootManager
Goto Forum:
  


Current Time: Sat Nov 23 05:22:14 CET 2024

Total time taken to generate the page: 0.00666 seconds