Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-04-14 02:22:58

0001 #ifndef SIMCALORIMETRY_ECALTRIGPRIMALGOS_ECALFENIXPEAKFINDER_H
0002 #define SIMCALORIMETRY_ECALTRIGPRIMALGOS_ECALFENIXPEAKFINDER_H
0003 
0004 #include <vector>
0005 
0006 /**
0007  \ class EcalFenixPeakFinder
0008  \brief calculates the peak for Fenix strip, barrel
0009  *  input : 18 bits
0010  *  output: boolean
0011  *
0012  *  --->gets the sample where the value is max. the  value is 1 for this max
0013  sample, 0 for the others .needs 3 samples to proceed.
0014  *  ----> do we really need caloVShape?
0015  */
0016 
0017 class EcalFenixPeakFinder {
0018 private:
0019   bool disabled;
0020   int setInput(int input);
0021   int process();
0022 
0023   int inputsAlreadyIn_;
0024   int buffer_[3];
0025 
0026 public:
0027   EcalFenixPeakFinder();
0028   virtual ~EcalFenixPeakFinder();
0029   virtual std::vector<int> process(std::vector<int> &filtout, std::vector<int> &output);
0030   // from CaloVShape
0031   //  virtual double operator()(double) const {return 0.;}
0032   //  virtual double derivative(double) const {return 0.;}
0033 };
0034 
0035 #endif