CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
HDQMInspectorConfigSiStrip Class Reference

#include <HDQMInspectorConfigSiStrip.h>

Inheritance diagram for HDQMInspectorConfigSiStrip:
HDQMInspectorConfigBase

Public Member Functions

 HDQMInspectorConfigSiStrip ()
 
std::string translateDetId (const uint32_t) const
 pure virtual method that convert a DetId to a string More...
 
virtual ~HDQMInspectorConfigSiStrip ()
 
- Public Member Functions inherited from HDQMInspectorConfigBase
bool computeIntegral (const std::string &in) const
 
virtual bool computeIntegralList (const std::vector< std::string > &computeIntegralVector)
 fills the list of names of quantities for which a summation over the runs is required More...
 
std::string getErrorForQuantity (const std::string &QuantityName) const
 
 HDQMInspectorConfigBase ()
 
virtual bool valueErrorMap (std::vector< std::pair< std::string, std::string > > &valueErrorVector) const
 fills a vector<pair<string, string> > associating values with the corresponding errors More...
 
virtual ~HDQMInspectorConfigBase ()
 

Detailed Description

Definition at line 10 of file HDQMInspectorConfigSiStrip.h.

Constructor & Destructor Documentation

HDQMInspectorConfigSiStrip::HDQMInspectorConfigSiStrip ( )

Definition at line 13 of file HDQMInspectorConfigSiStrip.cc.

14 {
15 }
HDQMInspectorConfigSiStrip::~HDQMInspectorConfigSiStrip ( )
virtual

Definition at line 18 of file HDQMInspectorConfigSiStrip.cc.

19 {
20 }

Member Function Documentation

std::string HDQMInspectorConfigSiStrip::translateDetId ( const uint32_t  ) const
virtual

pure virtual method that convert a DetId to a string

Implements HDQMInspectorConfigBase.

Definition at line 23 of file HDQMInspectorConfigSiStrip.cc.

References errorMatrix2Lands_multiChannel::id, TIDDetId::side(), TECDetId::side(), SiStripDetId::subDetector(), SiStripDetId::TEC, SiStripDetId::TIB, SiStripDetId::TID, and SiStripDetId::TOB.

24 {
25  std::stringstream Name;
26 
27  uint32_t rawdetid = id;
28  SiStripDetId stripdet = SiStripDetId(rawdetid);
29 
30  if(stripdet.subDetector() == SiStripDetId::TIB) {
31  Name << "TIB";
32  } else if(stripdet.subDetector() == SiStripDetId::TID) {
33  TIDDetId tid1 = TIDDetId(rawdetid);
34  if( tid1.side() == 1 ) {
35  Name << "TID-";
36  }
37  else if( tid1.side() == 2 ) {
38  Name << "TID+";
39  }
40  else {
41  Name << "???";
42  }
43  } else if(stripdet.subDetector() == SiStripDetId::TOB) {
44  Name << "TOB";
45  } else if( stripdet.subDetector() == SiStripDetId::TEC) {
46  TECDetId tec1 = TECDetId(rawdetid);
47  if( tec1.side() == 1 ) {
48  Name << "TEC-";
49  }
50  else if( tec1.side() == 2 ) {
51  Name << "TEC+";
52  }
53  else {
54  Name << "???";
55  }
56  } else{
57  Name << "???";
58  }
59 
60  return Name.str();
61 
62 }
unsigned int side() const
positive or negative id
Definition: TECDetId.h:47
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
SubDetector subDetector() const
Definition: SiStripDetId.h:114
unsigned int side() const
positive or negative id
Definition: TIDDetId.h:45