Line | |
---|
1 | #include "MCerPhotPix.h"
|
---|
2 |
|
---|
3 | #include "MLog.h"
|
---|
4 |
|
---|
5 | ClassImp(MCerPhotPix)
|
---|
6 |
|
---|
7 | MCerPhotPix::MCerPhotPix(Int_t pix, Float_t phot, Float_t errphot ) :
|
---|
8 | fPixId(pix), fIsUsed(kTRUE), fIsCore(kFALSE), fPhot(phot), fErrPhot(errphot)
|
---|
9 | {
|
---|
10 | }
|
---|
11 |
|
---|
12 | void MCerPhotPix::SetPixelContent(Int_t pix, Float_t phot, Float_t errphot)
|
---|
13 | {
|
---|
14 | fPixId = pix ;
|
---|
15 | fIsUsed = kTRUE ;
|
---|
16 | fIsUsed = kFALSE ;
|
---|
17 | fPhot = phot ;
|
---|
18 | fErrPhot = errphot ;
|
---|
19 | }
|
---|
20 |
|
---|
21 | void MCerPhotPix::Print(Option_t *)
|
---|
22 | {
|
---|
23 | // information about a pixel
|
---|
24 | gLog << "MCerPhotPix: Pixel: "<< fPixId ;
|
---|
25 |
|
---|
26 | gLog << (fIsUsed?" Used ":" Unused ");
|
---|
27 |
|
---|
28 | gLog << (fIsCore?" Core ":" ");
|
---|
29 |
|
---|
30 | gLog << " Nphot= " << fPhot
|
---|
31 | << " Error(Nphot) = " << fErrPhot
|
---|
32 | << endl ;
|
---|
33 | }
|
---|
34 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.