CbmRoot
CbmRichDetectorData.h
Go to the documentation of this file.
1
/*detector
2
* CbmRichData.h
3
*
4
* Created on: Dec 17, 2015
5
* Author: slebedev
6
*/
7
8
#ifndef RICH_DETECTOR_CBMRICHDETECTORDATA_H_
9
#define RICH_DETECTOR_CBMRICHDETECTORDATA_H_
10
11
#include <RtypesCore.h>
// for Double_t, Int_t, Bool_t
12
13
#include <algorithm>
// for find
14
#include <string>
// for string, to_string
15
#include <vector>
// for vector
16
17
class
CbmRichPixelData
{
18
public
:
19
Int_t
fAddress
;
20
Double_t
fX
;
21
Double_t
fY
;
22
Double_t
fZ
;
23
Int_t
fPmtId
;
24
};
25
26
class
CbmRichPmtData
{
27
public
:
28
Bool_t
ContainsPixel
(Int_t address) {
29
return
std::find(
fPixelAddresses
.begin(),
fPixelAddresses
.end(), address)
30
!=
fPixelAddresses
.end();
31
}
32
33
std::string
ToString
() {
34
return
"id:"
+ std::to_string(
fId
) +
" nofPixels:"
35
+ std::to_string(
fPixelAddresses
.size()) +
" x:"
+ std::to_string(
fX
)
36
+
" y:"
+ std::to_string(
fY
) +
" z:"
+ std::to_string(
fZ
)
37
+
" W:"
+ std::to_string(
fWidth
) +
" H:"
+ std::to_string(
fHeight
);
38
}
39
Int_t
fId
;
40
std::vector<Int_t>
fPixelAddresses
;
41
Double_t
fX
;
42
Double_t
fY
;
43
Double_t
fZ
;
44
Double_t
fWidth
;
45
Double_t
fHeight
;
46
};
47
48
#endif
/* RICH_DETECTOR_CBMRICHDETECTORDATA_H_ */
CbmRichPixelData
Definition:
CbmRichDetectorData.h:17
CbmRichPmtData::fY
Double_t fY
Definition:
CbmRichDetectorData.h:42
CbmRichPmtData::ToString
std::string ToString()
Definition:
CbmRichDetectorData.h:33
CbmRichPmtData::fZ
Double_t fZ
Definition:
CbmRichDetectorData.h:43
CbmRichPmtData
Definition:
CbmRichDetectorData.h:26
CbmRichPixelData::fPmtId
Int_t fPmtId
Definition:
CbmRichDetectorData.h:23
CbmRichPixelData::fY
Double_t fY
Definition:
CbmRichDetectorData.h:21
CbmRichPixelData::fAddress
Int_t fAddress
Definition:
CbmRichDetectorData.h:19
CbmRichPixelData::fX
Double_t fX
Definition:
CbmRichDetectorData.h:20
CbmRichPmtData::fX
Double_t fX
Definition:
CbmRichDetectorData.h:41
CbmRichPmtData::ContainsPixel
Bool_t ContainsPixel(Int_t address)
Definition:
CbmRichDetectorData.h:28
CbmRichPmtData::fId
Int_t fId
Definition:
CbmRichDetectorData.h:39
CbmRichPmtData::fWidth
Double_t fWidth
Definition:
CbmRichDetectorData.h:44
CbmRichPmtData::fHeight
Double_t fHeight
Definition:
CbmRichDetectorData.h:45
CbmRichPmtData::fPixelAddresses
std::vector< Int_t > fPixelAddresses
Definition:
CbmRichDetectorData.h:40
CbmRichPixelData::fZ
Double_t fZ
Definition:
CbmRichDetectorData.h:22
core
detectors
rich
CbmRichDetectorData.h
Generated on Wed Oct 28 2020 15:11:43 for CbmRoot by
1.8.18