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
16
class
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
*/
26
class
QwBeamDetectorID
{
27
public
:
28
QwBeamDetectorID
(Int_t subbankid, Int_t offset,TString name, TString dettype,
29
TString modtype);
30
QwBeamDetectorID
(Int_t subbankid,
QwParameterFile
¶mfile);
31
QwBeamDetectorID
(
const
QwBeamDetectorID
& input);
32
~QwBeamDetectorID
(){};
33
34
Bool_t
ReportInitErrors
()
const
;
35
void
Print
()
const
;
36
37
public
:
38
Int_t
fSubbankIndex
;
39
Int_t
fWordInSubbank
;
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
46
TString
fdetectorname
;
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
;
53
TString
fSubelementName
;
54
55
private
:
56
QwBeamDetectorID
();
57
58
};
QwTypes.h
Basic data types and constants used throughout the Qweak analysis framework.
EQwBeamInstrumentType
EQwBeamInstrumentType
Definition
QwTypes.h:143
QwParameterFile
Configuration file parser with flexible tokenization and search capabilities.
Definition
QwParameterFile.h:49
QwBeamDetectorID::QwBeamDetectorID
QwBeamDetectorID(Int_t subbankid, Int_t offset, TString name, TString dettype, TString modtype)
Definition
QwBeamDetectorID.cc:19
QwBeamDetectorID::fSubbankIndex
Int_t fSubbankIndex
Definition
QwBeamDetectorID.h:38
QwBeamDetectorID::fSubelementName
TString fSubelementName
Definition
QwBeamDetectorID.h:53
QwBeamDetectorID::~QwBeamDetectorID
~QwBeamDetectorID()
Definition
QwBeamDetectorID.h:32
QwBeamDetectorID::fTypeID
EQwBeamInstrumentType fTypeID
Definition
QwBeamDetectorID.h:49
QwBeamDetectorID::fmoduletype
TString fmoduletype
Definition
QwBeamDetectorID.h:45
QwBeamDetectorID::fWordInSubbank
Int_t fWordInSubbank
Definition
QwBeamDetectorID.h:39
QwBeamDetectorID::Print
void Print() const
Definition
QwBeamDetectorID.cc:142
QwBeamDetectorID::fSubelement
UInt_t fSubelement
Definition
QwBeamDetectorID.h:51
QwBeamDetectorID::fChannelName
TString fChannelName
Definition
QwBeamDetectorID.h:52
QwBeamDetectorID::ReportInitErrors
Bool_t ReportInitErrors() const
Definition
QwBeamDetectorID.cc:113
QwBeamDetectorID::QwBeamDetectorID
QwBeamDetectorID()
QwBeamDetectorID::fdetectortype
TString fdetectortype
Definition
QwBeamDetectorID.h:47
QwBeamDetectorID::fIndex
Int_t fIndex
Definition
QwBeamDetectorID.h:50
QwBeamDetectorID::fdetectorname
TString fdetectorname
Definition
QwBeamDetectorID.h:46
Parity
include
QwBeamDetectorID.h
Generated on Wed Oct 22 2025 21:41:25 for JAPAn by
1.13.1