Main Page
Namespaces
Classes
Package Documentation
Geometry
HGCalCommonData
plugins
FastTimeNumberingInitialization.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: FastTimeNumberingInitialization
4
// Class: FastTimeNumberingInitialization
5
//
13
//
14
// Original Author: Sunanda Banerjee
15
// Created: Tue Mar 21 16:40:29 PDT 2013
16
// $Id: FastTimeNumberingInitialization.cc,v 1.0 2014/04/24 12:47:41 sunanda Exp $
17
//
18
//
19
20
// system include files
21
#include <memory>
22
23
// user include files
24
#include <
FWCore/Framework/interface/ModuleFactory.h
>
25
#include <
FWCore/Framework/interface/ESProducer.h
>
26
#include <
FWCore/Framework/interface/ESTransientHandle.h
>
27
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
28
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
29
30
#include <
DetectorDescription/Core/interface/DDFilter.h
>
31
#include <
DetectorDescription/Core/interface/DDFilteredView.h
>
32
#include <
DetectorDescription/Core/interface/DDsvalues.h
>
33
#include "
Geometry/HGCalCommonData/interface/FastTimeParameters.h
"
34
#include <
Geometry/HGCalCommonData/interface/FastTimeDDDConstants.h
>
35
#include <
Geometry/Records/interface/IdealGeometryRecord.h
>
36
37
//#define EDM_ML_DEBUG
38
39
class
FastTimeNumberingInitialization
:
public
edm::ESProducer
{
40
41
public
:
42
FastTimeNumberingInitialization
(
const
edm::ParameterSet
&);
43
~FastTimeNumberingInitialization
()
override
;
44
45
using
ReturnType
= std::unique_ptr<FastTimeDDDConstants>;
46
47
ReturnType
produce
(
const
IdealGeometryRecord
&);
48
};
49
50
FastTimeNumberingInitialization::FastTimeNumberingInitialization
(
const
edm::ParameterSet
&) {
51
#ifdef EDM_ML_DEBUG
52
std::cout
<<
"constructing FastTimeNumberingInitialization"
<< std::endl;
53
#endif
54
setWhatProduced
(
this
);
55
}
56
57
FastTimeNumberingInitialization::~FastTimeNumberingInitialization
() {}
58
59
60
// ------------ method called to produce the data ------------
61
FastTimeNumberingInitialization::ReturnType
62
FastTimeNumberingInitialization::produce
(
const
IdealGeometryRecord
& iRecord) {
63
#ifdef EDM_ML_DEBUG
64
std::cout
<<
"in FastTimeNumberingInitialization::produce"
<< std::endl;
65
#endif
66
edm::ESHandle<FastTimeParameters>
pFTpar;
67
iRecord.
get
(pFTpar);
68
return
std::make_unique<FastTimeDDDConstants>(&(*pFTpar));
69
}
70
71
//define this as a plug-in
72
DEFINE_FWK_EVENTSETUP_MODULE
(
FastTimeNumberingInitialization
);
73
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:116
MessageLogger.h
FastTimeNumberingInitialization::ReturnType
std::unique_ptr< FastTimeDDDConstants > ReturnType
Definition:
FastTimeNumberingInitialization.cc:45
edm::ESProducer
Definition:
ESProducer.h:98
ParameterSet.h
DDFilteredView.h
edm::ESHandle
Definition:
DTSurvey.h:22
FastTimeNumberingInitialization::produce
ReturnType produce(const IdealGeometryRecord &)
Definition:
FastTimeNumberingInitialization.cc:62
IdealGeometryRecord
Definition:
IdealGeometryRecord.h:27
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
ESProducer.h
DDsvalues.h
IdealGeometryRecord.h
FastTimeNumberingInitialization::FastTimeNumberingInitialization
FastTimeNumberingInitialization(const edm::ParameterSet &)
Definition:
FastTimeNumberingInitialization.cc:50
FastTimeDDDConstants.h
ESTransientHandle.h
FastTimeNumberingInitialization
Definition:
FastTimeNumberingInitialization.cc:39
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
FastTimeNumberingInitialization::~FastTimeNumberingInitialization
~FastTimeNumberingInitialization() override
Definition:
FastTimeNumberingInitialization.cc:57
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
DDFilter.h
FastTimeParameters.h
edm::eventsetup::EventSetupRecord::get
bool get(HolderT &iHolder) const
Definition:
EventSetupRecord.h:109
Generated for CMSSW Reference Manual by
1.8.11