UberMC Class Reference

#include <UberMC.h>

List of all members.

Public Member Functions

 UberMC ()
 ~UberMC ()
void ResetEvent ()
void AddNextHit (UShort_t p, UShort_t s)
void AddNextHitValues (Int_t hb, Float_t edep, Float_t tpos, Float_t praw, Float_t nraw, Float_t pcorr, Float_t ncorr, Float_t ptdc, Float_t ntdc, Float_t pdist, Float_t ndist)
const TClonesArray * GetHitList () const
const TClonesArray * GetStdHep () const
void SetStdHep (const TClonesArray *a)

Public Attributes

Int_t mctype
Float_t mcpx
Float_t mcpy
Float_t mcpz
Float_t mcenergy
Float_t mcenergydep
Float_t mcvx
Float_t mcvy
Float_t mcvz
Int_t nhep

Private Attributes

UInt_t fmchitindex
TClonesArray * mchitlist
 keep track of current position in hit list
const TClonesArray * stdheplist

Static Private Attributes

static TClonesArray * fgmchitlist = 0

Detailed Description

Definition at line 8 of file UberMC.h.


Constructor & Destructor Documentation

UberMC::UberMC (  ) 

Definition at line 13 of file UberMC.cxx.

00013               :
00014   mctype(0),
00015   mcpx(0.),
00016   mcpy(0.),
00017   mcpz(0.),
00018   mcenergy(0.),
00019   mcenergydep(0.),
00020   mcvx(0.),
00021   mcvy(0.),
00022   mcvz(0.),
00023   nhep(0),
00024   stdheplist()
00025 {
00026   if(!fgmchitlist){
00027     fgmchitlist = new TClonesArray("UberMCHit",1440);
00028   }
00029   mchitlist = fgmchitlist;
00030 
00031 }//end UberMC()
//________________________________________________________________________________

UberMC::~UberMC (  ) 

Definition at line 33 of file UberMC.cxx.

References mchitlist.

00034 {
00035   mchitlist->Clear();
00036 }


Member Function Documentation

void UberMC::AddNextHit ( UShort_t  p,
UShort_t  s 
)

Definition at line 57 of file UberMC.cxx.

References fmchitindex, Msg::kDebug, MSG, and UberMCHit::SetPlaneStrip().

Referenced by UberDST::Ana().

00058 {
00059   MSG("UberMC",Msg::kDebug)<<"In UberMC AddNextHit"<<endl;
00060   new((*mchitlist)[fmchitindex]) UberMCHit();
00061   UberMCHit *mcuh = static_cast<UberMCHit *>((*mchitlist)[fmchitindex]);
00062   mcuh->SetPlaneStrip(p,s);
00063   fmchitindex++;
00064   return;
00065 
00066 }//end AddNextHit()

void UberMC::AddNextHitValues ( Int_t  hb,
Float_t  edep,
Float_t  tpos,
Float_t  praw,
Float_t  nraw,
Float_t  pcorr,
Float_t  ncorr,
Float_t  ptdc,
Float_t  ntdc,
Float_t  pdist,
Float_t  ndist 
)

Definition at line 68 of file UberMC.cxx.

References UberMCHit::AddValues(), fmchitindex, Msg::kDebug, and MSG.

Referenced by UberDST::Ana().

00071 {
00072   MSG("UberMC",Msg::kDebug)<<"In UberMC AddnextHitValues"<<endl;
00073   UberMCHit *mcuh = static_cast<UberMCHit *>((*mchitlist)[fmchitindex-1]);
00074   mcuh->AddValues(hb,edep,tpos,praw,nraw,pcorr,ncorr,ptdc,ntdc,pdist,ndist);
00075   return;
00076 }//end AddNextHitValues()

const TClonesArray* UberMC::GetHitList (  )  const [inline]

Definition at line 18 of file UberMC.h.

References mchitlist.

00018 {return mchitlist;}

const TClonesArray* UberMC::GetStdHep (  )  const [inline]

Definition at line 19 of file UberMC.h.

References stdheplist.

00019 {return stdheplist;}

void UberMC::ResetEvent (  ) 

Definition at line 38 of file UberMC.cxx.

References fmchitindex, Msg::kDebug, mcenergy, mcenergydep, mchitlist, mcpx, mcpy, mcpz, mctype, mcvx, mcvy, mcvz, MSG, and nhep.

Referenced by UberDST::Ana().

00039 {
00040   MSG("UberMC",Msg::kDebug)<<"In UberMC ResetEvent"<<endl;
00041   mchitlist->Clear();
00042 //  stdheplist->Clear();
00043   fmchitindex=0;
00044 
00045   mctype=0;
00046   mcpx=0.;
00047   mcpy=0.;
00048   mcpz=0.;
00049   mcenergy=0.;
00050   mcenergydep=0.;
00051   mcvx=0.;
00052   mcvy=0.;
00053   mcvz=0.;
00054   nhep=0;
00055 }//end ResetEvent()

void UberMC::SetStdHep ( const TClonesArray *  a  )  [inline]

Definition at line 20 of file UberMC.h.

References stdheplist.

Referenced by UberDST::Ana().

00020 {stdheplist = a;}


Member Data Documentation

TClonesArray * UberMC::fgmchitlist = 0 [static, private]

Definition at line 37 of file UberMC.h.

UInt_t UberMC::fmchitindex [private]

Definition at line 35 of file UberMC.h.

Referenced by AddNextHit(), AddNextHitValues(), and ResetEvent().

Definition at line 27 of file UberMC.h.

Referenced by UberDST::Ana(), and ResetEvent().

Definition at line 28 of file UberMC.h.

Referenced by UberDST::Ana(), and ResetEvent().

TClonesArray* UberMC::mchitlist [private]

keep track of current position in hit list

Definition at line 36 of file UberMC.h.

Referenced by GetHitList(), ResetEvent(), and ~UberMC().

Float_t UberMC::mcpx

Definition at line 24 of file UberMC.h.

Referenced by UberDST::Ana(), and ResetEvent().

Float_t UberMC::mcpy

Definition at line 25 of file UberMC.h.

Referenced by UberDST::Ana(), and ResetEvent().

Float_t UberMC::mcpz

Definition at line 26 of file UberMC.h.

Referenced by UberDST::Ana(), and ResetEvent().

Definition at line 23 of file UberMC.h.

Referenced by UberDST::Ana(), and ResetEvent().

Float_t UberMC::mcvx

Definition at line 29 of file UberMC.h.

Referenced by UberDST::Ana(), and ResetEvent().

Float_t UberMC::mcvy

Definition at line 30 of file UberMC.h.

Referenced by UberDST::Ana(), and ResetEvent().

Float_t UberMC::mcvz

Definition at line 31 of file UberMC.h.

Referenced by UberDST::Ana(), and ResetEvent().

Int_t UberMC::nhep

Definition at line 32 of file UberMC.h.

Referenced by UberDST::Ana(), and ResetEvent().

const TClonesArray* UberMC::stdheplist [private]

Definition at line 39 of file UberMC.h.

Referenced by GetStdHep(), and SetStdHep().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1