71 : evtAction(eventAction) {
76 colourNeutronFlag =
"magenta";
77 colourGammaFlag =
"cyan";
78 colourOpticalFlag =
"white";
79 colourChargedPlusFlag =
"red";
80 colourChargedMinusFlag =
"blue";
89 delete steppingMessenger;
105 #ifdef G4ANALYSIS_USE
112 DMXAnalysisManager* analysis = DMXAnalysisManager::getInstance();
113 analysis->analyseParticleSource(partEnergy, particleName);
122 if (drawColsFlag==
"custom" && drawTrksFlag!=
"none") {
131 if(name==
"neutron") {
132 if(drawTrksFlag==
"charged")
return;
133 strColour = colourNeutronFlag;
134 }
else if (name==
"gamma") {
135 if(drawTrksFlag==
"charged")
return;
136 strColour = colourGammaFlag;
137 }
else if (name==
"opticalphoton") {
138 if(drawTrksFlag!=
"all")
return;
139 strColour = colourOpticalFlag;
141 else if (name==
"alpha" || name==
"e+")
142 strColour = colourChargedPlusFlag;
144 strColour = colourChargedMinusFlag;
148 if (strColour==
"white") colour=
G4Colour(1.0, 1.0, 1.0);
149 else if(strColour==
"grey" ) colour=
G4Colour(0.5, 0.5, 0.5);
150 else if(strColour==
"lgrey") colour=
G4Colour(.75, .75, .75);
151 else if(strColour==
"black") colour=
G4Colour(0.0, 0.0, 0.0);
152 else if(strColour==
"red") colour=
G4Colour(1.0, 0.0, 0.0);
153 else if(strColour==
"green") colour=
G4Colour(0.0, 1.0, 0.0);
154 else if(strColour==
"blue") colour=
G4Colour(0.0, 0.0, 1.0);
155 else if(strColour==
"cyan") colour=
G4Colour(0.0, 1.0, 1.0);
156 else if(strColour==
"magenta") colour=
G4Colour(1.0, 0.0, 1.0);
157 else if(strColour==
"yellow") colour=
G4Colour(1.0, 1.0, 0.0);
158 else if(strColour==
"lgreen") colour=
G4Colour(0.0, .75, 0.0);
159 else if(strColour==
"lblue") colour=
G4Colour(0.0, 0.0, .75);
160 else colour=
G4Colour(1.0, 1.0, 1.0);
170 polyline.push_back(start);
171 polyline.push_back(end);
172 pVVisManager->
Draw(polyline);