Logo ROOT   6.16/01
Reference Guide
TMCVerbose.h
Go to the documentation of this file.
1// @(#)root/vmc:$Id$
2// Author: Ivana Hrivnacova; 24/02/2003
3
4/*************************************************************************
5 * Copyright (C) 2006, Rene Brun and Fons Rademakers. *
6 * Copyright (C) 2003, ALICE Experiment at CERN. *
7 * All rights reserved. *
8 * *
9 * For the licensing terms see $ROOTSYS/LICENSE. *
10 * For the list of contributors see $ROOTSYS/README/CREDITS. *
11 *************************************************************************/
12
13#ifndef ROOT_TMCVerbose
14#define ROOT_TMCVerbose
15
16//
17// Class TMCVerbose
18// ----------------
19// Class for printing a detailed infomation from MC application.
20// Defined levels:
21// 0 no output
22// 1 info up to event level
23// 2 info up to tracking level
24// 3 detailed info for each step
25
26#include <TObject.h>
27
28class TVirtualMCStack;
29
30class TMCVerbose : public TObject
31{
32public:
33 TMCVerbose(Int_t level);
34 TMCVerbose();
35 virtual ~TMCVerbose();
36
37 // methods
38 virtual void InitMC();
39 virtual void RunMC(Int_t nofEvents);
40 virtual void FinishRun();
41
42 virtual void ConstructGeometry();
43 virtual void ConstructOpGeometry();
44 virtual void InitGeometry();
45 virtual void AddParticles();
46 virtual void AddIons();
47 virtual void GeneratePrimaries();
48 virtual void BeginEvent();
49 virtual void BeginPrimary();
50 virtual void PreTrack();
51 virtual void Stepping();
52 virtual void PostTrack();
53 virtual void FinishPrimary();
54 virtual void FinishEvent();
55
56 // set methods
57 void SetLevel(Int_t level);
58
59private:
60 // methods
61 void PrintBanner() const;
62 void PrintTrackInfo() const;
63 void PrintStepHeader() const;
64
65 // data members
66 Int_t fLevel; ///< Verbose level
67 Int_t fStepNumber; ///< Current step number
68
69 ClassDef(TMCVerbose,1) //Verbose class for MC application
70};
71
72// inline functions
73
74inline void TMCVerbose::SetLevel(Int_t level)
75{ fLevel = level; }
76
77#endif //ROOT_TMCVerbose
78
int Int_t
Definition: RtypesCore.h:41
#define ClassDef(name, id)
Definition: Rtypes.h:324
Class for printing a detailed information from MC application.
Definition: TMCVerbose.h:31
virtual void InitMC()
Initialize MC info.
Definition: TMCVerbose.cxx:125
virtual void AddIons()
Add ions info.
Definition: TMCVerbose.cxx:188
virtual void FinishEvent()
Finish of an event info.
Definition: TMCVerbose.cxx:322
void PrintTrackInfo() const
Prints track information.
Definition: TMCVerbose.cxx:80
virtual void AddParticles()
Add particles info.
Definition: TMCVerbose.cxx:179
virtual void BeginPrimary()
Begin of a primary track info.
Definition: TMCVerbose.cxx:215
virtual void GeneratePrimaries()
Generate primaries info.
Definition: TMCVerbose.cxx:197
virtual void RunMC(Int_t nofEvents)
MC run info.
Definition: TMCVerbose.cxx:134
virtual void ConstructGeometry()
Construct geometry info.
Definition: TMCVerbose.cxx:152
Int_t fLevel
Verbose level.
Definition: TMCVerbose.h:66
virtual void FinishRun()
Finish MC run info.
Definition: TMCVerbose.cxx:143
void PrintStepHeader() const
Prints the header for stepping information.
Definition: TMCVerbose.cxx:103
virtual void InitGeometry()
Initialize geometry info.
Definition: TMCVerbose.cxx:170
Int_t fStepNumber
Current step number.
Definition: TMCVerbose.h:67
virtual void FinishPrimary()
Finish of a primary track info.
Definition: TMCVerbose.cxx:313
TMCVerbose()
Default constructor.
Definition: TMCVerbose.cxx:49
virtual void BeginEvent()
Begin event info.
Definition: TMCVerbose.cxx:206
virtual ~TMCVerbose()
Destructor.
Definition: TMCVerbose.cxx:59
virtual void ConstructOpGeometry()
Construct geometry for optical physics info.
Definition: TMCVerbose.cxx:161
void PrintBanner() const
Prints banner for track information.
Definition: TMCVerbose.cxx:70
virtual void Stepping()
Stepping info.
Definition: TMCVerbose.cxx:244
virtual void PreTrack()
Begin of each track info.
Definition: TMCVerbose.cxx:224
virtual void PostTrack()
Finish of each track info.
Definition: TMCVerbose.cxx:304
void SetLevel(Int_t level)
Definition: TMCVerbose.h:74
Mother of all ROOT objects.
Definition: TObject.h:37
Interface to a user defined particles stack.