20 TString name, TString dettype,
33 Int_t modnum, channum;
46 if (paramfile.
ReturnValue(
"vqwk_buffer_offset",offset)) {
51 if (paramfile.
ReturnValue(
"adc18_buffer_offset",offset)) {
56 if (paramfile.
ReturnValue(
"scaler_buffer_offset",offset)) {
60 UInt_t decode_mode = 0;
61 paramfile.
ReturnValue(
"molleradc_decode_mode", decode_mode)
62 || paramfile.
ReturnValue(
"decode_mode", decode_mode);
66 if (paramfile.
ReturnValue(
"MollerADC_buffer_offset",offset)) {
123 QwError<<
"QwBeamLine::LoadChannelMap: Unknown module type, "
130 QwError <<
"QwBeamLine::LoadChannelMap: Unknown detector type, "
138 <<
" was not recognized as a valid subelement for "
150 std::cout<<std::endl<<
"Detector name= "<<
fdetectorname<<std::endl;
153 std::cout<<
"module type= "<<
fmoduletype<<std::endl;
155 std::cout<<
"Index of this detector in the vector of similar detector= "<<
157 std::cout<<
"Subelement index= "<<
159 std::cout<<
"---------------------------------------------------"<<std::endl;
160 std::cout<<std::endl;
Decoding and management for VQWK ADC channels (6x32-bit datawords)
static const UInt_t kInvalidSubelementIndex
EQwBeamInstrumentType GetQwBeamInstrumentType(TString name)
#define QwError
Predefined log drain for errors.
Base and derived classes for scaler channel data handling.
Decoding and management for Moller ADC channels (6x32-bit datawords)
Beam detector identification and mapping class.
Quadrant photodiode beam position monitor implementation.
Cavity beam position monitor implementation.
Stripline beam position monitor implementation.
Linear diode array beam position monitor implementation.
static Int_t GetBufferOffset(Int_t moduleindex, Int_t channelindex)
static std::ostream & endl(std::ostream &)
End of the line.
static void SetDecodeMode(UInt_t input)
static Int_t GetBufferOffset(Int_t moduleindex, Int_t channelindex)
Configuration file parser with flexible tokenization and search capabilities.
T GetTypedNextToken()
Get next token into specific type.
Bool_t ReturnValue(const std::string keyname, T &retvalue)
static Int_t GetBufferOffset(Int_t scalerindex, Int_t wordindex, UInt_t header=1)
static Int_t GetBufferOffset(Int_t moduleindex, Int_t channelindex)
QwBeamDetectorID(Int_t subbankid, Int_t offset, TString name, TString dettype, TString modtype)
EQwBeamInstrumentType fTypeID
Bool_t ReportInitErrors() const
static Bool_t ParseChannelName(const TString &channel, TString &detname, TString &subname, UInt_t &localindex)
static UInt_t GetSubElementIndex(TString subname)
static UInt_t GetSubElementIndex(TString subname)
static UInt_t GetSubElementIndex(TString subname)