DataFormats
ForwardDetId
interface
HGCSiliconDetIdToROC.h
Go to the documentation of this file.
1
#ifndef DataFormats_ForwardDetId_HGCSiliconDetIdToROC_H
2
#define DataFormats_ForwardDetId_HGCSiliconDetIdToROC_H 1
3
4
#include "
DataFormats/ForwardDetId/interface/HFNoseDetId.h
"
5
#include "
DataFormats/ForwardDetId/interface/HFNoseTriggerDetId.h
"
6
#include "
DataFormats/ForwardDetId/interface/HGCalTriggerDetId.h
"
7
#include "
DataFormats/ForwardDetId/interface/HGCSiliconDetId.h
"
8
#include <iostream>
9
#include <map>
10
#include <utility>
11
#include <vector>
12
#include <functional>
13
14
class
HGCSiliconDetIdToROC
{
15
public
:
17
HGCSiliconDetIdToROC
();
18
19
int
getROCNumber
(
HGCalTriggerDetId
const
&
id
)
const
{
20
return
getROCNumber
(
id
.triggerCellU(),
id
.triggerCellV(),
id
.
type
());
21
}
22
int
getROCNumber
(
HGCSiliconDetId
const
&
id
)
const
{
23
return
getROCNumber
(
id
.triggerCellU(),
id
.triggerCellV(),
id
.
type
());
24
}
25
int
getROCNumber
(
HFNoseDetId
const
&
id
)
const
{
26
return
getROCNumber
(
id
.triggerCellU(),
id
.triggerCellV(),
id
.
type
());
27
}
28
int
getROCNumber
(
HFNoseTriggerDetId
const
&
id
)
const
{
29
return
getROCNumber
(
id
.triggerCellU(),
id
.triggerCellV(),
id
.
type
());
30
}
31
int
getROCNumber
(
int
triggerCellU,
int
triggerCellV,
int
type
)
const
;
32
std::vector<std::pair<int, int> >
getTriggerId
(
int
roc
,
int
type
)
const
;
33
void
print
()
const
;
34
35
private
:
36
std::map<std::pair<int, int>,
int
>
triggerIdToROC_
;
37
std::map<int, std::vector<std::pair<int, int> > >
triggerIdFromROC_
;
38
};
39
#endif
HGCSiliconDetIdToROC::getROCNumber
int getROCNumber(HGCalTriggerDetId const &id) const
Definition:
HGCSiliconDetIdToROC.h:19
HGCSiliconDetId.h
HFNoseDetId.h
HFNoseDetId
Definition:
HFNoseDetId.h:22
HFNoseTriggerDetId
Definition:
HFNoseTriggerDetId.h:26
HGCSiliconDetId
Definition:
HGCSiliconDetId.h:22
HGCSiliconDetIdToROC::triggerIdToROC_
std::map< std::pair< int, int >, int > triggerIdToROC_
Definition:
HGCSiliconDetIdToROC.h:36
HFNoseTriggerDetId.h
HGCSiliconDetIdToROC::getROCNumber
int getROCNumber(HFNoseTriggerDetId const &id) const
Definition:
HGCSiliconDetIdToROC.h:28
HGCalTriggerDetId
Definition:
HGCalTriggerDetId.h:26
HGCSiliconDetIdToROC::getROCNumber
int getROCNumber(HFNoseDetId const &id) const
Definition:
HGCSiliconDetIdToROC.h:25
HGCSiliconDetIdToROC::getROCNumber
int getROCNumber(HGCSiliconDetId const &id) const
Definition:
HGCSiliconDetIdToROC.h:22
type
type
Definition:
HCALResponse.h:21
HGCSiliconDetIdToROC::HGCSiliconDetIdToROC
HGCSiliconDetIdToROC()
Definition:
HGCSiliconDetIdToROC.cc:3
PixelMapPlotter.roc
roc
Definition:
PixelMapPlotter.py:498
HGCSiliconDetIdToROC::triggerIdFromROC_
std::map< int, std::vector< std::pair< int, int > > > triggerIdFromROC_
Definition:
HGCSiliconDetIdToROC.h:37
HGCSiliconDetIdToROC
Definition:
HGCSiliconDetIdToROC.h:14
HGCSiliconDetIdToROC::print
void print() const
Definition:
HGCSiliconDetIdToROC.cc:75
HGCalTriggerDetId.h
HGCSiliconDetIdToROC::getTriggerId
std::vector< std::pair< int, int > > getTriggerId(int roc, int type) const
Definition:
HGCSiliconDetIdToROC.cc:57
Generated for CMSSW Reference Manual by
1.8.16