#include <MyHit.h>
Inheritance diagram for calhit::MyHit:

Public Member Functions | |
| MyHit (const char *version) | |
| virtual | ~MyHit () |
Private Member Functions | |
| virtual jobc::Result | ADC2PEACHit (recobase::CellHit *) |
| derived class convertor | |
Definition at line 21 of file MyHit.h.
|
|
create calibrated hits. Derived class test. No Reco method, no Update method. These are in the base class Definition at line 10 of file MyHit.cxx. References jobc::Module::SetCfgVersion().
00010 : 00011 CalHit("MyHit") 00012 { 00013 00014 this->SetCfgVersion(version); 00015 std::cerr<<" This is MyHit, derived from CalHit!"<<std::endl; 00016 } |
|
|
Definition at line 18 of file MyHit.cxx.
00019 {
00020
00021 }
|
|
|
derived class convertor
Reimplemented from calhit::CalHit. Definition at line 24 of file MyHit.cxx. References calhit::CalHit::ADC2PEHit(), recobase::CellHit::PE(), jobc::Result, and recobase::CellHit::SetPEAC().
00025 {
00026 // Boneheaded derived class - represents attenuation-corrected PEs
00027
00028
00029 // require PE number before applying attenuation correction
00030 float pe;
00031 if (!ch->PE(pe)) {
00032 if (!ADC2PEHit(ch)) return jobc::kFailed;
00033 ch->PE(pe);
00034 }
00035 ch->SetPEAC(pe/0.000055); // off by 10^N from base class
00036
00037 return jobc::kPassed;
00038
00039 } // ADC2PEACHit
|
1.3.5