-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDetector.h
More file actions
38 lines (29 loc) · 830 Bytes
/
Detector.h
File metadata and controls
38 lines (29 loc) · 830 Bytes
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
// Description: Defines the Detector class for modeling the particle detector.
// Author: Leo Feasby
// Date: 15/03/2024
#ifndef DETECTOR_H
#define DETECTOR_H
#include "Lepton.h"
#include <string>
class Detector
{
private:
std::string detector_type; // "tracker", "calorimeter", or "muon chamber"
bool status; // true for on, false for off
public:
Detector(); // Default constructor
Detector(const std::string& type); // Parameterized constructor
~Detector(); // Destructor
// Setters and getters
void set_detector_type(const std::string& type);
void set_status(bool status);
std::string get_detector_type() const;
bool get_status() const;
// Functionality
void turn_on();
void turn_off();
int detect_particle(const Lepton& particle) const;
// Utility
void print_info() const;
};
#endif