CMS 3D CMS Logo

EcalEBPhase2Linearizer.h
Go to the documentation of this file.
1 #ifndef SimCalorimetry_EcalEBTrigPrimAlgos_EcalEBPhase2Linearizer_h
2 #define SimCalorimetry_EcalEBTrigPrimAlgos_EcalEBPhase2Linearizer_h
3 
9 
11 
12 #include <vector>
13 
21 private:
22  bool debug_;
24  int gainID_;
28  int strip_;
29  bool init_;
30  float gainDivideByTen_ = 0.1;
31  std::vector<uint> coeffs_;
33  //I2C Stuff. Would eventually get from outside linearizer (e.g., database)
34  //Would also be different for each crystal
36 
40 
41  std::vector<const EcalTPGCrystalStatusCode *> vectorbadXStatus_;
42 
43  int setInput(const EcalLiteDTUSample &RawSam);
44 
45  int doOutput();
46 
47 public:
49  virtual ~EcalEBPhase2Linearizer();
50 
51  void process(const EBDigiCollectionPh2::Digi &df, std::vector<int> &output_percry);
52  void setParameters(EBDetId id,
53  const EcalLiteDTUPedestalsMap *peds,
54  const EcalEBPhase2TPGLinearizationConstMap *ecaltplin,
55  const EcalTPGCrystalStatus *ecaltpBadX);
56 };
57 
58 #endif
const EcalEBPhase2TPGLinearizationConstant * linConsts_
std::vector< const EcalTPGCrystalStatusCode * > vectorbadXStatus_
void process(const EBDigiCollectionPh2::Digi &df, std::vector< int > &output_percry)
int setInput(const EcalLiteDTUSample &RawSam)
const EcalLiteDTUPedestals * peds_
#define debug
Definition: HDRShower.cc:19
void setParameters(EBDetId id, const EcalLiteDTUPedestalsMap *peds, const EcalEBPhase2TPGLinearizationConstMap *ecaltplin, const EcalTPGCrystalStatus *ecaltpBadX)
const EcalTPGCrystalStatusCode * badXStatus_
std::vector< uint > coeffs_