CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelROC.cc
Go to the documentation of this file.
2 
6 
7 #include <sstream>
8 #include <algorithm>
9 using namespace std;
10 using namespace sipixelobjects;
11 
12 PixelROC::PixelROC(uint32_t du, int idDU, int idLk)
13  : theDetUnit(du), theIdDU(idDU), theIdLk(idLk)
15 
17 {
19  PixelBarrelName barrelName(theDetUnit);
21  } else {
22  PixelEndcapName endcapName(theDetUnit);
24  }
25 }
26 
27 string PixelROC::print(int depth) const
28 {
29 
30  ostringstream out;
32  DetId detId(theDetUnit);
33  if (depth-- >=0 ) {
34  out <<"======== PixelROC ";
35  out <<" unit: ";
36  if (barrel) out << PixelBarrelName(detId).name();
37  else out << PixelEndcapName(detId).name();
38  out <<" ("<<theDetUnit<<")"
39  <<" idInDU: "<<theIdDU
40  <<" idInLk: "<<theIdLk
41 // <<" frame: "<<theRowOffset<<","<<theRowSlopeSign<<","<<theColOffset<<","<<theColSlopeSign
42 // <<" frame: "<<*theFrameConverter
43  <<endl;
44  }
45  return out.str();
46 }
47 
std::string print(int depth=0) const
printout for debug
Definition: PixelROC.cc:27
FrameConversion theFrameConverter
Definition: PixelROC.h:73
unsigned int theIdLk
Definition: PixelROC.h:72
unsigned int theIdDU
Definition: PixelROC.h:72
tuple out
Definition: dbtoconf.py:99
virtual bool isBarrel() const
true for barrel modules
Definition: DetId.h:18
virtual std::string name() const
from base class
virtual std::string name() const
from base class