Structure to store detector addresses of any granularity: from whole detector to the single HV element. More...
#include <CSCDQM_Detector.h>
Public Member Functions | |
const std::string | name () const |
Get the full name of the address prefixed with CSC_. It is being used by summaryReportContent variables. | |
const Address * | operator= (const Address &a) |
const bool | operator== (const Address &a) const |
Public Attributes | |
unsigned int | cfeb |
unsigned int | chamber |
unsigned int | hv |
unsigned int | layer |
AddressMask | mask |
unsigned int | ring |
unsigned int | side |
unsigned int | station |
Friends | |
std::ostream & | operator<< (std::ostream &out, const Address &adr) |
Structure to store detector addresses of any granularity: from whole detector to the single HV element.
Definition at line 82 of file CSCDQM_Detector.h.
const std::string cscdqm::Address::name | ( | ) | const [inline] |
Get the full name of the address prefixed with CSC_. It is being used by summaryReportContent variables.
Definition at line 132 of file CSCDQM_Detector.h.
References cfeb, cscdqm::AddressMask::cfeb, chamber, cscdqm::AddressMask::chamber, cscdqm::AddressMask::hv, hv, cscdqm::AddressMask::layer, layer, mask, cscdqm::AddressMask::ring, ring, side, cscdqm::AddressMask::side, station, and cscdqm::AddressMask::station.
{ std::ostringstream oss; oss << "CSC"; if (mask.side) { oss << "_Side" << (side == 1 ? "Plus" : "Minus"); if (mask.station) { oss << "_Station" << std::setfill('0') << std::setw(2) << station; if (mask.ring) { oss << "_Ring" << std::setfill('0') << std::setw(2) << ring; if (mask.chamber) { oss << "_Chamber" << std::setfill('0') << std::setw(2) << chamber; if (mask.layer) { oss << "_Layer" << std::setfill('0') << std::setw(2) << layer; if (mask.cfeb) { oss << "_CFEB" << std::setfill('0') << std::setw(2) << cfeb; if (mask.hv) { oss << "_HV" << std::setfill('0') << std::setw(2) << hv; } } } } } } } return oss.str(); }
Definition at line 105 of file CSCDQM_Detector.h.
References cfeb, cscdqm::AddressMask::cfeb, chamber, cscdqm::AddressMask::chamber, cscdqm::AddressMask::hv, hv, cscdqm::AddressMask::layer, layer, mask, cscdqm::AddressMask::ring, ring, side, cscdqm::AddressMask::side, station, and cscdqm::AddressMask::station.
{ mask.side = a.mask.side; side = a.side; mask.station = a.mask.station; station = a.station; mask.ring = a.mask.ring; ring = a.ring; mask.chamber = a.mask.chamber; chamber = a.chamber; mask.layer = a.mask.layer; layer = a.layer; mask.cfeb = a.mask.cfeb; cfeb = a.cfeb; mask.hv = a.mask.hv; hv = a.hv; return this; };
const bool cscdqm::Address::operator== | ( | const Address & | a | ) | const [inline] |
Definition at line 94 of file CSCDQM_Detector.h.
References cfeb, cscdqm::AddressMask::cfeb, chamber, cscdqm::AddressMask::chamber, cscdqm::AddressMask::hv, hv, cscdqm::AddressMask::layer, layer, mask, cscdqm::AddressMask::ring, ring, side, cscdqm::AddressMask::side, station, and cscdqm::AddressMask::station.
{ if (mask.side == a.mask.side && mask.side == true && side != a.side) return false; if (mask.station == a.mask.station && mask.station == true && station != a.station) return false; if (mask.ring == a.mask.ring && mask.ring == true && ring != a.ring) return false; if (mask.chamber == a.mask.chamber && mask.chamber == true && chamber != a.chamber) return false; if (mask.layer == a.mask.layer && mask.layer == true && layer != a.layer) return false; if (mask.cfeb == a.mask.cfeb && mask.cfeb == true && cfeb != a.cfeb) return false; if (mask.hv == a.mask.hv && mask.hv == true && hv != a.hv) return false; return true; };
std::ostream& operator<< | ( | std::ostream & | out, |
const Address & | adr | ||
) | [friend] |
Definition at line 123 of file CSCDQM_Detector.h.
unsigned int cscdqm::Address::cfeb |
Definition at line 89 of file CSCDQM_Detector.h.
Referenced by cscdqm::Detector::AddressFromString(), cscdqm::Detector::Detector(), cscdqm::Summary::GetEfficiencyHW(), cscdqm::Summary::GetReportingArea(), cscdqm::Summary::GetValue(), name(), operator=(), operator==(), cscdqm::Detector::PrintAddress(), cscdqm::Summary::Reset(), cscdqm::Summary::SetValue(), and cscdqm::Summary::Write().
unsigned int cscdqm::Address::chamber |
Definition at line 87 of file CSCDQM_Detector.h.
Referenced by cscdqm::Detector::AddressFromString(), cscdqm::Summary::ChamberAddressToCoords(), cscdqm::Summary::ChamberCoordsToAddress(), cscdqm::Detector::Detector(), cscdqm::Summary::GetEfficiencyHW(), cscdqm::Summary::GetReportingArea(), cscdqm::Summary::GetValue(), cscdqm::Detector::GlobalChamberIndex(), cscdqm::Summary::isChamberStandby(), name(), operator=(), operator==(), cscdqm::Detector::PrintAddress(), cscdqm::Summary::Reset(), cscdqm::Summary::SetValue(), cscdqm::Summary::Write(), and cscdqm::Summary::WriteChamberState().
unsigned int cscdqm::Address::hv |
Definition at line 90 of file CSCDQM_Detector.h.
Referenced by cscdqm::Detector::AddressFromString(), cscdqm::Detector::Detector(), cscdqm::Summary::GetEfficiencyHW(), cscdqm::Summary::GetReportingArea(), cscdqm::Summary::GetValue(), name(), operator=(), operator==(), cscdqm::Detector::PrintAddress(), cscdqm::Summary::Reset(), cscdqm::Summary::SetValue(), and cscdqm::Summary::Write().
unsigned int cscdqm::Address::layer |
Definition at line 88 of file CSCDQM_Detector.h.
Referenced by cscdqm::Detector::AddressFromString(), cscdqm::Summary::GetEfficiencyHW(), cscdqm::Summary::GetValue(), name(), operator=(), operator==(), cscdqm::Detector::PrintAddress(), and cscdqm::Summary::SetValue().
Definition at line 92 of file CSCDQM_Detector.h.
Referenced by cscdqm::Detector::AddressFromString(), cscdqm::Summary::ChamberAddressToCoords(), cscdqm::Summary::ChamberCoordsToAddress(), cscdqm::Detector::Detector(), cscdqm::Summary::GetEfficiencyArea(), cscdqm::Summary::GetEfficiencyHW(), cscdqm::Summary::GetReportingArea(), cscdqm::Summary::GetValue(), cscdqm::Detector::GlobalChamberIndex(), cscdqm::Summary::isChamberStandby(), name(), operator=(), operator==(), cscdqm::Detector::PrintAddress(), cscdqm::Summary::Reset(), cscdqm::Summary::SetValue(), cscdqm::EventProcessor::standbyEfficiencyHistos(), cscdqm::EventProcessor::updateEfficiencyHistos(), cscdqm::Summary::Write(), and cscdqm::Summary::WriteChamberState().
unsigned int cscdqm::Address::ring |
Definition at line 86 of file CSCDQM_Detector.h.
Referenced by cscdqm::Detector::AddressFromString(), cscdqm::Summary::ChamberAddressToCoords(), cscdqm::Summary::ChamberCoordsToAddress(), cscdqm::Detector::Detector(), cscdqm::Summary::GetEfficiencyHW(), cscdqm::Summary::GetReportingArea(), cscdqm::Summary::GetValue(), cscdqm::Detector::GlobalChamberIndex(), cscdqm::Summary::isChamberStandby(), name(), operator=(), operator==(), cscdqm::Detector::PrintAddress(), cscdqm::Summary::Reset(), cscdqm::Summary::SetValue(), cscdqm::EventProcessor::updateEfficiencyHistos(), cscdqm::Summary::Write(), and cscdqm::Summary::WriteChamberState().
unsigned int cscdqm::Address::side |
Definition at line 84 of file CSCDQM_Detector.h.
Referenced by cscdqm::Detector::AddressFromString(), cscdqm::Summary::ChamberAddressToCoords(), cscdqm::Summary::ChamberCoordsToAddress(), cscdqm::Detector::Detector(), cscdqm::Summary::GetEfficiencyHW(), cscdqm::Summary::GetReportingArea(), cscdqm::Summary::GetValue(), cscdqm::Detector::GlobalChamberIndex(), cscdqm::Summary::isChamberStandby(), name(), operator=(), operator==(), cscdqm::Detector::PrintAddress(), cscdqm::Summary::SetValue(), cscdqm::EventProcessor::standbyEfficiencyHistos(), cscdqm::EventProcessor::updateEfficiencyHistos(), cscdqm::Summary::Write(), and cscdqm::Summary::WriteChamberState().
unsigned int cscdqm::Address::station |
Definition at line 85 of file CSCDQM_Detector.h.
Referenced by cscdqm::Detector::AddressFromString(), cscdqm::Summary::ChamberAddressToCoords(), cscdqm::Summary::ChamberCoordsToAddress(), cscdqm::Detector::Detector(), cscdqm::Summary::GetEfficiencyArea(), cscdqm::Summary::GetEfficiencyHW(), cscdqm::Summary::GetReportingArea(), cscdqm::Summary::GetValue(), cscdqm::Detector::GlobalChamberIndex(), cscdqm::Summary::isChamberStandby(), cscdqm::Summary::IsPhysicsReady(), name(), operator=(), operator==(), cscdqm::Detector::PrintAddress(), cscdqm::Summary::SetValue(), cscdqm::EventProcessor::updateEfficiencyHistos(), cscdqm::Summary::Write(), and cscdqm::Summary::WriteChamberState().