ATLAS Offline Software
Classes | Namespaces | Functions
MuonDetectorNavTest.cxx File Reference
#include "MuonDetectorNavTest.h"
#include <StoreGate/ReadCondHandle.h>
#include "ActsGeoUtils/SurfaceCache.h"
#include "Acts/Definitions/Units.hpp"
#include "Acts/Propagator/ActorList.hpp"
#include "Acts/Propagator/Propagator.hpp"
#include "Acts/Propagator/MaterialInteractor.hpp"
#include "Acts/Propagator/EigenStepper.hpp"
#include "Acts/Utilities/VectorHelpers.hpp"
#include "Acts/Visualization/ObjVisualization3D.hpp"
#include "Acts/Visualization/GeometryView3D.hpp"
#include "xAODTruth/TruthVertex.h"
#include <fstream>

Go to the source code of this file.

Classes

struct  StateRecorder
 

Namespaces

 ActsTrk
 The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout geometry to cache the final transformations of the sensor surfaces associated to one particular detector technology (Pixel, Sct, etc.).
 

Functions

void writeStepsToObj (const StateRecorder::result_type &states, const size_t &eventNumber)
 

Function Documentation

◆ writeStepsToObj()

void writeStepsToObj ( const StateRecorder::result_type states,
const size_t &  eventNumber 
)

Definition at line 47 of file MuonDetectorNavTest.cxx.

47  {
48  std::ofstream os("event_" + std::to_string(eventNumber) + "_Steps.obj");
49  size_t vCounter = 0;
50  //Require at least 3 steps to draw a line
51  if(states.size() > 2){
52  ++vCounter;
53  for(const auto& state : states){
54  os << "v " << state.position.x() << " " << state.position.y() << " " << state.position.z() << '\n';
55  }
56  std::size_t vBreak = vCounter + states.size() - 1;
57  for(; vCounter < vBreak; ++vCounter){
58  os << "l " << vCounter << " " << vCounter + 1 << '\n';
59  }
60  }
61 }
urldecode::states
states
Definition: urldecode.h:39
xAOD::eventNumber
eventNumber
Definition: EventInfo_v1.cxx:124
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34