Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CondFormats
SiPixelObjects
src
PixelROC.cc
Go to the documentation of this file.
1
#include "
CondFormats/SiPixelObjects/interface/PixelROC.h
"
2
3
#include "
DataFormats/SiPixelDetId/interface/PixelBarrelName.h
"
4
#include "
DataFormats/SiPixelDetId/interface/PixelEndcapName.h
"
5
#include "
DataFormats/DetId/interface/DetId.h
"
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)
14
{
initFrameConversion
();}
15
16
void
PixelROC::initFrameConversion
()
17
{
18
if
(
PixelModuleName::isBarrel
(
theDetUnit
) ) {
19
PixelBarrelName
barrelName(
theDetUnit
);
20
theFrameConverter =
FrameConversion
(barrelName,
theIdDU
);
21
}
else
{
22
PixelEndcapName
endcapName(
theDetUnit
);
23
theFrameConverter =
FrameConversion
(endcapName,
theIdDU
);
24
}
25
}
26
27
string
PixelROC::print
(
int
depth)
const
28
{
29
30
ostringstream
out
;
31
bool
barrel
=
PixelModuleName::isBarrel
(
theDetUnit
);
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
sipixelobjects::PixelROC::initFrameConversion
void initFrameConversion()
Definition:
PixelROC.cc:16
Reference_intrackfit_cff.barrel
barrel
Definition:
Reference_intrackfit_cff.py:37
PixelEndcapName.h
sipixelobjects::PixelROC::print
std::string print(int depth=0) const
printout for debug
Definition:
PixelROC.cc:27
PixelBarrelName
Definition:
PixelBarrelName.h:14
PixelEndcapName
Definition:
PixelEndcapName.h:16
PixelROC.h
sipixelobjects::PixelROC::theIdLk
unsigned int theIdLk
Definition:
PixelROC.h:72
sipixelobjects::FrameConversion
Definition:
FrameConversion.h:12
sipixelobjects::PixelROC::theIdDU
unsigned int theIdDU
Definition:
PixelROC.h:72
dbtoconf.out
tuple out
Definition:
dbtoconf.py:99
PixelModuleName::isBarrel
virtual bool isBarrel() const
true for barrel modules
Definition:
PixelModuleName.h:21
DetId
Definition:
DetId.h:18
PixelBarrelName::name
virtual std::string name() const
from base class
Definition:
PixelBarrelName.cc:216
PixelEndcapName::name
virtual std::string name() const
from base class
Definition:
PixelEndcapName.cc:163
DetId.h
sipixelobjects::PixelROC::theDetUnit
uint32_t theDetUnit
Definition:
PixelROC.h:71
PixelBarrelName.h
Generated for CMSSW Reference Manual by
1.8.5