Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:44

0001 #include <iostream>
0002 
0003 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
0004 #include "SimDataFormats/ValidationFormats/interface/MaterialAccountingTrack.h"
0005 
0006 void MaterialAccountingTrack::enterDetector(const GlobalPoint& position, double cosTheta) {
0007   m_detector.m_position = position;
0008   m_detector.m_curvilinearIn = m_total.length();
0009   m_detector.m_cosThetaIn = cosTheta;
0010 }
0011 
0012 void MaterialAccountingTrack::leaveDetector(double cosTheta) {
0013   m_detector.m_curvilinearOut = m_total.length();
0014   m_detector.m_cosThetaOut = cosTheta;
0015   m_detectors.push_back(m_detector);
0016   m_detector.clear();
0017 }