Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:56

0001 #include "CondFormats/CSCObjects/interface/CSCTriggerElectronicsMapping.h"
0002 #include <iostream>
0003 #include <fstream>
0004 #include <sstream>
0005 
0006 CSCTriggerElectronicsMapping::CSCTriggerElectronicsMapping() {}
0007 
0008 CSCTriggerElectronicsMapping::~CSCTriggerElectronicsMapping() {}
0009 
0010 int CSCTriggerElectronicsMapping::hwId(int SPboardID, int FPGA, int cscid, int zero1, int zero2) const {
0011   int id = 0;
0012 
0013   id = ((cscid) | (FPGA << 4) | (SPboardID << 8));
0014 
0015   if (debugV())
0016     std::cout << myName() << ": hardware id for SP Board Id " << SPboardID << " FPGA " << FPGA << " cscid " << cscid
0017               << " = " << id << std::endl;
0018   return id;
0019 }