/*************************************************************************** * * $Id: HitMergingPairCut.cxx,v 1.2 2003/09/02 17:58:21 perev Exp $ * * Author: Fabrice Retiere *************************************************************************** * * Description: Allow to cut on hit merging * Usage : * HitMergingPairCut* pairCut = new HitMergingPairCut(); * pairCut->setDefaultHalfFieldMergingPar(); * pairCut->setMaxFracOfMergedRow(MaxMergedHit); * *************************************************************************** * * $Log: HitMergingPairCut.cxx,v $ * Revision 1.2 2003/09/02 17:58:21 perev * gcc 3.2 updates + WarnOff * * Revision 1.1 2001/12/14 23:11:27 fretiere * Add class HitMergingCut. Add class fabricesPairCut = HitMerginCut + pair purity cuts. Add TpcLocalTransform function which convert to local tpc coord (not pretty). Modify StHbtTrack, StHbtParticle, StHbtHiddenInfo, StHbtPair to handle the hit information and cope with my code * * **************************************************************************/ #include "StHbtMaker/Cut/HitMergingPairCut.h" #include "Infrastructure/StHbtPair.hh" #include #include #include #ifdef __ROOT__ ClassImp(HitMergingPairCut) #endif //__________________ HitMergingPairCut::HitMergingPairCut(){ mNPairsPassed = mNPairsFailed = 0; mMaxFracPair= 0.2; setDefaultHalfFieldMergingPar(); } //__________________ //HitMergingPairCut::~HitMergingPairCut(){ // /* no-op */ //} void HitMergingPairCut::setMergingPar(double aMaxDuInner, double aMaxDzInner, double aMaxDuOuter, double aMaxDzOuter){ StHbtPair tPair; tPair.setMergingPar(aMaxDuInner, aMaxDzInner, aMaxDuOuter, aMaxDzOuter); } void HitMergingPairCut::setDefaultFullFieldMergingPar(){ StHbtPair tPair; tPair.setDefaultFullFieldMergingPar(); } void HitMergingPairCut::setDefaultHalfFieldMergingPar(){ StHbtPair tPair; tPair.setDefaultHalfFieldMergingPar(); } //__________________ bool HitMergingPairCut::Pass(const StHbtPair* pair){ bool temp = pair->getFracOfMergedRow()