CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HBHENegativeFlag.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------
2 #ifndef HBHENegativeFlag_H
3 #define HBHENegativeFlag_H
4 //---------------------------------------------------------------------------
5 // Negative filter algorithms for HBHE noise flagging
6 //
7 // Original Author: Yi Chen (Caltech), (1)3364 (Aug. 21, 2014)
8 //---------------------------------------------------------------------------
9 #include <string>
10 #include <vector>
11 #include <map>
12 #include "boost/shared_ptr.hpp"
13 //---------------------------------------------------------------------------
21 //---------------------------------------------------------------------------
23 //---------------------------------------------------------------------------
25 {
26  public:
28  HBHENegativeFlagSetter(double minimumChargeThreshold,
29  double tS4TS5ChargeThreshold,
30  int first, int last,
31  std::vector<double> threshold,
32  std::vector<double> cut);
34  void setPulseShapeFlags(HBHERecHit& hbhe, const HBHEDataFrame &digi,
35  const HcalCoder &coder, const HcalCalibrations &calib);
36  void setHBHEPileupCorrection(boost::shared_ptr<AbsOOTPileupCorrection> corr);
37  void setBXInfo(const BunchXParameter *info, unsigned length);
38  private:
41  boost::shared_ptr<AbsOOTPileupCorrection> hbhePileupCorr_;
42  int mFirst;
43  int mLast;
44  const BunchXParameter *mBunchCrossingInfo;
46  std::vector<std::pair<double, double> > mCut;
47  private:
48  bool checkPassFilter(double charge, double discriminant, std::vector<std::pair<double, double> > &cuts,
49  int side);
50 };
51 //---------------------------------------------------------------------------
52 #endif
53 
static const TGPicture * info(bool iBackgroundIsBlack)
void setBXInfo(const BunchXParameter *info, unsigned length)
MVATrainerComputer * calib
Definition: MVATrainer.cc:64
std::vector< std::pair< double, double > > mCut
JetCorrectorParameters corr
Definition: classes.h:5
bool checkPassFilter(double charge, double discriminant, std::vector< std::pair< double, double > > &cuts, int side)
void setHBHEPileupCorrection(boost::shared_ptr< AbsOOTPileupCorrection > corr)
boost::shared_ptr< AbsOOTPileupCorrection > hbhePileupCorr_
void setPulseShapeFlags(HBHERecHit &hbhe, const HBHEDataFrame &digi, const HcalCoder &coder, const HcalCalibrations &calib)
const BunchXParameter * mBunchCrossingInfo