CMS 3D CMS Logo

CastorSimpleRecAlgo.h
Go to the documentation of this file.
1 #ifndef CASTORSIMPLERECALGO_H
2 #define CASTORSIMPLERECALGO_H 1
3 
9 #include <memory>
10 
23 public:
26  int firstSample, int samplesToAdd, bool correctForTimeslew, bool correctForContainment, float fixedPhaseNs);
29 
31  const CastorCoder& coder,
32  const CastorCalibrations& calibs) const;
33 
34  // sets rechit saturation status bit on if ADC count is >= maxADCvalue
35  void checkADCSaturation(CastorRecHit& rechit, const CastorDataFrame& digi, const int& maxADCvalue) const;
36 
37  //++++ Saturation Correction +++++
38  // recover pulse shape if ADC count is >= masADCvalue
40  const CastorCoder& coder,
41  const CastorCalibrations& calibs,
42  const CastorDataFrame& digi,
43  const int& maxADCvalue,
44  const double& satCorrConst) const;
45 
46  void resetTimeSamples(int f, int t) {
47  firstSample_ = f;
48  samplesToAdd_ = t;
49  }
50 
51 private:
54  std::unique_ptr<CastorPulseContainmentCorrection> pulseCorr_;
55 };
56 
57 #endif
CastorPulseContainmentCorrection.h
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
CastorCoder.h
CastorDataFrame.h
CastorSimpleRecAlgo::firstSample_
int firstSample_
Definition: CastorSimpleRecAlgo.h:52
CastorSimpleRecAlgo::reconstruct
CastorRecHit reconstruct(const CastorDataFrame &digi, const CastorCoder &coder, const CastorCalibrations &calibs) const
Definition: CastorSimpleRecAlgo.cc:163
castor_dqm_sourceclient-live_cfg.samplesToAdd
samplesToAdd
Definition: castor_dqm_sourceclient-live_cfg.py:56
CastorSimpleRecAlgo::pulseCorr_
std::unique_ptr< CastorPulseContainmentCorrection > pulseCorr_
Definition: CastorSimpleRecAlgo.h:54
CastorCalibrations
Definition: CastorCalibrations.h:9
CastorCalibrations.h
CastorSimpleRecAlgo
Definition: CastorSimpleRecAlgo.h:22
CastorRecHit
Definition: CastorRecHit.h:7
OrderedSet.t
t
Definition: OrderedSet.py:90
CastorSimpleRecAlgo::recoverADCSaturation
void recoverADCSaturation(CastorRecHit &rechit, const CastorCoder &coder, const CastorCalibrations &calibs, const CastorDataFrame &digi, const int &maxADCvalue, const double &satCorrConst) const
Definition: CastorSimpleRecAlgo.cc:178
CastorDataFrame
Definition: CastorDataFrame.h:15
castor_dqm_sourceclient-live_cfg.firstSample
firstSample
Definition: castor_dqm_sourceclient-live_cfg.py:58
CastorSimpleRecAlgo::samplesToAdd_
int samplesToAdd_
Definition: CastorSimpleRecAlgo.h:52
CastorSimpleRecAlgo::resetTimeSamples
void resetTimeSamples(int f, int t)
Definition: CastorSimpleRecAlgo.h:46
castor_dqm_sourceclient-live_cfg.correctForTimeslew
correctForTimeslew
Definition: castor_dqm_sourceclient-live_cfg.py:60
CastorSimpleRecAlgo::correctForTimeslew_
bool correctForTimeslew_
Definition: CastorSimpleRecAlgo.h:53
CastorRecHit.h
CastorSimpleRecAlgo::checkADCSaturation
void checkADCSaturation(CastorRecHit &rechit, const CastorDataFrame &digi, const int &maxADCvalue) const
Definition: CastorSimpleRecAlgo.cc:170
castor_dqm_sourceclient-live_cfg.maxADCvalue
maxADCvalue
Definition: castor_dqm_sourceclient-live_cfg.py:63
CastorCoder
Definition: CastorCoder.h:13
CastorSimpleRecAlgo::CastorSimpleRecAlgo
CastorSimpleRecAlgo(int firstSample, int samplesToAdd, bool correctForTimeslew, bool correctForContainment, float fixedPhaseNs)
Definition: CastorSimpleRecAlgo.cc:10