#include <SiPixelFedCablingMap.h>
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
|
Definition at line 22 of file SiPixelFedCablingMap.h.
Definition at line 34 of file SiPixelFedCablingMap.cc.
References gather_cfg::cout, SiPixelFedCablingTree::fedList(), sipixelobjects::PixelFEDLink::id(), sipixelobjects::PixelROC::idInLink(), combine::key, link(), sipixelobjects::PixelFEDLink::numberOfROCs(), sipixelobjects::PixelFEDLink::roc(), and theMap.
39 std::vector<const PixelFEDCabling *> fedList = cab->
fedList();
40 for (std::vector<const PixelFEDCabling *>::const_iterator ifed=fedList.begin();
41 ifed != fedList.end(); ifed++) {
42 unsigned int fed = (**ifed).id();
43 unsigned int numLink = (**ifed).numberOfLinks();
46 if (pLink==0)
continue;
47 unsigned int linkId = pLink->
id();
48 if (linkId != 0 && linkId!=
link)
49 std::cout <<
"PROBLEM WITH LINK NUMBER!!!!" << std::endl;
51 for (
unsigned int roc=1; roc <= numberROC; roc++) {
53 if (pROC==0)
continue;
55 std::cout <<
"PROBLEM WITH ROC NUMBER!!!!" << std::endl;
const PixelROC * roc(unsigned int id) const
return ROC identified by id. ROC ids are ranged [1,numberOfROCs]
unsigned int id() const
link id
unsigned int idInLink() const
id of this ROC in parent Link.
unsigned int numberOfROCs() const
number of ROCs in fed
std::string link(std::string &nm, std::string &ns)
virtual std::string version() const
map version
std::vector< const PixelFEDCabling * > fedList() const
SiPixelFedCablingMap::SiPixelFedCablingMap |
( |
const std::string & |
version = "" | ) |
|
|
inline |
virtual SiPixelFedCablingMap::~SiPixelFedCablingMap |
( |
| ) |
|
|
inlinevirtual |
std::vector< unsigned int > SiPixelFedCablingMap::fedIds |
( |
| ) |
const |
Definition at line 75 of file SiPixelFedCablingMap.cc.
References spr::find(), query::result, and theMap.
77 std::vector<unsigned int>
result;
78 for (Map::const_iterator im =
theMap.begin(); im !=
theMap.end(); im++) {
79 unsigned int fedId = im->first.fed;
80 if (
find(result.begin(),result.end(),fedId) == result.end()) result.push_back(fedId);
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void SiPixelFedCablingMap::initializeRocs |
( |
| ) |
|
template<class Archive >
void SiPixelFedCablingMap::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
private |
virtual std::string SiPixelFedCablingMap::version |
( |
| ) |
const |
|
inlinevirtual |
friend class boost::serialization::access |
|
friend |
template<typename CondSerializationT , typename Enabled >
Map SiPixelFedCablingMap::theMap |
|
private |
std::string SiPixelFedCablingMap::theVersion |
|
private |