Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

TMBLumV.hpp

Go to the documentation of this file.
00001 #ifndef TMBLumV_H
00002 #define TMBLumV_H
00003 
00005 //                                                                      //
00006 // TMBTree Lum Vertex class                                             //
00007 //   Storage format for Luminosity Montior  Vtx Board in TMB_Trees.     //
00008 //   Sahal Yacoob 11/13/03                                              // 
00009 //   Based on Other TMBTree classes                                     //
00010 //   The Charge, TDC count, and Slew are stored.                        //
00011 //   The index is related to the physical wedge by the tabel            //
00012 //   to be found later in this file                                     //
00013 //                                                                      //  
00014 //                                                                      //
00016 
00017 #include <iostream>
00018 #ifndef ROOT_TObject
00019 #include "TObject.h"
00020 #endif
00021 #include "TArrayI.h"
00022 #include "TString.h"
00023 
00024 
00025 
00026 class TMBLumV : public TObject {
00027   
00028 public:
00029 
00030   // Default Constructor
00031   TMBLumV();
00032 
00033   // Constructor
00034   TMBLumV(Int_t t_l2n,Int_t t_h3n,Int_t t_h2n,Int_t t_h1n,Int_t sumn,Int_t nhitn,Int_t t_l1n,Int_t t_l2s,Int_t t_h3s,Int_t t_h2s,Int_t t_h1s,Int_t sums,Int_t nhits,Int_t t_l1s,Int_t mi_flag,Int_t tdifn,Int_t tdifs,Int_t averagen,Int_t averages,Int_t zvtx,Int_t tfw_andor);
00035   
00036   
00037   // Copy Constructor
00038   TMBLumV (const TMBLumV& orig):TObject(orig) {
00039     *this = orig;
00040   }
00041 
00042 
00043   // Operators
00044   TMBLumV &operator=(const TMBLumV &orig) {
00045     if(this != &orig) {
00046       _t_l2n = orig._t_l2n;
00047       _t_h3n = orig._t_h3n;
00048       _t_h2n= orig._t_h2n;
00049       _t_h1n= orig._t_h1n;
00050       _sumn= orig._sumn;
00051       _nhitn= orig._nhitn;
00052       _t_l1n= orig._t_l1n;
00053       _t_l2s= orig._t_l2s;
00054       _t_h3s= orig._t_h3s;
00055       _t_h2s= orig._t_h2s;
00056       _t_h1s= orig._t_h1s;
00057       _sums= orig._sums;
00058       _nhits= orig._nhits;
00059       _t_l1s= orig._t_l1s;
00060       _mi_flag= orig._mi_flag;
00061       _tdifn= orig._tdifn;
00062       _tdifs= orig._tdifs;
00063       _averagen= orig._averagen;
00064       _averages= orig._averages;
00065       _zvtx= orig._zvtx;
00066       _tfw_andor= orig._tfw_andor;
00067     }
00068     return *this;
00069   }  
00070   
00071 
00072  // 2nd smallest corrected time for north lm counters
00073   inline  Int_t t_l2n() const {return _t_l2n;};
00074 
00075   // 3rd largest corrected time for north lm counters
00076   inline Int_t  t_h3n() const {return _t_h3n;};
00077 
00078   // 2nd largest corrected time for north lm counters
00079   inline Int_t  t_h2n() const { return _t_h2n;};
00080 
00081   // largest corrected time for south lm counter
00082   inline Int_t  t_h1n() const { return _t_h1n;};
00083 
00084   // sum of corrected time for north lm counters
00085   inline Int_t  sumn() const {return _sumn;};
00086 
00087   // number of valid hits in the north lm counters
00088    inline Int_t  nhitn() const{return _nhitn;};
00089 
00090   // smallest corrected time for north lm counter
00091   inline Int_t  t_l1n() const{return _t_l1n ;};
00092 
00093  // 2nd smallest corrected time for south lm counters
00094   inline Int_t  t_l2s() const{return _t_l2s ;};
00095 
00096  // 3rd largest corrected time for north lm counters
00097   inline Int_t  t_h3s() const{return _t_h3s ;};
00098 
00099  // 2nd largest corrected time for north lm counters
00100   inline Int_t  t_h2s() const{return _t_h2s ;};
00101  
00102  //  largest corrected time for south lm counters
00103   inline Int_t  t_h1s() const{return _t_h1s ;};
00104 
00105  // sum of corrected time for north lm counters
00106   inline Int_t  sums() const{return _sums ;};
00107 
00108  // number of valid hits in the north lm counters
00109   inline Int_t  nhits() const{return _nhits;};
00110  
00111  // smallest corrected time for north lm counter
00112   inline Int_t  t_l1s() const{return _t_l1s ;};
00113  
00114  // multiple inline Int_t eraction flag
00115   inline Int_t  mi_flag() const{return _mi_flag ;};
00116 
00117  // spread in arrival times for north lm counters 
00118   inline Int_t  tdifn() const{return _tdifn ;};
00119  
00120  // spread in arrival times for south lm counters
00121   inline Int_t  tdifs() const{return _tdifs ;};
00122 
00123   // average value of valid corrected times for north lm counters
00124   inline Int_t  averagen() const{return _averagen ;};
00125 
00126   // average value of valid corrected times for south lm counters
00127   inline Int_t  averages() const{return _averages ;};
00128 
00129   //  Int_teraction vertex position measured by lm counters
00130   inline Int_t  zvtx() const{return _zvtx ;};
00131 
00132   // trigger framework input bits
00133   inline Int_t  tfw_andor() const{return _tfw_andor ;};
00134 
00135 
00136   // Destructor
00137   ~TMBLumV() {;}
00138 
00139 private:
00140 
00141   Int_t _t_l2n;
00142   Int_t _t_h3n;
00143   Int_t _t_h2n;
00144   Int_t _t_h1n;
00145   Int_t _sumn;
00146   Int_t _nhitn;
00147   Int_t _t_l1n;
00148   Int_t _t_l2s;
00149   Int_t _t_h3s;
00150   Int_t _t_h2s;
00151   Int_t _t_h1s;
00152   Int_t _sums;
00153   Int_t _nhits;
00154   Int_t _t_l1s;
00155   Int_t _mi_flag;
00156   Int_t _tdifn;
00157   Int_t _tdifs;
00158   Int_t _averagen;
00159   Int_t _averages;
00160   Int_t _zvtx;
00161   Int_t _tfw_andor;
00162 
00163   ClassDef(TMBLumV, 1)   //TMBTree Lum class
00164 };
00165 
00166 #endif

Generated on Tue Mar 28 10:13:05 2006 for CAF by doxygen 1.3.4