#if !defined (__CINT__) || defined (__MAKECINT__) #include "Stntuple/photon/TCesCprBase.hh" #endif class TCesCpr : public TCesCprBase { public: TCesCpr(); TCesCpr(const char* name); ~TCesCpr(); // returns 0 or the weight for this event Float_t AddPhoton(TStnEvent* event, TStnPhoton* pho); // after calling AddPhoton, these will return the values for this event // flags =0 if OK for this method (including CES/CPR Et cut) // weights for summing, and signal and background probabilities // "signal" in this case is CES<4 or CPR on Int_t CesFlag() { return fCesFlag;} Bool_t CesHit() { return fCesHit;} Float_t CesWt() { return fCesWt;} Float_t CesProbS() { return fCesProbS;} Float_t CesProbB() { return fCesProbB;} Int_t CprFlag() { return fCprFlag;} Bool_t CprHit() { return fCprHit;} Float_t CprWt() { return fCprWt;} Float_t CprProbS() { return fCprProbS;} Float_t CprProbB() { return fCprProbB;} Float_t Weight() { return fWeight;} void Print(); void Clear(); // the results, Float_t SignalFraction(); Float_t SignalFractionErr(); Float_t BGFraction(); Float_t BGFractionErr(); Float_t Signal(Bool_t scale = true); Float_t SignalErr(Bool_t scale = true); Float_t BG(Bool_t scale = true); Float_t BGErr(Bool_t scale = true); protected: Int_t fCesFlag; Bool_t fCesHit; Float_t fCesWt; Float_t fCesProbS; Float_t fCesProbB; Int_t fCprFlag; Bool_t fCprHit; Float_t fCprWt; Float_t fCprProbS; Float_t fCprProbB; Float_t fWeight; Float_t fSum; Float_t fSum2; Float_t fSum2Bg; ClassDef(TCesCpr,1) };