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 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  TIBDetId tib1 = TIBDetId(rawdetid);
32  Name << "TIB";
33  } else if(stripdet.subDetector() == SiStripDetId::TID) {
34  TIDDetId tid1 = TIDDetId(rawdetid);
35  if( tid1.side() == 1 ) {
36  Name << "TID-";
37  }
38  else if( tid1.side() == 2 ) {
39  Name << "TID+";
40  }
41  else {
42  Name << "???";
43  }
44  } else if(stripdet.subDetector() == SiStripDetId::TOB) {
45  TOBDetId tob1 = TOBDetId(rawdetid);
46  Name << "TOB";
47  } else if( stripdet.subDetector() == SiStripDetId::TEC) {
48  TECDetId tec1 = TECDetId(rawdetid);
49  if( tec1.side() == 1 ) {
50  Name << "TEC-";
51  }
52  else if( tec1.side() == 2 ) {
53  Name << "TEC+";
54  }
55  else {
56  Name << "???";
57  }
58  } else{
59  Name << "???";
60  }
61 
62  return Name.str();
63 
64 }
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:102
unsigned int side() const
positive or negative id
Definition: TIDDetId.h:45