src
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
EBDetId
Definition:
EBDetId.h:17
EcalScDetId
Definition:
EcalScDetId.h:24
EcalElectronicsMapping.h
EcalReadoutTools::EcalReadoutTools
EcalReadoutTools(const edm::Event &, const edm::EventSetup &, const ESGetTokens &)
Definition:
EcalReadoutTools.cc:3
Event.h
EcalTrigTowerConstituentsMap
Definition:
EcalTrigTowerConstituentsMap.h:19
EventSetup.h
EcalTrigTowerDetId
Definition:
EcalTrigTowerDetId.h:14
EcalReadoutTools::ESGetTokens::ecalElectronicsMappingToken
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > const ecalElectronicsMappingToken
Definition:
EcalReadoutTools.h:22
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord >
EcalMappingRcd.h
EEDetId
Definition:
EEDetId.h:14
EcalReadoutTools::triggerTowerMap_
const EcalTrigTowerConstituentsMap * triggerTowerMap_
Definition:
EcalReadoutTools.h:14
EcalTrigTowerConstituentsMap.h
EcalReadoutTools
Definition:
EcalReadoutTools.h:12
EcalReadoutTools::elecMap_
const EcalElectronicsMapping * elecMap_
Definition:
EcalReadoutTools.h:15
edm::EventSetup
Definition:
EventSetup.h:56
EcalElectronicsMapping
Definition:
EcalElectronicsMapping.h:28
EcalReadoutTools::ESGetTokens::ecalTrigTowerConstituentsMapToken
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > const ecalTrigTowerConstituentsMapToken
Definition:
EcalReadoutTools.h:21
IdealGeometryRecord.h
EcalReadoutTools::ESGetTokens::ESGetTokens
ESGetTokens(const edm::ParameterSet &, edm::ConsumesCollector &&iC)
Definition:
EcalReadoutTools.h:19
edm::ParameterSet
Definition:
ParameterSet.h:47
edm::Event
Definition:
Event.h:73
EcalReadoutTools::operator=
EcalReadoutTools & operator=(const EcalReadoutTools &)=delete
EcalReadoutTools::ESGetTokens
Definition:
EcalReadoutTools.h:18
ConsumesCollector.h
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
EcalReadoutTools::readOutUnitOf
EcalTrigTowerDetId readOutUnitOf(const EBDetId &xtalId) const
Definition:
EcalReadoutTools.cc:8
Generated for CMSSW Reference Manual by
1.8.14