MCint Class Reference

#include <MCint.h>

List of all members.

Public Member Functions

 MCint (Mint &mint)
 ~MCint ()
void Update ()
const std::vector
< DigiScintHit * > & 
GetScintHits ()

Private Member Functions

void Clear ()
void GetData ()

Private Attributes

MintfMint
bool fDirty
std::vector< DigiScintHit * > fScintHits

Detailed Description

Id
MCint.h,v 1.2 2003/04/08 21:29:38 bv Exp

Definition at line 30 of file MCint.h.


Constructor & Destructor Documentation

MCint::MCint ( Mint mint  ) 

Definition at line 30 of file MCint.cxx.

00031     : fMint(mint)
00032     , fDirty(false)
00033 {
00034 }

MCint::~MCint (  ) 

Definition at line 36 of file MCint.cxx.

00037 {
00038 }


Member Function Documentation

void MCint::Clear ( void   )  [private]

Definition at line 44 of file MCint.cxx.

References fScintHits.

Referenced by GetData().

00045 {
00046     fScintHits.clear();
00047 }

void MCint::GetData (  )  [private]

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 }

const vector< DigiScintHit * > & MCint::GetScintHits (  ) 

Definition at line 87 of file MCint.cxx.

References fScintHits, and GetData().

Referenced by MCDisp::Update().

00088 {
00089     this->GetData();
00090     return fScintHits;
00091 }

void MCint::Update (  ) 

Definition at line 40 of file MCint.cxx.

References fDirty.

Referenced by Mint::NewMom().

00041 {
00042     fDirty = true;
00043 }


Member Data Documentation

bool MCint::fDirty [private]

Definition at line 45 of file MCint.h.

Referenced by GetData(), and Update().

Mint& MCint::fMint [private]

Definition at line 44 of file MCint.h.

Referenced by GetData().

std::vector<DigiScintHit*> MCint::fScintHits [private]

Definition at line 50 of file MCint.h.

Referenced by Clear(), GetData(), and GetScintHits().


The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1