BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkMdcHotSelector.cxx
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkMdcHotSelector.cxx,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4//
5// Description:
6// class TrkMdcHotSelector. Trivial implementation of TrkHotSelector for
7// selecting Mdc hots.
8//
9// Environment:
10// Software developed for the BaBar Detector at the SLAC B-Factory.
11//
12// Copyright Information:
13// Copyright (C) 2001 Lawrence Berkeley Laboratory
14//
15// Author List:
16// Dave Brown 7/17/01
17//------------------------------------------------------------------------
18
19// #include "BaBar/BaBar.hh"
20#include "TrkBase/TrkMdcHotSelector.h"
21#include "TrkBase/TrkHitOnTrk.h"
22
23TrkMdcHotSelector::TrkMdcHotSelector( bool activeOnly ) : _ignoreActive( !activeOnly ) {}
24
26
27bool TrkMdcHotSelector::useHot( const TrkHitOnTrk& hot ) const {
28 return ( hot.mdcHitOnTrack() != 0 ) && ( _ignoreActive || hot.isActive() );
29}
virtual const MdcHitOnTrack * mdcHitOnTrack() const
TrkMdcHotSelector(bool activeOnly=true)
virtual bool useHot(const TrkHitOnTrk &hot) const