JAPAn
Just Another Parity Analyzer
Loading...
Searching...
No Matches
QwBeamDetectorID.h
Go to the documentation of this file.
1/*!
2 * \file QwBeamDetectorID.h
3 * \brief Beam detector identification and mapping class
4 */
5
6#pragma once
7
8// ROOT headers
9#include "Rtypes.h"
10#include "TString.h"
11
12// Qweak headers
13#include "QwTypes.h"
14
15// Forward declarations
16class QwParameterFile;
17
18/*****************************************************************
19* Class:
20******************************************************************/
21/**
22 * \class QwBeamDetectorID
23 * \ingroup QwAnalysis_BL
24 * \brief Beam detector mapping/ID decoded from map files
25 */
27public:
28 QwBeamDetectorID(Int_t subbankid, Int_t offset,TString name, TString dettype,
29 TString modtype);
30 QwBeamDetectorID(Int_t subbankid, QwParameterFile &paramfile);
33
34 Bool_t ReportInitErrors() const;
35 void Print() const;
36
37public:
40 //first word reported for this channel in the subbank
41 //(eg VQWK channel report 6 words for each event, scalers only report one word per event)
42
43 // The first word of the subbank gets fWordInSubbank=0
44
45 TString fmoduletype; // eg: VQWK, SCALER
47 TString fdetectortype; // stripline, bcm, ... this string is encoded by fTypeID
48
49 EQwBeamInstrumentType fTypeID; // type of detector eg: bcm or stripline, etc..
50 Int_t fIndex; // index of this detector in the vector containing all the detector of same type
51 UInt_t fSubelement; // some detectors have many subelements (eg stripline have 4 antenas) some have only one sub element(eg lumis have one channel)
52 TString fChannelName;
54
55private:
57
58};
Basic data types and constants used throughout the Qweak analysis framework.
EQwBeamInstrumentType
Definition QwTypes.h:143
Configuration file parser with flexible tokenization and search capabilities.
QwBeamDetectorID(Int_t subbankid, Int_t offset, TString name, TString dettype, TString modtype)
EQwBeamInstrumentType fTypeID
Bool_t ReportInitErrors() const