18#ifdef __USE_DATABASE__
43 Bool_t localDebug = kFALSE;
45 if( localDebug )
QwMessage<<
"Creating BCM of type: "<<type<<
" with name: "<<
46 name<<
". Subsystem Name: " <<subsystemname<<
" and clock name="<<clock<<
"\n";
51 }
else if ( type ==
"ADC18" ) {
53 }
else if ( type ==
"SIS3801" ) {
55 }
else if ( type ==
"SCALER" || type ==
"SIS3801D24" ) {
57 }
else if ( type ==
"MOLLERADC" ) {
60 QwWarning <<
"BCM of type="<<type<<
" is UNSUPPORTED!!\n";
76 Bool_t localDebug = kFALSE;
84 }
else if ( type ==
"ADC18" ) {
86 }
else if ( type ==
"SIS3801" ) {
88 }
else if ( type ==
"SCALER" || type ==
"SIS3801D24" ) {
90 }
else if ( type ==
"MOLLERADC" ) {
93 QwWarning <<
"BCM of type="<<type<<
" is UNSUPPORTED!!\n";
103 Bool_t localDebug = kFALSE;
105 if( localDebug )
QwMessage<<
"Creating CombinedBCM of type: "<<type<<
" with name: "<<
106 name<<
". Subsystem Name: " <<subsystemname<<
"\n";
109 if( type ==
"VQWK") {
111 }
else if ( type ==
"ADC18" ) {
113 }
else if ( type ==
"SIS3801" ) {
115 }
else if ( type ==
"SCALER" || type ==
"SIS3801D24" ) {
117 }
else if ( type ==
"MOLLERADC" ) {
120 QwWarning <<
"BCM of type="<<type<<
" is UNSUPPORTED!!\n";
127 Bool_t localDebug = kFALSE;
133 if( type ==
"VQWK") {
135 }
else if ( type ==
"ADC18" ) {
137 }
else if ( type ==
"SIS3801" ) {
139 }
else if ( type ==
"SCALER" || type ==
"SIS3801D24" ) {
141 }
else if ( type ==
"MOLLERADC" ) {
144 QwWarning <<
"BCM of type="<<type<<
" is UNSUPPORTED!!\n";
Base and derived classes for scaler channel data handling.
#define QwWarning
Predefined log drain for warnings.
#define QwMessage
Predefined log drain for regular messages.
Decoding and management for Moller ADC channels (6x32-bit datawords)
Decoding and management for VQWK ADC channels (6x32-bit datawords)
Database interface for QwIntegrationPMT and subsystems.
Virtual base class for beam current monitors.
Combined beam current monitor using weighted average of multiple BCMs.
Beam current monitor template class.
static std::ostream & endl(std::ostream &)
End of the line.
TString GetModuleType() const
Return the type of the beam instrument.
friend class QwCombinedBCM
static VQwBCM * CreateCombo(TString subsystemname, TString type, TString name)
Factory method to create a concrete Combined BCM for the requested module type.
VQwBCM(VQwDataElement &beamcurrent)
static VQwBCM * Create(TString subsystemname, TString type, TString name, TString clock="")
Factory method to create a concrete BCM instance for the requested module type.