CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/L1Trigger/DTSectorCollector/src/DTSectCollPhSegm.cc

Go to the documentation of this file.
00001 //-------------------------------------------------
00002 //
00014 //
00015 //--------------------------------------------------
00016 
00017 
00018 //-----------------------
00019 // This Class's Header --
00020 //-----------------------
00021 #include "L1Trigger/DTSectorCollector/interface/DTSectCollPhSegm.h"
00022 
00023 //-------------------------------
00024 // Collaborating Class Headers --
00025 //-------------------------------
00026 
00027 //---------------
00028 // C++ Headers --
00029 //---------------
00030 #include <iostream>
00031 
00032 //----------------
00033 // Constructors --
00034 //----------------
00035 DTSectCollPhSegm::DTSectCollPhSegm(DTSectCollId scId, int step) : 
00036                                          m_sectcollid(scId), m_step(step) {
00037   clear();
00038 }
00039 
00040 DTSectCollPhSegm::DTSectCollPhSegm(DTSectCollId scId, int step, 
00041                                      const DTChambPhSegm* tsPhiTrig, 
00042                                      int isFirst) :
00043                                      m_sectcollid(scId), m_step(step),
00044                                      m_isFirst(isFirst),
00045                                      m_tsphitrig(tsPhiTrig)  {
00046 }
00047   
00048 DTSectCollPhSegm::DTSectCollPhSegm(const DTSectCollPhSegm& seg) : 
00049   m_sectcollid(seg.m_sectcollid), m_step(seg.m_step), m_isFirst(seg.m_isFirst), 
00050   m_tsphitrig(seg.m_tsphitrig) {
00051 }
00052 
00053 //--------------
00054 // Destructor --
00055 //--------------
00056 DTSectCollPhSegm::~DTSectCollPhSegm() {
00057 }
00058 
00059 //--------------
00060 // Operations --
00061 //--------------
00062 
00063 DTSectCollPhSegm&
00064 DTSectCollPhSegm::operator=(const DTSectCollPhSegm& seg){
00065   if(this != &seg){
00066     m_sectcollid = seg.m_sectcollid;
00067     m_step = seg.m_step;
00068     m_tsphitrig = seg.m_tsphitrig ;
00069     m_isFirst = seg.m_isFirst ;
00070   }
00071   return *this;
00072 }
00073 
00074 void 
00075 DTSectCollPhSegm::clear() { 
00076   m_tsphitrig = 0;
00077   m_isFirst = 0;
00078 }
00079 
00080 void
00081 DTSectCollPhSegm::print() const {
00082   std::cout << "TP at step " << step() << ", in wheel " << wheel();
00083   std::cout << ", station " << station() << ", sector " << sector() << std::endl;
00084   std::cout << "TSS " << (m_tsphitrig->tracoTrig()->tracoNumber()-1) / DTConfig::NTCTSS + 1;
00085   std::cout << ", TRACO " << tracoNumber() << " : " << std::endl;
00086   std::cout << "  -->  code " << oldCode() << ", K " << K();
00087   std::cout << ", X " << X() << ", position mask " << posMask() << std::endl;
00088   std::cout << "inner bti equation=" << m_tsphitrig->tracoTrig()->eqIn() <<
00089           "    outer bti equation=" << m_tsphitrig->tracoTrig()->eqOut() << std::endl;
00090   std::cout << "        psi " << psi() << ", psiR " << psiR();
00091   std::cout << ", DeltaPsiR " << DeltaPsiR() << std::endl;
00092 }
00093 
00094 
00095 
00096 
00097 
00098