21 eeHitCollection_(ps.getParameter<
std::
string>(
"HGCEEhitCollection")),
22 hefHitCollection_(ps.getParameter<
std::
string>(
"HGCHEFhitCollection")),
23 hebHitCollection_(ps.getParameter<
std::
string>(
"HGCHEBhitCollection")),
24 hfnoseHitCollection_(ps.getParameter<
std::
string>(
"HGCHFNosehitCollection")),
27 produces<HGCeeUncalibratedRecHitCollection>(eeHitCollection_);
28 produces<HGChefUncalibratedRecHitCollection>(hefHitCollection_);
29 produces<HGChebUncalibratedRecHitCollection>(hebHitCollection_);
30 produces<HGChfnoseUncalibratedRecHitCollection>(hfnoseHitCollection_);
39 auto eeUncalibRechits = std::make_unique<HGCeeUncalibratedRecHitCollection>();
40 auto hefUncalibRechits = std::make_unique<HGChefUncalibratedRecHitCollection>();
41 auto hebUncalibRechits = std::make_unique<HGChebUncalibratedRecHitCollection>();
42 auto hfnoseUncalibRechits = std::make_unique<HGChfnoseUncalibratedRecHitCollection>();
46 if (pHGCEEDigis.isValid())
51 if (pHGCHEFDigis.isValid())
56 if (pHGCHEBDigis.isValid())
61 if (pHGCHFNoseDigis.isValid())
68 if (pHGCHFNoseDigis.isValid())
82 desc.add<
std::string>(
"HGCHFNosehitCollection",
"HGCHFNoseUncalibRecHits");
84 HGCEEConfigPSet.
add<
bool>(
"isSiFE",
true);
85 HGCEEConfigPSet.add<
unsigned int>(
"adcNbits", 10);
86 HGCEEConfigPSet.add<
double>(
"adcSaturation", 100);
87 HGCEEConfigPSet.add<
unsigned int>(
"tdcNbits", 12);
88 HGCEEConfigPSet.add<
double>(
"tdcSaturation", 10000);
89 HGCEEConfigPSet.add<
double>(
"tdcOnset", 60);
90 HGCEEConfigPSet.add<
double>(
"toaLSB_ns", 0.0244);
91 HGCEEConfigPSet.add<
double>(
"tofDelay", -9);
92 HGCEEConfigPSet.add<std::vector<double>>(
"fCPerMIP",
100 HGCHEFConfigPSet.
add<
bool>(
"isSiFE",
true);
101 HGCHEFConfigPSet.add<
unsigned int>(
"adcNbits", 10);
102 HGCHEFConfigPSet.add<
double>(
"adcSaturation", 100);
103 HGCHEFConfigPSet.add<
unsigned int>(
"tdcNbits", 12);
104 HGCHEFConfigPSet.add<
double>(
"tdcSaturation", 10000);
105 HGCHEFConfigPSet.add<
double>(
"tdcOnset", 60);
106 HGCHEFConfigPSet.add<
double>(
"toaLSB_ns", 0.0244);
107 HGCHEFConfigPSet.add<
double>(
"tofDelay", -11);
108 HGCHEFConfigPSet.add<std::vector<double>>(
"fCPerMIP",
116 HGCHEBConfigPSet.
add<
bool>(
"isSiFE",
true);
117 HGCHEBConfigPSet.add<
unsigned int>(
"adcNbits", 10);
118 HGCHEBConfigPSet.add<
double>(
"adcSaturation", 68.75);
119 HGCHEBConfigPSet.add<
unsigned int>(
"tdcNbits", 12);
120 HGCHEBConfigPSet.add<
double>(
"tdcSaturation", 1000);
121 HGCHEBConfigPSet.add<
double>(
"tdcOnset", 55);
122 HGCHEBConfigPSet.add<
double>(
"toaLSB_ns", 0.0244);
123 HGCHEBConfigPSet.add<
double>(
"tofDelay", -14);
124 HGCHEBConfigPSet.add<std::vector<double>>(
"fCPerMIP",
132 HGCHFNoseConfigPSet.
add<
bool>(
"isSiFE",
false);
133 HGCHFNoseConfigPSet.add<
unsigned int>(
"adcNbits", 10);
134 HGCHFNoseConfigPSet.add<
double>(
"adcSaturation", 100);
135 HGCHFNoseConfigPSet.add<
unsigned int>(
"tdcNbits", 12);
136 HGCHFNoseConfigPSet.add<
double>(
"tdcSaturation", 10000);
137 HGCHFNoseConfigPSet.add<
double>(
"tdcOnset", 60);
138 HGCHFNoseConfigPSet.add<
double>(
"toaLSB_ns", 0.0244);
139 HGCHFNoseConfigPSet.add<
double>(
"tofDelay", -33);
140 HGCHFNoseConfigPSet.add<std::vector<double>>(
"fCPerMIP",
148 desc.add<
bool>(
"computeLocalTime",
false);
149 descriptions.
add(
"HGCalUncalibRecHitProducer",
desc);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const edm::EDGetTokenT< HGCalDigiCollection > eeDigiCollection_
const edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > hfnose_geometry_token_
const edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > ee_geometry_token_
const std::string hefHitCollection_
const std::string eeHitCollection_
#define DEFINE_FWK_MODULE(type)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
const edm::EDGetTokenT< HGCalDigiCollection > hebDigiCollection_
const edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > heb_geometry_token_
~HGCalUncalibRecHitProducer() override
const edm::EDGetTokenT< HGCalDigiCollection > hefDigiCollection_
std::unique_ptr< HGCalUncalibRecHitWorkerBaseClass > worker_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
HGCalUncalibRecHitProducer(const edm::ParameterSet &ps)
const std::string hebHitCollection_
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
void produce(edm::Event &evt, const edm::EventSetup &es) override
const std::string hfnoseHitCollection_
const edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > hef_geometry_token_
const edm::EDGetTokenT< HGCalDigiCollection > hfnoseDigiCollection_