SimDataFormats
ValidationFormats
src
MaterialAccountingTrack.cc
Go to the documentation of this file.
1
#include <iostream>
2
3
#include "
DataFormats/GeometryVector/interface/GlobalPoint.h
"
4
#include "
SimDataFormats/ValidationFormats/interface/MaterialAccountingTrack.h
"
5
6
void
MaterialAccountingTrack::enterDetector
(
const
GlobalPoint
&
position
,
double
cosTheta) {
7
m_detector
.
m_position
=
position
;
8
m_detector
.
m_curvilinearIn
=
m_total
.
length
();
9
m_detector
.
m_cosThetaIn
= cosTheta;
10
}
11
12
void
MaterialAccountingTrack::leaveDetector
(
double
cosTheta) {
13
m_detector
.
m_curvilinearOut
=
m_total
.
length
();
14
m_detector
.
m_cosThetaOut
= cosTheta;
15
m_detectors
.push_back(
m_detector
);
16
m_detector
.
clear
();
17
}
MaterialAccountingDetector::m_cosThetaOut
double m_cosThetaOut
Definition:
MaterialAccountingDetector.h:55
MaterialAccountingDetector::m_cosThetaIn
double m_cosThetaIn
Definition:
MaterialAccountingDetector.h:54
MaterialAccountingTrack::m_detectors
std::vector< MaterialAccountingDetector > m_detectors
Definition:
MaterialAccountingTrack.h:53
MaterialAccountingDetector::m_curvilinearIn
double m_curvilinearIn
Definition:
MaterialAccountingDetector.h:52
MaterialAccountingDetector::m_curvilinearOut
double m_curvilinearOut
Definition:
MaterialAccountingDetector.h:53
MaterialAccountingTrack.h
MaterialAccountingTrack::enterDetector
void enterDetector(const GlobalPoint &position, double cosTheta)
Definition:
MaterialAccountingTrack.cc:6
Point3DBase< float, GlobalTag >
MaterialAccountingTrack::m_detector
MaterialAccountingDetector m_detector
Definition:
MaterialAccountingTrack.h:51
MaterialAccountingTrack::m_total
MaterialAccountingStep m_total
Definition:
MaterialAccountingTrack.h:50
position
static int position[264][3]
Definition:
ReadPGInfo.cc:289
MaterialAccountingDetector::clear
void clear(void)
Definition:
MaterialAccountingDetector.h:24
MaterialAccountingTrack::leaveDetector
void leaveDetector(double cosTheta)
Definition:
MaterialAccountingTrack.cc:12
MaterialAccountingStep::length
double length(void) const
Definition:
MaterialAccountingStep.h:32
MaterialAccountingDetector::m_position
GlobalPoint m_position
Definition:
MaterialAccountingDetector.h:51
GlobalPoint.h
Generated for CMSSW Reference Manual by
1.8.16