00001 #ifndef L2MUON_H_ 00002 #define L2MUON_H_ 00003 00005 // 00006 // Purpose: This is the header file that defines a class to help fill the 00007 // tuple correctly with L2 preprocessor muons. 00008 // 00009 // Author: Yann Coadou 00010 // Date: 19-Apr-2004 00011 // 00013 00014 00015 #include "tmb_tree/TMBL2Base.hpp" 00016 00021 class TMBL2Muon : public TMBL2Base { 00022 public: 00023 TMBL2Muon(); //constructor 00024 TMBL2Muon(const TMBL2Muon&); //copy constructor 00025 00026 ~TMBL2Muon() {;} //destructor 00027 00028 // setters 00029 void ToroidPtBin (int x) {toroidptbin = x;} 00030 void ToroidPtNegative (bool x) {toroidptnegative = x;} 00031 void L1PtThres (int x) {l1ptthres = x;} 00032 void L1PtSignUnknown (bool x) {l1ptsignunknown = x;} 00033 void L1PtNegative (bool x) {l1ptnegative = x;} 00034 void QMask (int x) {qmask = x;} 00035 void ScTimeA (int x) {sctimea = x;} 00036 void ScTimeB (int x) {sctimeb = x;} 00037 void ScTimeC (int x) {sctimec = x;} 00038 void IsCentral (bool x) {iscentral = x;} 00039 00040 // accessors 00041 int ToroidPtBin() const {return toroidptbin;} //(0.25 GeV bins) 00042 float ToroidPt() const {return toroidptbin/4.;} 00043 bool ToroidPtNegative() const {return toroidptnegative;} 00044 int Charge() const {return (toroidptnegative == 0 ? 1 : -1);} 00045 int L1PtThres() const {return l1ptthres;} 00046 bool L1PtSignUnknown() const {return l1ptsignunknown;} 00047 bool L1PtNegative() const {return l1ptnegative;} 00048 int L1Charge() const {return (l1ptnegative == 0 ? 1 : -1);} 00049 int QMask() const {return qmask;} 00050 int ScTimeA() const {return sctimea;} 00051 int ScTimeB() const {return sctimeb;} 00052 int ScTimeC() const {return sctimec;} 00053 bool IsCentral () const {return iscentral;} 00054 bool IsForward () const {return !iscentral;} 00055 00056 private: 00057 int toroidptbin; 00058 bool toroidptnegative; 00059 int l1ptthres; 00060 bool l1ptsignunknown; 00061 bool l1ptnegative; 00062 int qmask; 00063 int sctimea; 00064 int sctimeb; 00065 int sctimec; 00066 bool iscentral; 00067 00068 ClassDef(TMBL2Muon,1) 00069 00070 }; //end of class TMBL2Muon 00071 #endif // L2MUON_H_
1.3.4