source: trunk/MagicSoft/Mars/manalysis/MCerPhotPix.cc@ 694

Last change on this file since 694 was 654, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 731 bytes
Line 
1#include "MCerPhotPix.h"
2
3#include "MLog.h"
4
5ClassImp(MCerPhotPix)
6
7MCerPhotPix::MCerPhotPix(Int_t pix, Float_t phot, Float_t errphot ) :
8 fPixId(pix), fIsUsed(kTRUE), fIsCore(kFALSE), fPhot(phot), fErrPhot(errphot)
9{
10}
11
12void 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
21void 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.