|
|
Go to the documentation of this file.
20 : reco_(conf.getParameter<
int>(
"firstSample"),
21 conf.getParameter<
int>(
"samplesToAdd"),
22 conf.getParameter<
bool>(
"correctForTimeslew"),
23 conf.getParameter<
bool>(
"correctForPhaseContainment"),
24 conf.getParameter<double>(
"correctionPhaseNS")),
26 firstSample_(conf.getParameter<
int>(
"firstSample")),
27 samplesToAdd_(conf.getParameter<
int>(
"samplesToAdd")),
28 maxADCvalue_(conf.getParameter<
int>(
"maxADCvalue")),
29 tsFromDB_(conf.getParameter<
bool>(
"tsFromDB")),
30 setSaturationFlag_(conf.getParameter<
bool>(
"setSaturationFlag")),
31 doSaturationCorr_(conf.getParameter<
bool>(
"doSaturationCorr")) {
36 if (!strcasecmp(subd.c_str(),
"CASTOR")) {
39 produces<CastorRecHitCollection>();
42 <<
"CastorSimpleReconstructor is not associated with CASTOR subdetector!" << std::endl;
48 tok_satCorr_ = esConsumes<CastorSaturationCorrs, CastorSaturationCorrsRcd>();
68 <<
"Could not handle the CastorRecoParamsRcd correctly, using parameters from cfg file from this event "
69 "onwards... These parameters could be wrong for this run... please check"
80 edm::LogWarning(
"CastorSimpleReconstructor") <<
"Could not handle the CastorSaturationCorrsRcd correctly. We'll "
81 "not try the saturation correction from this event onwards..."
91 auto rec = std::make_unique<CastorRecHitCollection>();
117 double satCorrConst = 1.;
118 satCorrConst = saturationCorr->
getValue();
const Item * getValues(DetId fId, bool throwOnFail=true) const
std::vector< T >::const_iterator const_iterator
CastorRecHit reconstruct(const CastorDataFrame &digi, const CastorCoder &coder, const CastorCalibrations &calibs) const
static const int SubdetectorId
Log< level::Warning, false > LogWarning
void produce(edm::Event &e, const edm::EventSetup &c) override
~CastorSimpleReconstructor() override
CastorSimpleReconstructor(const edm::ParameterSet &ps)
const_iterator begin() const
edm::EDGetTokenT< CastorDigiCollection > tok_input_
void recoverADCSaturation(CastorRecHit &rechit, const CastorCoder &coder, const CastorCalibrations &calibs, const CastorDataFrame &digi, const int &maxADCvalue, const double &satCorrConst) const
const_iterator end() const
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
edm::ESGetToken< CastorSaturationCorrs, CastorSaturationCorrsRcd > tok_satCorr_
CastorSimpleRecAlgo reco_
void resetTimeSamples(int f, int t)
edm::ESGetToken< CastorRecoParams, CastorRecoParamsRcd > tok_recoParams_
constexpr uint32_t rawId() const
get the raw id
edm::ESGetToken< CastorDbService, CastorDbRecord > tok_conditions_
T getParameter(std::string const &) const
unsigned int firstSample() const
void checkADCSaturation(CastorRecHit &rechit, const CastorDataFrame &digi, const int &maxADCvalue) const
unsigned int samplesToAdd() const