SEvent/Scintillator.cc
Go to the documentation of this file.
1 #include <utl/ErrorLogger.h>
2 
3 #include <det/Detector.h>
4 #include <sdet/SDetector.h>
5 #include <sdet/Station.h>
6 
7 #include <sevt/Scintillator.h>
8 #include <sevt/ScintillatorRecData.h>
9 #include <sevt/StationConstants.h>
10 
11 #include <iostream>
12 
13 using namespace std;
14 using namespace utl;
15 using namespace det;
16 using namespace sevt;
17 
18 
19 void
20 Scintillator::MakeMIPTrace(const StationConstants::SignalComponent source)
21 {
22  const auto& dStation = Detector::GetInstance().GetSDetector().GetStation(fStationId);
23 
24  fTrace.AddTrace(dStation.GetFADCTraceLength(), dStation.GetFADCBinSize(), source);
25 }
26 
27 
28 void
29 Scintillator::MakeSimData()
30 {
31  if (fSimData)
32  ERROR("SimData already exists - Not Replacing");
33  else
34  fSimData = new ScintillatorSimData;
35 }
36 
37 
38 void
39 Scintillator::MakeRecData()
40 {
41  if (fRecData)
42  ERROR("ScintillatorRecData already present.");
43  else
44  fRecData = new ScintillatorRecData;
45 }
Station Scintillator Level Simulated Data
Class to access station scintillator reconstructed data.
#define ERROR(message)
Macro for logging error messages.
Definition: ErrorLogger.h:165

, generated on Tue Sep 26 2023.