QwAnalysis
QwBeamDetectorID.h
Go to the documentation of this file.
1 /**********************************************************\
2 * File: QwBeamDetectorID.h *
3 * *
4 * Author: *
5 * Time-stamp: *
6 \**********************************************************/
7 
8 #ifndef __QWBEAMDETECTORID__
9 #define __QWBEAMDETECTORID__
10 
11 // ROOT headers
12 #include "Rtypes.h"
13 #include "TString.h"
14 
15 // Qweak headers
16 #include "QwTypes.h"
17 
18 // Qweak database headers
19 #include "QwDBInterface.h"
20 
21 // Forward declarations
22 class QwParameterFile;
23 
24 /*****************************************************************
25 * Class:
26 ******************************************************************/
28 public:
29  QwBeamDetectorID(Int_t subbankid, Int_t offset,TString name, TString dettype,
30  TString modtype);
31  QwBeamDetectorID(Int_t subbankid, QwParameterFile &paramfile);
32  QwBeamDetectorID(const QwBeamDetectorID& input);
34 
35  Bool_t ReportInitErrors() const;
36  void Print() const;
37 
38 public:
41  //first word reported for this channel in the subbank
42  //(eg VQWK channel report 6 words for each event, scalers oly report one word per event)
43 
44  // The first word of the subbank gets fWordInSubbank=0
45 
46  TString fmoduletype; // eg: VQWK, SCALER
47  TString fdetectorname;
48  TString fdetectortype; // stripline, bcm, ... this string is encoded by fTypeID
49 
50  EQwBeamInstrumentType fTypeID; // type of detector eg: bcm or stripline, etc..
51  Int_t fIndex; // index of this detector in the vector containing all the detector of same type
52  UInt_t fSubelement; // some detectors have many subelements (eg stripline have 4 antenas) some have only one sub element(eg lumis have one channel)
53  TString fChannelName;
54  TString fSubelementName;
55 
56 private:
58 
59 };
60 
61 #endif
void Print() const
Bool_t ReportInitErrors() const
EQwBeamInstrumentType fTypeID
EQwBeamInstrumentType
Definition: QwTypes.h:132