41 #include "TPaveStats.h" 54 SiStripThresholdTest() :
cond::payloadInspector::Histogram1D<
SiStripThreshold>(
"SiStrip Threshold test",
55 "SiStrip Threshold test", 10,0.0,10.0),
58 Base::setSingleIov(
true );
61 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs )
override{
62 for (
auto const & iov: iovs) {
63 std::shared_ptr<SiStripThreshold>
payload = Base::fetchPayload( std::get<1>(iov) );
69 ss <<
"Summary of strips threshold:" << std::endl;
71 payload->printSummary(ss,&m_trackerTopo);
73 std::vector<uint32_t> detid;
74 payload->getDetIds(detid);
93 SiStripThresholdValueHigh() :
cond::payloadInspector::Histogram1D<
SiStripThreshold>(
"SiStrip High threshold values (checked per APV)",
94 "SiStrip High threshold values (cheched per APV)", 10,0.0,10){
95 Base::setSingleIov(
true );
98 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs )
override{
103 for (
auto const & iov: iovs) {
104 std::shared_ptr<SiStripThreshold> payload = Base::fetchPayload( std::get<1>(iov) );
106 std::vector<uint32_t> detid;
107 payload->getDetIds(detid);
109 for (
const auto &
d : detid) {
115 for(
int it=0; it<nAPVs; ++it ){
117 auto hth = payload->getData(it*128,range).getHth();
137 SiStripThresholdValueLow() :
cond::payloadInspector::Histogram1D<
SiStripThreshold>(
"SiStrip Low threshold values (checked per APV)",
138 "SiStrip Low threshold values (cheched per APV)", 10,0.0,10){
139 Base::setSingleIov(
true );
142 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs )
override{
147 for (
auto const & iov: iovs) {
148 std::shared_ptr<SiStripThreshold> payload = Base::fetchPayload( std::get<1>(iov) );
150 std::vector<uint32_t> detid;
151 payload->getDetIds(detid);
153 for (
const auto &
d : detid) {
159 for(
int it=0; it<nAPVs; ++it ){
161 auto lth = payload->getData(it*128,range).getLth();
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength(uint32_t detId) const
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
#define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME)
std::pair< ContainerIterator, ContainerIterator > Range
TrackerTopology fromTrackerParametersXMLFile(const std::string &xmlFileName)
std::string fullPath() const