#include <MCint.h>
Public Member Functions | |
| MCint (Mint &mint) | |
| ~MCint () | |
| void | Update () |
| const std::vector< DigiScintHit * > & | GetScintHits () |
Private Member Functions | |
| void | Clear () |
| void | GetData () |
Private Attributes | |
| Mint & | fMint |
| bool | fDirty |
| std::vector< DigiScintHit * > | fScintHits |
Midad/Base
NOTE: there should be absolutely *NO* reference to REROOT stuff in this header.
Contact: bv@bnl.gov
Created on: Wed Feb 5 15:41:31 2003
Definition at line 30 of file MCint.h.
|
|
Definition at line 30 of file MCint.cxx.
|
|
|
Definition at line 36 of file MCint.cxx. 00037 {
00038 }
|
|
|
Definition at line 44 of file MCint.cxx. References fScintHits. Referenced by GetData(). 00045 {
00046 fScintHits.clear();
00047 }
|
|
|
Definition at line 64 of file MCint.cxx. References Clear(), clones_array_to_vector(), fDirty, RecDataRecord< T >::FindComponent(), fMint, fScintHits, MomNavigator::GetFragment(), Mint::GetJobC(), and JobC::Mom. Referenced by GetScintHits(). 00065 {
00066 if (!fDirty) return;
00067 this->Clear();
00068
00069 const MomNavigator& mom = fMint.GetJobC().Mom;
00070 SimSnarlRecord* ssr = dynamic_cast<SimSnarlRecord*>(mom.GetFragment("SimSnarlRecord"));
00071 if (!ssr) {
00072 cerr << "No SimSnarlRecord in this data\n";
00073 return;
00074 }
00075
00076 const TClonesArray* arr = dynamic_cast<const TClonesArray*>
00077 (ssr->FindComponent("TClonesArray","DigiScintHits"));
00078 if (!arr) {
00079 cerr << "No DigiScintHit TClonesArray in this data\n";
00080 return;
00081 }
00082
00083 clones_array_to_vector(*arr,fScintHits);
00084 fDirty = false;
00085 }
|
|
|
Definition at line 87 of file MCint.cxx. References GetData(). Referenced by MCDisp::Update(). 00088 {
00089 this->GetData();
00090 return fScintHits;
00091 }
|
|
|
Definition at line 40 of file MCint.cxx. References fDirty. Referenced by Mint::NewMom(). 00041 {
00042 fDirty = true;
00043 }
|
|
|
|
|
|
Definition at line 44 of file MCint.h. Referenced by GetData(). |
|
|
|
1.3.9.1