CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/CondFormats/CSCObjects/src/CSCTriggerElectronicsMapping.cc

Go to the documentation of this file.
00001 #include "CondFormats/CSCObjects/interface/CSCTriggerElectronicsMapping.h"
00002 #include <iostream>
00003 #include <fstream>
00004 #include <sstream>
00005 
00006 CSCTriggerElectronicsMapping::CSCTriggerElectronicsMapping(){}
00007 
00008 CSCTriggerElectronicsMapping::~CSCTriggerElectronicsMapping(){}
00009 
00010 int CSCTriggerElectronicsMapping::hwId( int SPboardID, int FPGA, int cscid, int zero1, int zero2 ) const {
00011  
00012   int id = 0;
00013     
00014   id = ((cscid) | (FPGA << 4) | (SPboardID << 8));
00015   
00016   if ( debugV() ) std::cout << myName() << ": hardware id for SP Board Id " << SPboardID 
00017                             << " FPGA " << FPGA << " cscid " << cscid  << " = " << id << std::endl;
00018   return id;
00019 }