StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
BprsCapPolygraph.h
1 #ifndef STAR_BprsCapPolygraph_h
2 #define STAR_BprsCapPolygraph_h
3 
4 #include "JanBprsEveA.h"
5 class TH2F;
6 class TObjArray ;
8 class JanBarrelEvent;
9 
11  public:
12  BprsCapPolygraph( TObjArray *HList, StJanBarrelDbMaker* ,int pedFlag=3);
13  void doBaseline(JanBprsEveA & bprsEve, JanBarrelEvent &fullEve);
14  void findBestCap(JanBprsEveA & bprsEve, JanBarrelEvent &fullEve);
15  void doPedResidua(JanBprsEveA & bprsEve);
16 
17  //----------------------
18  void setCut(float a, float b, int c,float d){ cut_adcMax=a; cut_fracSkip=b; par_mxDelCap=c; cut_stepChi2dof=d;}
19 
20  //----------------------
21  void print(){
22  printf("BprsPoly PAR: mxDelCap=%d, CUT: maxAdc=%.1f fracSkip=%.3f stepChi2dof=%.1f\n", par_mxDelCap, cut_adcMax,cut_fracSkip,cut_stepChi2dof);
23  }
24 
25  private:
26  float cut_adcMax, cut_fracSkip, cut_stepChi2dof;
27  int par_mxDelCap;
28  int par_pedFlag;
29  StJanBarrelDbMaker *mJanDbMaker;
30 
31  public:
32  TH2F *hCh2D, *hCapGood, *hCapCorr;
33  TH1F *hAdcGood, *hAdcCorr, *hChiB, *hChiGap, *hChiGap2;
34 
35 };
36 #endif