SimPmtM16UTTimed Class Reference

#include <SimPmtM16UTTimed.h>

Inheritance diagram for SimPmtM16UTTimed:
SimPmtUTM16 SimPmt

List of all members.

Public Member Functions

 SimPmtM16UTTimed (PlexPixelSpotId tube, VldContext context, TRandom *random=NULL)
virtual ~SimPmtM16UTTimed ()
virtual void Config (Registry &config)

Protected Member Functions

virtual Int_t TimeToBucket (Double_t time)
virtual Double_t BucketToStartTime (Int_t bucket)
virtual Double_t BucketToStopTime (Int_t bucket)
virtual Float_t GetBucketDuration (Int_t bucket=0)

Static Private Attributes

static Double_t fsVaBucketLength = 100.0*Munits::ns

Detailed Description

Definition at line 14 of file SimPmtM16UTTimed.h.


Constructor & Destructor Documentation

SimPmtM16UTTimed::SimPmtM16UTTimed ( PlexPixelSpotId  tube,
VldContext  context,
TRandom *  random = NULL 
)

Definition at line 19 of file SimPmtM16UTTimed.cxx.

References Msg::kDebug, and MSG.

00021                                            :
00022   SimPmtUTM16(tube,context,random)
00023 {
00024   MSG("DetSim",Msg::kDebug) << "SimPmtM16UTTimed Constructor, Tube :" << fTube.AsString() << endl;
00025 }

virtual SimPmtM16UTTimed::~SimPmtM16UTTimed (  )  [inline, virtual]

Definition at line 21 of file SimPmtM16UTTimed.h.

00021 {};


Member Function Documentation

Double_t SimPmtM16UTTimed::BucketToStartTime ( Int_t  bucket  )  [protected, virtual]

Reimplemented from SimPmt.

Definition at line 39 of file SimPmtM16UTTimed.cxx.

References fsVaBucketLength.

00040 {
00041   return ((Double_t)bucket)*fsVaBucketLength;
00042 }

Double_t SimPmtM16UTTimed::BucketToStopTime ( Int_t  bucket  )  [protected, virtual]

Reimplemented from SimPmt.

Definition at line 44 of file SimPmtM16UTTimed.cxx.

References fsVaBucketLength.

00045 {
00046   return ((Double_t)(bucket+1))*fsVaBucketLength; 
00047 }

void SimPmtM16UTTimed::Config ( Registry config  )  [virtual]

Reimplemented from SimPmt.

Definition at line 27 of file SimPmtM16UTTimed.cxx.

References fsVaBucketLength, and Registry::Get().

00028 {
00029   double dtmp;
00030   if(config.Get("vaBucketLength",dtmp)) fsVaBucketLength = dtmp; 
00031   SimPmtUTM16::Config(config); // call parent configuration.
00032 }

Float_t SimPmtM16UTTimed::GetBucketDuration ( Int_t  bucket = 0  )  [protected, virtual]

Reimplemented from SimPmt.

Definition at line 49 of file SimPmtM16UTTimed.cxx.

References fsVaBucketLength.

00050 {
00051   return fsVaBucketLength;
00052 }

Int_t SimPmtM16UTTimed::TimeToBucket ( Double_t  time  )  [protected, virtual]

Reimplemented from SimPmt.

Definition at line 34 of file SimPmtM16UTTimed.cxx.

References fsVaBucketLength.

00035 {
00036   return (Int_t)(time/fsVaBucketLength);
00037 }


Member Data Documentation

Double_t SimPmtM16UTTimed::fsVaBucketLength = 100.0*Munits::ns [static, private]

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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1