4 #include <boost/lexical_cast.hpp>
6 #include <det/VManager.h>
7 #include <det/Detector.h>
9 #include <fdet/FDetector.h>
11 #include <fdet/Telescope.h>
12 #include <fdet/Camera.h>
13 #include <fdet/Channel.h>
15 #include <utl/ErrorLogger.h>
24 const unsigned int telescopeId,
25 const unsigned int channelId,
26 const std::string& physEyeIdString,
27 const std::string& physTelIdString) :
28 fChannelId(channelId),
31 fPhysicalEyeIdString(physEyeIdString),
32 fPhysicalTelescopeIdString(physTelIdString),
80 if( (row % 2) == 0 ) {
102 return det::Detector::GetInstance().GetFDetector().GetEye(
fEyeId).GetTelescope(
fTelescopeId).GetCamera().GetFLTBoxcarSumLength();
110 return det::Detector::GetInstance().GetFDetector().GetEye(
fEyeId).GetTelescope(
fTelescopeId).GetCamera().GetFLTProlongation();
118 return det::Detector::GetInstance().GetFDetector().GetEye(
fEyeId).GetTelescope(
fTelescopeId).GetCamera().GetSLTTriggerBin();
123 return det::Detector::GetInstance().GetFDetector().GetEye(
fEyeId).GetTelescope(
fTelescopeId).GetCamera().GetGainVariance();
127 return det::Detector::GetInstance().GetFDetector().GetEye(
fEyeId).GetTelescope(
fTelescopeId).GetCamera().GetElectronicNoiseVariance();
134 return det::Detector::GetInstance().GetFDetector().GetEye(
fEyeId).GetTelescope(
fTelescopeId).GetCamera().GetFADCTraceLength();
142 return det::Detector::GetInstance().GetFDetector().GetEye(
fEyeId).GetTelescope(
fTelescopeId).GetCamera().GetFADCBinSize();
152 Detector::GetInstance().GetFDetector().GetEye(
fEyeId).GetTelescope(
fTelescopeId).GetCamera();
190 const std::string& property,
191 const std::string& component,
192 const std::string& errorMsg)
195 if (!requestedData) {
196 requestedData =
new T;
199 return *requestedData;
207 const std::string& property,
208 const std::string& component,
209 const std::string& errorMsg)
212 const VManager& manager = Detector::GetInstance().GetFManagerRegister();
221 if (foundFlag == VManager::eNotFound) {
223 err <<
"Did not find requested component for " << errorMsg <<
"; "
224 << VManager::QueryInfoMessage(property, component, indexMap);
double GetThreshold() const
int GetSLTTriggerBin() const
double GetBaseline() const
std::string fPhysicalTelescopeIdString
Channel(const unsigned int eyeId, const unsigned int telescopeId, const unsigned int channelId, const std::string &physEyeIdString, const std::string &physTelIdString)
std::string fChannelIdStr
double GetElectronicsGain() const
unsigned int GetFirstPixelId() const
double GetElectronicNoiseVariance() const
Base class for exceptions trying to access non-existing components.
Interface for detector managers.
double GetElectronicsGain() const
unsigned int GetFirstColumn() const
virtual Status GetData(double &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0
unsigned int GetLastPixelId() const
int GetFLTBoxcarSumLength() const
double GetVirtualChannelGainRatio() const
int GetFADCTraceLength() const
unsigned int GetLastRow() const
double GetGainVariance() const
fTelescopeId(t.GetTelescopeId())
unsigned int fTelescopeId
int GetFLTProlongation() const
Detector description interface for Telescope-related data.
double GetFADCBinSize() const
std::map< std::string, std::string > IndexMap
unsigned int GetVirtualChannelId() const
std::string fPhysicalEyeIdString
double GetADCVariance() const
#define ERROR(message)
Macro for logging error messages.
const T & GetChannelData(T *&requestedData, const std::string &property, const std::string &component, const std::string &errorMsg) const
unsigned int GetFirstRow() const
Status
Specifies success or (eventually) various possible failure modes.
unsigned int GetPixelId() const