00001 #ifndef L1TRACK_H_ 00002 #define L1TRACK_H_ 00003 00005 // 00006 // Purpose: This is the header file that defines a class to help fill the 00007 // tuple correctly with L1 Tracks. 00008 // 00009 // Author: Joshua M. Dyer 00010 // Date: 22-Apr-2003 00011 // 00013 00014 #include "TObject.h" 00015 #include <cmath> 00016 00019 class TMBL1Track : public TObject 00020 { 00021 public: 00022 TMBL1Track(); //constructor 00023 TMBL1Track(const TMBL1Track&); //copy constructor 00024 00025 ~TMBL1Track() {;} //destructor 00026 00028 00029 void Sector (int x) {sector = x;} 00030 void PtBin (int x) {ptbin = x;} 00031 void Charge (int x) {charge = x;} 00032 void CPSMatch (int x) {cpsmatch = x;} 00033 void Occup (int x) {occup = x;} 00034 void Iso (int x) {iso = x;} 00035 void NCPS (int x) {ncps = x;} 00037 00039 00040 int Sector() const {return sector;} 00041 int PtBin() const {return ptbin;} 00042 int Charge() const {return charge;} 00043 int CPSMatch() const {return cpsmatch;} 00044 int Occup() const {return occup;} 00045 int Iso() const {return iso;} 00046 int NCPS() const {return ncps;} 00047 float Phi() const {return (0.5+sector)* M_PI/40.;} 00048 float LowerPt() const { 00049 if (ptbin == 0) return 1.5; 00050 if (ptbin == 1) return 3.0; 00051 if (ptbin == 2) return 5.0; 00052 if (ptbin == 3) return 10.0; 00053 return -10.; 00054 } 00055 float UpperPt() const { 00056 if (ptbin == 0) return 3.0; 00057 if (ptbin == 1) return 5.0; 00058 if (ptbin == 2) return 10.0; 00059 if (ptbin == 3) return 999.0; 00060 return -10.; 00061 } 00062 00064 private: 00065 int sector; 00066 int ptbin; 00067 int charge; 00068 int cpsmatch; 00069 int occup; 00070 int iso; 00071 int ncps; 00072 00073 ClassDef(TMBL1Track,2); 00074 00075 }; //end of class 00076 #endif
1.3.4