BiTree Class Reference

#include <BiTree.h>

List of all members.

Public Member Functions

 BiTree ()
 ~BiTree ()
void BiReset ()
int biUnixTime ()

Public Attributes

int fileNumber
int armTimeSeconds
double armTimeFraction
int eventTimeSeconds
double eventTimeFraction
int eventCount
int runNumber
int baseTimeSec
int baseTimeUsec

Detailed Description

Definition at line 9 of file BiTree.h.


Constructor & Destructor Documentation

BiTree::BiTree (  ) 

Definition at line 14 of file BiTree.cxx.

References BiReset().

00015 {
00016   this->BiReset();
00017 }

BiTree::~BiTree (  ) 

Definition at line 19 of file BiTree.cxx.

00020 {}


Member Function Documentation

void BiTree::BiReset (  ) 

Definition at line 22 of file BiTree.cxx.

References armTimeFraction, armTimeSeconds, baseTimeSec, baseTimeUsec, eventCount, eventTimeFraction, eventTimeSeconds, fileNumber, and runNumber.

Referenced by BiTree().

00023 {
00024   fileNumber = -1;
00025   eventCount = -1;
00026   runNumber = -1;
00027   armTimeSeconds = -999;
00028   armTimeFraction = -999;
00029   eventTimeSeconds = -999;
00030   eventTimeFraction = -999;
00031   baseTimeSec = -999;
00032   baseTimeUsec = -999;
00033 }

int BiTree::biUnixTime (  ) 

Definition at line 35 of file BiTree.cxx.

References armTimeFraction, armTimeSeconds, baseTimeSec, baseTimeUsec, MuELoss::e, and eventTimeSeconds.

00036 {
00037   int rawTime = this->armTimeSeconds+this->eventTimeSeconds+this->baseTimeSec;
00038   int extraTime = 0;
00039 
00040   if ( (this->armTimeFraction + this->baseTimeUsec*1e-6) >= 1){
00041     extraTime = 1;
00042   }
00043 
00044   return rawTime + extraTime;
00045 }


Member Data Documentation

Definition at line 19 of file BiTree.h.

Referenced by BiReset(), and biUnixTime().

Definition at line 18 of file BiTree.h.

Referenced by BiReset(), and biUnixTime().

Definition at line 29 of file BiTree.h.

Referenced by BiReset(), and biUnixTime().

Definition at line 30 of file BiTree.h.

Referenced by BiReset(), and biUnixTime().

Definition at line 24 of file BiTree.h.

Referenced by BiReset().

Definition at line 22 of file BiTree.h.

Referenced by BiReset().

Definition at line 21 of file BiTree.h.

Referenced by BiReset(), and biUnixTime().

Definition at line 17 of file BiTree.h.

Referenced by BiReset().

Definition at line 27 of file BiTree.h.

Referenced by BiReset().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1