CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/L1Trigger/DTTriggerServerPhi/src/DTChambPhSegm.cc

Go to the documentation of this file.
00001 //-------------------------------------------------
00002 //
00003 //   Class: DTChambPhSegm.cpp
00004 //
00005 //   Description: Muon Chamber Trigger Phi candidate 
00006 //
00007 //
00008 //   Author List:
00009 //   C. Grandi
00010 //   Modifications: 
00011 //
00012 //
00013 //--------------------------------------------------
00014  
00015 //-----------------------
00016 // This Class's Header --
00017 //-----------------------
00018 #include "L1Trigger/DTBti/interface/DTBtiTrigData.h"
00019 #include "L1Trigger/DTTraco/interface/DTTracoTrig.h"
00020 #include "L1Trigger/DTTriggerServerPhi/interface/DTChambPhSegm.h"
00021 #include "L1TriggerConfig/DTTPGConfig/interface/DTConfigTSPhi.h"
00022 
00023 //-------------------------------
00024 // Collaborating Class Headers --
00025 //-------------------------------
00026 
00027 //---------------
00028 // C++ Headers --
00029 //---------------
00030 #include <iostream>
00031 
00032 //----------------
00033 // Constructors --
00034 //----------------
00035 DTChambPhSegm::DTChambPhSegm(DTChamberId chamberid, int step) : 
00036                                          m_chamberid(chamberid), m_step(step) {
00037   clear();
00038 }
00039 
00040 DTChambPhSegm::DTChambPhSegm(DTChamberId chamberid, int step, 
00041                                      const DTTracoTrigData* tracotrig, 
00042                                      int isfirst) :
00043                                      m_chamberid(chamberid), m_step(step),
00044                                      m_isFirst(isfirst),
00045                                      m_tracotrig(tracotrig)  {
00046 }
00047   
00048 DTChambPhSegm::DTChambPhSegm(const DTChambPhSegm& seg) : 
00049   m_chamberid(seg.m_chamberid), m_step(seg.m_step), m_isFirst(seg.m_isFirst), 
00050   m_tracotrig(seg.m_tracotrig) {
00051 }
00052 
00053 //--------------
00054 // Destructor --
00055 //--------------
00056 DTChambPhSegm::~DTChambPhSegm() {
00057 }
00058 
00059 //--------------
00060 // Operations --
00061 //--------------
00062 
00063 DTChambPhSegm&
00064 DTChambPhSegm::operator=(const DTChambPhSegm& seg){
00065   if(this != &seg){
00066     m_chamberid = seg.m_chamberid;
00067     m_step = seg.m_step;
00068     m_tracotrig = seg.m_tracotrig ;
00069     m_isFirst = seg.m_isFirst ;
00070   }
00071   return *this;
00072 }
00073 
00074 void 
00075 DTChambPhSegm::clear() { 
00076   m_tracotrig = 0;
00077   m_isFirst = 0;
00078 }
00079 
00080 void
00081 DTChambPhSegm::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 " << (tracoTrig()->tracoNumber()-1) / DTConfigTSPhi::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=" << tracoTrig()->eqIn() <<
00089           "    outer bti equation=" << 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