TPSinglesEvent Class Reference

#include <TPSinglesEvent.h>

Inheritance diagram for TPSinglesEvent:
BlockEvent

List of all members.

Public Member Functions

 TPSinglesEvent ()
void LocalReset ()
TPChipEventChipGen (Char_t Crate, Char_t Varc, Char_t Vmm, Char_t Vadc, Char_t Vachip)
 ClassDef (TPSinglesEvent, 2)

Public Attributes

Int_t CrateRate [NCRATE]
Bool_t CratePulsed [NCRATE]
Int_t MFRate [NMF]

Detailed Description

Definition at line 24 of file TPSinglesEvent.h.


Constructor & Destructor Documentation

TPSinglesEvent::TPSinglesEvent (  ) 

Definition at line 40 of file TPSinglesEvent.cxx.

References RSMVer.

00040                                {
00041   RSMVer << "TPSinglesEvent::TPSinglesEvent()" << endl;
00042   ChipEvents = new TClonesArray("TPChipEvent",2304);
00043   this->Reset();
00044 }


Member Function Documentation

TPChipEvent * TPSinglesEvent::ChipGen ( Char_t  Crate,
Char_t  Varc,
Char_t  Vmm,
Char_t  Vadc,
Char_t  Vachip 
)

Definition at line 53 of file TPSinglesEvent.cxx.

References BlockEvent::ChipEvents, BlockEvent::IChip(), ChipEvent::PackLoc(), and RSMVer.

Referenced by RateSummary::Ana().

00057                                                     {
00058   RSMVer << "TPSinglesEvent::ChipGen()" << endl;
00059   int ichip = this->IChip(Crate,Varc,Vmm,Vadc,Vachip);
00060 
00061   TPChipEvent* chip = 0;
00062   if((chip=dynamic_cast<TPChipEvent*>(ChipEvents->At(ichip))))
00063     return chip;
00064 
00065   chip = new((*ChipEvents)[ichip]) TPChipEvent();
00066   chip->PackLoc(Crate,Varc,Vmm,Vadc,Vachip);
00067   return chip;
00068 }

TPSinglesEvent::ClassDef ( TPSinglesEvent  ,
 
)
void TPSinglesEvent::LocalReset (  )  [virtual]

Reimplemented from BlockEvent.

Definition at line 46 of file TPSinglesEvent.cxx.

References CratePulsed, CrateRate, MFRate, NCRATE, NMF, and RSMVer.

00046                                 {
00047   RSMVer << "TPSinglesEvent::LocalReset()" << endl;
00048   for(int i=0; i<NCRATE; i++) CrateRate[i]=0;
00049   for(int i=0; i<NCRATE; i++) CratePulsed[i]=false;
00050   for(int i=0; i<NMF; i++) MFRate[i]=0;
00051 }


Member Data Documentation

Definition at line 36 of file TPSinglesEvent.h.

Referenced by RateSummary::Ana(), LocalReset(), and tp_plot().

Definition at line 35 of file TPSinglesEvent.h.

Referenced by RateSummary::Ana(), LocalReset(), and tp_plot().

Definition at line 37 of file TPSinglesEvent.h.

Referenced by RateSummary::Ana(), and LocalReset().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1