1 #ifndef RECOLOCALTRACKER_SISTRIPZEROSUPPRESSION_SISTRIPAPVRESTORER_H
2 #define RECOLOCALTRACKER_SISTRIPZEROSUPPRESSION_SISTRIPAPVRESTORER_H
25 typedef std::map<uint16_t, int16_t>
DigiMap;
26 typedef std::map<uint16_t, std::vector < int16_t> >
RawDigiMap;
28 typedef std::map<uint32_t, std::vector<float> >
CMMap;
40 int16_t
inspect(
const uint32_t&,
const uint16_t&, std::vector<int16_t>&,
const std::vector< std::pair<short,float> >&);
41 void restore(
const uint16_t&, std::vector<int16_t>&);
42 int16_t
InspectAndRestore(
const uint32_t&,
const uint16_t&, std::vector<int16_t>&, std::vector<int16_t>&,
const std::vector< std::pair<short,float> >&);
60 template<
typename T >int16_t
NullInspect(
const uint16_t&, std::vector<T>&);
65 void FlatRestore(
const uint16_t&,
const uint16_t&, std::vector<int16_t>& );
81 float pairMedian( std::vector<std::pair<float,float> >&);
int16_t AbnormalBaselineInspect(const uint16_t &, std::vector< T > &)
int16_t BaselineFollowerInspect(const uint16_t &, std::vector< T > &)
void CreateCMMapRealPed(const edm::DetSetVector< SiStripRawDigi > &)
uint32_t nSaturatedStrip_
void restore(const uint16_t &, std::vector< int16_t > &)
void init(const edm::EventSetup &es)
std::vector< bool > & GetAPVFlags()
bool FlatRegionsFinder(const std::vector< int16_t > &, DigiMap &, const uint16_t &)
void LoadMeanCMMap(const edm::Event &)
virtual ~SiStripAPVRestorer()
bool ApplyBaselineRejection_
uint32_t pedestal_cache_id
std::map< uint16_t, int16_t > DigiMap
double filteredBaselineDerivativeSumSquare_
std::map< uint16_t, DigiMap > & GetSmoothedPoints()
uint32_t nSigmaNoiseDerTh_
uint32_t quality_cache_id
edm::ESHandle< SiStripPedestals > pedestalHandle
void Cleaner_MonotonyChecker(DigiMap &)
std::map< uint16_t, DigiMap > SmoothedMaps_
RawDigiMap & GetBaselineMap()
std::map< uint16_t, int16_t >::iterator DigiMapIter
float pairMedian(std::vector< std::pair< float, float > > &)
std::vector< std::string > apvFlags_
void BaselineFollowerRestore(const uint16_t &, const uint16_t &, const float &, std::vector< int16_t > &)
bool CheckBaseline(const std::vector< int16_t > &) const
edm::ESHandle< SiStripQuality > qualityHandle
void BaselineFollower(DigiMap &, std::vector< int16_t > &, const float &)
int16_t InspectAndRestore(const uint32_t &, const uint16_t &, std::vector< int16_t > &, std::vector< int16_t > &, const std::vector< std::pair< short, float > > &)
double filteredBaselineMax_
uint32_t CleaningSequence_
int16_t NullInspect(const uint16_t &, std::vector< T > &)
int16_t BaselineAndSaturationInspect(const uint16_t &, std::vector< T > &)
void FlatRestore(const uint16_t &, const uint16_t &, std::vector< int16_t > &)
bool SelfSelectRestoreAlgo_
uint32_t consecThreshold_
void Cleaner_HighSlopeChecker(DigiMap &)
std::vector< bool > apvFlagsBoolOverride_
edm::ESHandle< SiStripNoises > noiseHandle
int16_t inspect(const uint32_t &, const uint16_t &, std::vector< int16_t > &, const std::vector< std::pair< short, float > > &)
std::map< uint32_t, std::vector< float > > CMMap
uint32_t DeltaCMThreshold_
void BaselineCleaner(const std::vector< int16_t > &, DigiMap &, const uint16_t &)
std::vector< bool > badAPVs_
bool ApplyBaselineCleaner_
std::vector< bool > apvFlagsBool_
std::map< uint16_t, std::vector< int16_t > > RawDigiMap
std::vector< float > median_
uint32_t distortionThreshold_
void CreateCMMapCMstored(const edm::DetSetVector< SiStripProcessedRawDigi > &)
uint32_t hitStripThreshold_
void Cleaner_LocalMinimumAdder(const std::vector< int16_t > &, DigiMap &, const uint16_t &)
SiStripAPVRestorer(const edm::ParameterSet &conf)