Added to SVN repository

This commit is contained in:
paraiso
2006-02-16 17:21:13 +00:00
parent b67a2876ac
commit b98f222ba8
49 changed files with 1577 additions and 183 deletions

View File

@ -1,3 +1,26 @@
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//*
// LOW ENERGY MUON SPIN RELAXATION, ROTATION, RADIATION Geant4 SIMULATION
// ID : LEMuSRTrackingAction.hh , v 1.0
// AUTHOR: Taofiq PARAISO
// DATE : 2004-07-07 11:15
//
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//
//
// & &&&&&&&&&& &&&&&&& &&&&&&&&
// & & && && & &&
// & & & & & & &&
// & &&&&&&& & & &&&&&& &&&&&&&&
// & & & && & & &&
// & & && & & && && & &
// &&&&&&&&&& &&&&&&&&&& & &&&&& && &&&&&&& & &&
// &
// &
// &
// &
// TRACKING ACTION.CC
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//
#ifndef LEMuSRTrackingAction_h
#define LEMuSRTrackingAction_h 1
#include "G4DynamicParticle.hh"
@ -17,8 +40,19 @@
#include "TClonesArray.h"
#include "TStopwatch.h"
#include "LEMuSRCryoHit.hh"
#include "G4SteppingManager.hh" // Include from 'tracking'
#include "G4TrackingManager.hh" // Include from 'tracking'
/*!
* The role of the tracking action is to take special actions
* before or after a track.
* Two importants methods can be implemented at will by the user,
* the PreUserTrackingAction and the PostUserTrackingAction. Those two methods are
* virtual methods and their names must not be changed.
* One can use the tracking action for histogramming, but also to act on the tracked
* particles, to get/print information, or even to delete useless tracks etc.( cf. \ref Useraction).
*/
class LEMuSRTrackingAction : public G4UserTrackingAction {
@ -29,7 +63,8 @@ class LEMuSRTrackingAction : public G4UserTrackingAction {
void PostUserTrackingAction(const G4Track*);
void Collect_datas(const G4Track*);
static LEMuSRTrackingAction* GetInstance();
static LEMuSRTrackingAction* pointer;
// TROOT eventTree;
Int_t nevent , comp , split , write , hfill , read ,arg4, arg5 ;
@ -38,6 +73,11 @@ class LEMuSRTrackingAction : public G4UserTrackingAction {
TBranch *b;
TH1D *hEnergy, *hTime, *hAngle, *hAngle2;
G4TrackingManager* tMgr;
G4double GyroMagRatio;
G4double GyroMagFactor;
private: