#include <map>
#include <iostream>
#include <Rtypes.h>
#include "QwUnits.h"
Go to the source code of this file.
|
enum | EQwRegionID {
kRegionIDNull = 0,
kRegionID1,
kRegionID2,
kRegionID3,
kRegionIDTrig,
kRegionIDCer,
kRegionIDScanner,
kNumRegions
} |
|
enum | EQwDirectionID {
kDirectionNull = 0,
kDirectionX,
kDirectionY,
kDirectionU,
kDirectionV,
kDirectionR,
kDirectionPhi,
kDirectionLeft,
kDirectionRight,
kNumDirections
} |
|
enum | EQwDetectorPackage { kPackageNull = 0,
kPackage1,
kPackage2,
kNumPackages
} |
|
enum | EQwDetectorType {
kTypeNull = 0,
kTypeSciFiber,
kTypeDriftHDC,
kTypeDriftVDC,
kTypeTrigscint,
kTypeCerenkov,
kTypeScanner,
kNumTypes
} |
|
enum | EQwPMTInstrumentType {
kQwUnknownPMT = 0,
kQwIntegrationPMT,
kQwScalerPMT,
kQwCombinedPMT,
kNumInstrumentTypes
} |
|
enum | EQwBeamInstrumentType {
kQwUnknownDeviceType = 0,
kQwBPMStripline,
kQwQPD,
kQwLinearArray,
kQwBCM,
kQwCombinedBCM,
kQwCombinedBPM,
kQwEnergyCalculator,
kQwHaloMonitor,
kQwBPMCavity,
kQwClock,
kBeamDevTypes
} |
|
enum | EQwModuleType {
kUnknownModuleType = 0,
kV775_TDC,
kV792_ADC,
kF1TDC,
kSIS3801,
kNumModuleTypes
} |
|
enum | EQwHelicity { kHelicityUndefined,
kHelicityPositive,
kHelicityNegative
} |
| Helicity enumerator (don't use this as a signed int) More...
|
|
enum | EQwWienMode {
kWienIndeterminate = 0,
kWienForward,
kWienBackward,
kWienVertTrans,
kWienHorizTrans
} |
| Double Wien configuration. More...
|
|
|
std::ostream & | operator<< (std::ostream &stream, const EQwRegionID &i) |
|
QwRegionMap | CreateRegionMap () |
|
std::ostream & | operator<< (std::ostream &stream, const EQwDirectionID &i) |
|
QwDirectionMap | CreateDirectionMap () |
|
std::ostream & | operator<< (std::ostream &stream, const EQwDetectorPackage &i) |
|
QwPackageMap | CreatePackageMap () |
|
std::ostream & | operator<< (std::ostream &stream, const EQwDetectorType &i) |
|
QwTypeMap | CreateTypeMap () |
|
UInt_t | GetGlobalErrorFlag (TString evtype, Int_t evMode, Double_t stabilitycut) |
|
EQwPMTInstrumentType | GetQwPMTInstrumentType (TString name) |
|
TString | GetQwPMTInstrumentTypeName (EQwPMTInstrumentType type) |
|
EQwBeamInstrumentType | GetQwBeamInstrumentType (TString name) |
|
TString | GetQwBeamInstrumentTypeName (EQwBeamInstrumentType type) |
|
EQwRegionID & | operator++ (EQwRegionID ®ion, int) |
|
EQwDirectionID & | operator++ (EQwDirectionID &direction, int) |
|
EQwDetectorPackage & | operator++ (EQwDetectorPackage &package, int) |
|
EQwDetectorType & | operator++ (EQwDetectorType &type, int) |
|
QwHelicityMap | CreateHelicityMap () |
|
std::string | WienModeName (EQwWienMode type) |
|
EQwWienMode | WienModeIndex (TString name) |
|
Use the static map kMapHelicity to get the helicity sign e.g.: kMapHelicity[kHelicityPositive] will return +1
Definition at line 217 of file QwTypes.h.
Enumerator |
---|
kQwUnknownDeviceType |
|
kQwBPMStripline |
|
kQwQPD |
|
kQwLinearArray |
|
kQwBCM |
|
kQwCombinedBCM |
|
kQwCombinedBPM |
|
kQwEnergyCalculator |
|
kQwHaloMonitor |
|
kQwBPMCavity |
|
kQwClock |
|
kBeamDevTypes |
|
Definition at line 132 of file QwTypes.h.
Enumerator |
---|
kPackageNull |
|
kPackage1 |
|
kPackage2 |
|
kNumPackages |
|
Definition at line 70 of file QwTypes.h.
Enumerator |
---|
kTypeNull |
|
kTypeSciFiber |
|
kTypeDriftHDC |
|
kTypeDriftVDC |
|
kTypeTrigscint |
|
kTypeCerenkov |
|
kTypeScanner |
|
kNumTypes |
|
Definition at line 94 of file QwTypes.h.
Enumerator |
---|
kDirectionNull |
|
kDirectionX |
|
kDirectionY |
|
kDirectionU |
|
kDirectionV |
|
kDirectionR |
|
kDirectionPhi |
|
kDirectionLeft |
|
kDirectionRight |
|
kNumDirections |
|
Definition at line 41 of file QwTypes.h.
Helicity enumerator (don't use this as a signed int)
Enumerator |
---|
kHelicityUndefined |
|
kHelicityPositive |
|
kHelicityNegative |
|
Definition at line 210 of file QwTypes.h.
Enumerator |
---|
kUnknownModuleType |
|
kV775_TDC |
|
kV792_ADC |
|
kF1TDC |
|
kSIS3801 |
|
kNumModuleTypes |
|
Definition at line 148 of file QwTypes.h.
Enumerator |
---|
kQwUnknownPMT |
|
kQwIntegrationPMT |
|
kQwScalerPMT |
|
kQwCombinedPMT |
|
kNumInstrumentTypes |
|
Definition at line 124 of file QwTypes.h.
Enumerator |
---|
kRegionIDNull |
|
kRegionID1 |
|
kRegionID2 |
|
kRegionID3 |
|
kRegionIDTrig |
|
kRegionIDCer |
|
kRegionIDScanner |
|
kNumRegions |
|
Definition at line 16 of file QwTypes.h.
Double Wien configuration.
Enumerator |
---|
kWienIndeterminate |
|
kWienForward |
|
kWienBackward |
|
kWienVertTrans |
|
kWienHorizTrans |
|
Definition at line 302 of file QwTypes.h.
UInt_t GetGlobalErrorFlag |
( |
TString |
evtype, |
|
|
Int_t |
evMode, |
|
|
Double_t |
stabilitycut |
|
) |
| |
Definition at line 29 of file QwTypes.cc.
References kQwBCM, kQwBPMCavity, kQwBPMStripline, kQwClock, kQwCombinedBCM, kQwCombinedBPM, kQwEnergyCalculator, kQwHaloMonitor, kQwLinearArray, kQwQPD, and kQwUnknownDeviceType.
Referenced by QwBeamLine::LoadChannelMap(), QwBeamLine::LoadEventCuts(), QwBeamLine::LoadGeometryDefinition(), QwBeamLine::PublishInternalValues(), and QwBeamDetectorID::QwBeamDetectorID().
35 if (name==
"bpmstripline"){
38 else if (name==
"bcm"){
41 else if (name==
"combinedbcm"){
44 else if (name==
"combinedbpm"){
47 else if (name==
"energycalculator"){
50 else if (name==
"halomonitor"){
53 else if (name==
"bpmcavity"){
56 else if (name==
"qpd"){
59 else if (name==
"lineararray"){
62 else if (name==
"clock") {
Definition at line 95 of file QwTypes.cc.
References kQwBCM, kQwBPMCavity, kQwBPMStripline, kQwCombinedBCM, kQwCombinedBPM, kQwEnergyCalculator, kQwHaloMonitor, kQwLinearArray, and kQwQPD.
Referenced by QwBeamLine::GetChannel(), QwBeamLine::GetElement(), QwBeamLine::LoadEventCuts(), and QwBeamLine::PublishByRequest().
97 result =
"kQwUnknownDeviceType";
99 result =
"bpmstripline";
108 result =
"lineararray";
111 result =
"combinedbcm";
114 result =
"combinedbpm";
117 result =
"energycalculator";
120 result =
"halomonitor";
123 result =
"bpmcavity";
Definition at line 201 of file QwTypes.h.
202 return package = EQwDetectorPackage(package + 1);
std::ostream& operator<< |
( |
std::ostream & |
stream, |
|
|
const EQwRegionID & |
i |
|
) |
| |
|
inline |
Definition at line 22 of file QwTypes.h.
23 stream <<
"?123TCS#"[i];
return stream;
std::ostream& operator<< |
( |
std::ostream & |
stream, |
|
|
const EQwDirectionID & |
i |
|
) |
| |
|
inline |
Definition at line 49 of file QwTypes.h.
50 stream <<
"?xyuvrfLR#"[i];
return stream;
Definition at line 80 of file QwTypes.h.
81 stream <<
"?12#"[i];
return stream;
std::ostream& operator<< |
( |
std::ostream & |
stream, |
|
|
const EQwDetectorType & |
i |
|
) |
| |
|
inline |
Definition at line 104 of file QwTypes.h.
105 stream <<
"?fhvtcs#"[i];
return stream;
const UInt_t kBCMErrorFlag = 0x100 |
|
static |
const UInt_t kBeamStabilityError = 0x10000000 |
|
static |
const UInt_t kBeamTripError = 0x8000000 |
|
static |
const UInt_t kBModErrorFlag = 0x8000 |
|
static |
const UInt_t kBModFFBErrorFlag = 0x1000 |
|
static |
const UInt_t kBPMErrorFlag = 0x400 |
|
static |
const UInt_t kErrorFlag_BlinderFail = 0x200 |
|
static |
const UInt_t kErrorFlag_EventCut_L = 0x40 |
|
static |
const UInt_t kErrorFlag_EventCut_U = 0x80 |
|
static |
const UInt_t kErrorFlag_SameHW = 0x10 |
|
static |
const UInt_t kErrorFlag_sample = 0x2 |
|
static |
const UInt_t kErrorFlag_Sequence = 0x8 |
|
static |
const UInt_t kErrorFlag_SW_HW = 0x4 |
|
static |
const UInt_t kErrorFlag_VQWK_Sat = 0x01 |
|
static |
const UInt_t kErrorFlag_ZeroHW = 0x20 |
|
static |
const UInt_t kEventCutMode3 = 0x10000 |
|
static |
const UInt_t kGlobalCut = 0x4000000 |
|
static |
const UInt_t kInvalidSubelementIndex = 999999 |
|
static |
const UInt_t kLocalCut = 0x2000000 |
|
static |
const UInt_t kPMTErrorFlag = 0x800 |
|
static |
const UInt_t kPreserveError = 0x2FF |
|
static |
const UInt_t kStabilityCut = 0x1000000 |
|
static |