-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircularDetector.h
37 lines (29 loc) · 1.04 KB
/
circularDetector.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// circularDetector.h
// Xcode
//
// Created by jacob on 7/20/11.
// Copyright 2011 BMPI. All rights reserved.
//
#ifndef CIRCULARDETECTOR_H
#define CIRCULARDETECTOR_H
#include "detector.h"
class CircularDetector : public Detector
{
public:
CircularDetector(const double radius, const Vector3d ¢erPoint);
CircularDetector(const double radius, const boost::shared_ptr<Vector3d> centerPoint);
~CircularDetector();
virtual bool photonPassedThroughDetector(const boost::shared_ptr<Vector3d> p0,
const boost::shared_ptr<Vector3d> p1);
virtual bool photonHitDetector(const boost::shared_ptr<Vector3d> p0);
virtual void savePhotonExitCoordinates(const boost::shared_ptr<Vector3d> exitCoords);
void savePhotonExitData(const boost::shared_ptr<Vector3d> exitCoords,
const double weight,
const bool tagged);
virtual void savePhotonExitWeight(void);
private:
// Radius of the detector. [millimeters]
double radius;
};
#endif