12 #ifndef CSCTriggerPrimitives_CSCLayerInfo_H 13 #define CSCTriggerPrimitives_CSCLayerInfo_H 75 std::vector<TYPE> temp_digis;
76 std::vector<PSimHit> temp_hits;
77 RecDigis.swap(temp_digis);
78 SimHits.swap(temp_hits);
83 std::ostream& operator<<(std::ostream& output, const CSCLayerInfo<TYPE>&
info) {
84 std::vector<TYPE> thisLayerDigis =
info.getRecDigis();
86 if (thisLayerDigis.size() > 0) {
87 output <<
"Layer: " << std::setw(1) <<
info.getId().layer();
88 for (
unsigned int i = 0;
i < thisLayerDigis.size();
i++) {
89 output <<
" RecDigi # " <<
i + 1 <<
": " << thisLayerDigis[
i] <<
'\t';
92 std::vector<PSimHit> thisLayerHits =
info.getSimHits();
93 if (!thisLayerHits.empty()) {
94 output <<
"Layer: " << std::setw(1) <<
info.getId().layer();
95 for (
unsigned int i = 0;
i < thisLayerHits.size();
i++) {
96 output <<
" SimHit # " <<
i + 1 <<
": " << thisLayerHits[
i] <<
'\t';
102 #endif // CSCTriggerPrimitives_CSCLayerInfo_H
std::vector< TYPE > RecDigis
std::vector< PSimHit > SimHits
void addComponent(const TYPE digi)
void addComponent(const PSimHit simHit)
std::vector< TYPE > getRecDigis() const
std::vector< PSimHit > getSimHits() const
void setId(const CSCDetId id)