QwAnalysis
QwModChannelID Class Reference

#include <QwBeamMod.h>

Public Member Functions

 QwModChannelID (Int_t subbankid, Int_t wordssofar, TString name, TString modtype, QwBeamMod *obj)
 
void Print ()
 

Data Fields

Int_t fSubbankIndex
 
Int_t fWordInSubbank
 
TString fmoduletype
 
TString fmodulename
 
Int_t kUnknownDeviceType
 
Int_t fTypeID
 
Int_t fIndex
 

Detailed Description

Definition at line 197 of file QwBeamMod.h.

Constructor & Destructor Documentation

QwModChannelID::QwModChannelID ( Int_t  subbankid,
Int_t  wordssofar,
TString  name,
TString  modtype,
QwBeamMod obj 
)

Definition at line 221 of file QwBeamMod.cc.

References fTypeID, and kQwUnknownDeviceType.

222  :
223  fSubbankIndex(subbankid),fWordInSubbank(wordssofar),
224  fmoduletype(modtype),fmodulename(name),kUnknownDeviceType(-1)
225 {
227  // for(size_t i=0;i<obj->fgModTypeNames.size();i++){
228  // if(dettype == obj->fgModTypeNames[i]){
229  // fTypeID = EBeamInstrumentType(i);
230  // std::cout << "Detector type not recognized" << std::endl;
231  // break;
232  // }
233  // }
234 // if (fTypeID == kUnknownDeviceType) {
235 // std::cerr << "QwModChannelID::QwModChannelID: Unknown detector type: "
236 // << dettype <<", the detector "<<name<<" will not be decoded "
237 // << std::endl;
238 // }
239 }
Int_t kUnknownDeviceType
Definition: QwBeamMod.h:220
TString fmoduletype
Definition: QwBeamMod.h:216
Int_t fSubbankIndex
Definition: QwBeamMod.h:209
Int_t fWordInSubbank
Definition: QwBeamMod.h:210
TString fmodulename
Definition: QwBeamMod.h:217

Member Function Documentation

void QwModChannelID::Print ( )

Definition at line 978 of file QwBeamMod.cc.

References QwLog::endl(), fIndex, fmodulename, fmoduletype, fSubbankIndex, fWordInSubbank, and QwMessage.

Referenced by QwBeamMod::LoadChannelMap().

979 {
980  QwMessage <<std::endl<<"Detector name= "<<fmodulename<<QwLog::endl;
981  QwMessage <<"SubbankkIndex= "<<fSubbankIndex<<QwLog::endl;
982  QwMessage <<"word index in subbank= "<<fWordInSubbank<<QwLog::endl;
983  QwMessage <<"module type= "<<fmoduletype<<QwLog::endl;
984 // QwMessage <<"detector type= "<<fdetectortype<<" that is index="<<fTypeID<<QwLog::endl;
985  QwMessage <<"Index of this detector in the vector of similar detector= "<<
986  fIndex << QwLog::endl;
987 //QwMessage <<"Subelement index= "<< fSubelement<<QwLog::endl;
988 
989 
990  QwMessage << "---------------------------------------------------" << QwLog::endl;
992 }
#define QwMessage
Predefined log drain for regular messages.
Definition: QwLog.h:50
TString fmoduletype
Definition: QwBeamMod.h:216
Int_t fSubbankIndex
Definition: QwBeamMod.h:209
static std::ostream & endl(std::ostream &)
End of the line.
Definition: QwLog.cc:299
Int_t fWordInSubbank
Definition: QwBeamMod.h:210
TString fmodulename
Definition: QwBeamMod.h:217

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

Int_t QwModChannelID::fIndex

Definition at line 222 of file QwBeamMod.h.

Referenced by QwBeamMod::LoadChannelMap(), and Print().

TString QwModChannelID::fmodulename

Definition at line 217 of file QwBeamMod.h.

Referenced by QwBeamMod::LoadChannelMap(), and Print().

TString QwModChannelID::fmoduletype

Definition at line 216 of file QwBeamMod.h.

Referenced by Print().

Int_t QwModChannelID::fSubbankIndex

Definition at line 209 of file QwBeamMod.h.

Referenced by Print().

Int_t QwModChannelID::fTypeID

Definition at line 221 of file QwBeamMod.h.

Referenced by QwModChannelID().

Int_t QwModChannelID::fWordInSubbank

Definition at line 210 of file QwBeamMod.h.

Referenced by Print().

Int_t QwModChannelID::kUnknownDeviceType

Definition at line 220 of file QwBeamMod.h.


The documentation for this class was generated from the following files: