CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelModuleName.h
Go to the documentation of this file.
1 #ifndef SiPixelDetId_PixelModuleName_H
2 #define SiPixelDetId_PixelModuleName_H
3 
4 #include <string>
5 #include <iostream>
6 #include <stdint.h>
7 
13 public:
14 
16 
17  PixelModuleName(bool isBarrel) : barrel(isBarrel) { }
18  virtual ~PixelModuleName() { }
19 
21  virtual bool isBarrel() const { return barrel; }
22 
23  static bool isBarrel(uint32_t rawDetId) { return ( 1==((rawDetId>>25)&0x7)); }
24 
26  virtual std::string name() const = 0;
27 
29  virtual ModuleType moduleType() const = 0;
30 
32  virtual bool operator== (const PixelModuleName &) const = 0;
33 
34 private:
35  bool barrel;
36 };
37 
38 std::ostream & operator<<( std::ostream& out, const PixelModuleName::ModuleType & t);
39 #endif
static bool isBarrel(uint32_t rawDetId)
virtual bool operator==(const PixelModuleName &) const =0
check equality of modules
PixelModuleName(bool isBarrel)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
virtual std::string name() const =0
associated name
virtual ~PixelModuleName()
tuple out
Definition: dbtoconf.py:99
virtual bool isBarrel() const
true for barrel modules
virtual ModuleType moduleType() const =0
module type