Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:19:41

0001 //-------------------------------------------------
0002 //
0003 /**   \Class: DTSectCollPhSegm.cc
0004  *
0005  *
0006  *    Muon Sector Collector Trigger Phi candidate 
0007  *
0008  *    
0009  *   Authors: 
0010  *   S. Marcellini, D. Bonacorsi
0011  *   Modifications: 
0012  *   11/11/06 C. Battilana: New Syc Functionalities implemented 
0013  */
0014 //
0015 //--------------------------------------------------
0016 
0017 //-----------------------
0018 // This Class's Header --
0019 //-----------------------
0020 #include "L1Trigger/DTSectorCollector/interface/DTSectCollPhSegm.h"
0021 
0022 //-------------------------------
0023 // Collaborating Class Headers --
0024 //-------------------------------
0025 
0026 //---------------
0027 // C++ Headers --
0028 //---------------
0029 #include <iostream>
0030 
0031 //----------------
0032 // Constructors --
0033 //----------------
0034 DTSectCollPhSegm::DTSectCollPhSegm(DTSectCollId scId, int step) : m_sectcollid(scId), m_step(step) { clear(); }
0035 
0036 DTSectCollPhSegm::DTSectCollPhSegm(DTSectCollId scId, int step, const DTChambPhSegm* tsPhiTrig, int isFirst)
0037     : m_sectcollid(scId), m_step(step), m_isFirst(isFirst), m_tsphitrig(tsPhiTrig) {}
0038 
0039 DTSectCollPhSegm::DTSectCollPhSegm(const DTSectCollPhSegm& seg)
0040     : m_sectcollid(seg.m_sectcollid), m_step(seg.m_step), m_isFirst(seg.m_isFirst), m_tsphitrig(seg.m_tsphitrig) {}
0041 
0042 //--------------
0043 // Destructor --
0044 //--------------
0045 DTSectCollPhSegm::~DTSectCollPhSegm() {}
0046 
0047 //--------------
0048 // Operations --
0049 //--------------
0050 
0051 DTSectCollPhSegm& DTSectCollPhSegm::operator=(const DTSectCollPhSegm& seg) {
0052   if (this != &seg) {
0053     m_sectcollid = seg.m_sectcollid;
0054     m_step = seg.m_step;
0055     m_tsphitrig = seg.m_tsphitrig;
0056     m_isFirst = seg.m_isFirst;
0057   }
0058   return *this;
0059 }
0060 
0061 void DTSectCollPhSegm::clear() {
0062   m_tsphitrig = nullptr;
0063   m_isFirst = 0;
0064 }
0065 
0066 void DTSectCollPhSegm::print() const {
0067   std::cout << "TP at step " << step() << ", in wheel " << wheel();
0068   std::cout << ", station " << station() << ", sector " << sector() << std::endl;
0069   std::cout << "TSS " << (m_tsphitrig->tracoTrig()->tracoNumber() - 1) / DTConfig::NTCTSS + 1;
0070   std::cout << ", TRACO " << tracoNumber() << " : " << std::endl;
0071   std::cout << "  -->  code " << oldCode() << ", K " << K();
0072   std::cout << ", X " << X() << ", position mask " << posMask() << std::endl;
0073   std::cout << "inner bti equation=" << m_tsphitrig->tracoTrig()->eqIn()
0074             << "    outer bti equation=" << m_tsphitrig->tracoTrig()->eqOut() << std::endl;
0075   std::cout << "        psi " << psi() << ", psiR " << psiR();
0076   std::cout << ", DeltaPsiR " << DeltaPsiR() << std::endl;
0077 }