CElectronTrackingStrategy.h
//-----------------------------------------------------------------------------
// $Header: /tmp_mnt/asis/offline/ceres/cool/project/RCS/CElectronTrackingStrategy.h,v 2.2 1996/10/04 08:43:07 voigt Exp $
//
// COOL Program Library
// Copyright (C) CERES collaboration, 1996
//
// Declaration of class CElectronTrackingStrategy.
//
// Creates all tracks according to the hits/rings of the detectors passed
// as arguments. Passing a detector as the null-pointer is allowed.
// In this case the referring detector is not included into the tracking.
// Detectors may be passed to the constructor or set individually.
//
// NOTE:
// getTracks copies tracks/segments according to a bitwise OR of
// one or several CTrackMask masks. The result is filled
// into the given track list.
// Note, that it is the users responsibility to handle the
// memory allocated by the obtained tracks.
// 'getTracks' creates a deep copy not a shallow one.
// example:
// strategy.getTracks(trackList, hasVertex|hasRich2Match);
//
// The meaning of the bit mask:
// There are 3 pools of tracking information: RICH tracks, SiDC
// tracks and tracks consisting of matching segments. The bits
// 'hasVertex, hasSidc1Match, hasSidc2Match' refer to Sidc tracks
// 'hasRich1Match, hasRich2Match' to RICH tracks. If only bits of
// one kind are requested the referring segment pool is inspected.
// The returned list will contain all segments which at least have
// the requested bit(s) set. E.g., if you ask for
// 'hasVertex|hasSidc2Match' there may well be segments with the
// hasSidc1Match bit set. However, if a bit mask contains bits
// referring to RICH and SIDC only matching segments (real tracks) are
// returned, resolving at least the given bit pattern.
//
//-----------------------------------------------------------------------------
#ifndef CLECTRONTRACKINGSTRATEGY_H
#define CLECTRONTRACKINGSTRATEGY_H
#include <rw/tpordvec.h>
#include "cool.h"
#include "CRich1.h"
#include "CRich2.h"
#include "CElectronTrack.h"
#include "CSidcTrackingStrategy.h"
class CElectronTrackingStrategy : public CSidcTrackingStrategy {
public:
CElectronTrackingStrategy(CVertex*, CSidc*, CSidc*, CRich1*, CRich2*, const char* = 0);
~CElectronTrackingStrategy();
CBoolean makeTracks();
CBoolean getTracks(CList<CElectronTrack>&, unsigned long);
void setRich1(CRich1* ptr) {rich1 = ptr;}
void setRich2(CRich2* ptr) {rich2 = ptr;}
protected:
virtual CBoolean makeRichTracks();
virtual CBoolean linkRichAndSidcTracks();
protected:
const CRich1* rich1;
const CRich2* rich2;
RWTPtrOrderedVector<CElectronTrack> richTracks;
RWTPtrOrderedVector<CElectronTrack> tracks;
};
#endif /* CLECTRONTRACKINGSTRATEGY_H */