CalibCalorimetry
EcalTPGTools
interface
EcalReadoutTools.h
Go to the documentation of this file.
1
#ifndef CalibCalorimetry_EcalTPGTools_EcalReadoutTools_H
2
#define CalibCalorimetry_EcalTPGTools_EcalReadoutTools_H
3
4
#include "
FWCore/Framework/interface/Event.h
"
5
#include "
FWCore/Framework/interface/EventSetup.h
"
6
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
7
#include "
Geometry/Records/interface/IdealGeometryRecord.h
"
8
#include "
Geometry/CaloTopology/interface/EcalTrigTowerConstituentsMap.h
"
9
#include "
Geometry/EcalMapping/interface/EcalElectronicsMapping.h
"
10
#include "
Geometry/EcalMapping/interface/EcalMappingRcd.h
"
11
12
class
EcalReadoutTools
{
13
private
:
14
const
EcalTrigTowerConstituentsMap
*
triggerTowerMap_
;
15
const
EcalElectronicsMapping
*
elecMap_
;
16
17
public
:
18
struct
ESGetTokens
{
19
ESGetTokens
(
const
edm::ParameterSet
&,
edm::ConsumesCollector
&& iC)
20
:
ecalTrigTowerConstituentsMapToken
{iC.esConsumes()},
ecalElectronicsMappingToken
{iC.esConsumes()} {}
21
edm::ESGetToken<EcalTrigTowerConstituentsMap, IdealGeometryRecord>
const
ecalTrigTowerConstituentsMapToken
;
22
edm::ESGetToken<EcalElectronicsMapping, EcalMappingRcd>
const
ecalElectronicsMappingToken
;
23
};
24
25
EcalReadoutTools
(
const
edm::Event
&,
const
edm::EventSetup
&,
const
ESGetTokens
&);
26
EcalReadoutTools
(
const
EcalReadoutTools
&) =
delete
;
27
EcalReadoutTools
&
operator=
(
const
EcalReadoutTools
&) =
delete
;
28
29
EcalTrigTowerDetId
readOutUnitOf
(
const
EBDetId
& xtalId)
const
;
30
EcalScDetId
readOutUnitOf
(
const
EEDetId
& xtalId)
const
;
31
};
32
33
#endif
EcalElectronicsMapping
Definition:
EcalElectronicsMapping.h:28
EcalReadoutTools::ESGetTokens::ecalTrigTowerConstituentsMapToken
const edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > ecalTrigTowerConstituentsMapToken
Definition:
EcalReadoutTools.h:21
EBDetId
Definition:
EBDetId.h:17
EcalTrigTowerDetId
Definition:
EcalTrigTowerDetId.h:14
EcalReadoutTools::readOutUnitOf
EcalTrigTowerDetId readOutUnitOf(const EBDetId &xtalId) const
Definition:
EcalReadoutTools.cc:8
EcalReadoutTools::EcalReadoutTools
EcalReadoutTools(const edm::Event &, const edm::EventSetup &, const ESGetTokens &)
Definition:
EcalReadoutTools.cc:3
EcalReadoutTools::elecMap_
const EcalElectronicsMapping * elecMap_
Definition:
EcalReadoutTools.h:15
EcalMappingRcd.h
EcalScDetId
Definition:
EcalScDetId.h:24
EcalReadoutTools::ESGetTokens::ecalElectronicsMappingToken
const edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > ecalElectronicsMappingToken
Definition:
EcalReadoutTools.h:22
EEDetId
Definition:
EEDetId.h:14
EcalTrigTowerConstituentsMap
Definition:
EcalTrigTowerConstituentsMap.h:19
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
EcalReadoutTools::operator=
EcalReadoutTools & operator=(const EcalReadoutTools &)=delete
EcalElectronicsMapping.h
IdealGeometryRecord.h
edm::EventSetup
Definition:
EventSetup.h:58
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord >
EcalReadoutTools::triggerTowerMap_
const EcalTrigTowerConstituentsMap * triggerTowerMap_
Definition:
EcalReadoutTools.h:14
EcalTrigTowerConstituentsMap.h
EcalReadoutTools::ESGetTokens::ESGetTokens
ESGetTokens(const edm::ParameterSet &, edm::ConsumesCollector &&iC)
Definition:
EcalReadoutTools.h:19
EventSetup.h
ConsumesCollector.h
EcalReadoutTools
Definition:
EcalReadoutTools.h:12
edm::Event
Definition:
Event.h:73
EcalReadoutTools::ESGetTokens
Definition:
EcalReadoutTools.h:18
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
Generated for CMSSW Reference Manual by
1.8.16