Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4TrajectoriesModel.cc File Reference
#include "G4TrajectoriesModel.hh"
#include "G4ModelingParameters.hh"
#include "G4VGraphicsScene.hh"
#include "G4RunManager.hh"
#include "G4Run.hh"
#include "G4Event.hh"
#include "G4AttDefStore.hh"
#include "G4AttValue.hh"
#include "G4AttDef.hh"
#include "G4AttCheck.hh"
#include "G4UIcommand.hh"
#include "G4VVisManager.hh"
#include "G4VTrajectoryPoint.hh"
Include dependency graph for G4TrajectoriesModel.cc:

Go to the source code of this file.

Functions

void G4TrajectoriesModelDebugG4AttValues (const G4VTrajectory *)
 

Function Documentation

void G4TrajectoriesModelDebugG4AttValues ( const G4VTrajectory pTraj)

Definition at line 138 of file G4TrajectoriesModel.cc.

139 {
140  // Trajectory attributes
141  { // Scope bracket - allows re-use of names without compiler warnings.
142  std::vector<G4AttValue>* attValues = pTraj->CreateAttValues();
143  if (attValues) {
144  G4AttCheck attCheck(attValues, pTraj->GetAttDefs());
145  G4cout << "\nProvided G4Atts:\n" << attCheck;
146  if (attCheck.Check()) G4cout << "Error" << G4endl;
147  else {
148  std::vector<G4AttValue> standardValues;
149  std::map<G4String,G4AttDef> standardDefinitions;
150  attCheck.Standard(&standardValues, &standardDefinitions);
151  G4cout << "\nStandard G4Atts:\n"
152  << G4AttCheck(&standardValues, &standardDefinitions);
153  }
154  delete attValues;
155  }
156  }
157  // Trajectory point attributes
158  for (G4int i = 0; i < pTraj->GetPointEntries(); i++) {
159  G4VTrajectoryPoint* aPoint = pTraj->GetPoint(i);
160  std::vector<G4AttValue>* attValues = aPoint->CreateAttValues();
161  if (attValues) {
162  G4AttCheck attCheck(attValues, aPoint->GetAttDefs());
163  G4cout << "\nProvided G4Atts:\n" << attCheck;
164  if (attCheck.Check()) G4cout << "Error" << G4endl;
165  else {
166  std::vector<G4AttValue> standardValues;
167  std::map<G4String,G4AttDef> standardDefinitions;
168  attCheck.Standard(&standardValues, &standardDefinitions);
169  G4cout << "\nStandard G4Atts:\n"
170  << G4AttCheck(&standardValues, &standardDefinitions);
171  }
172  delete attValues;
173  }
174  }
175 }
virtual G4VTrajectoryPoint * GetPoint(G4int i) const =0
int G4int
Definition: G4Types.hh:78
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual std::vector< G4AttValue > * CreateAttValues() const
virtual int GetPointEntries() const =0
G4GLOB_DLL std::ostream G4cout
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual std::vector< G4AttValue > * CreateAttValues() const
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function: