Main Page | Class List | File List | Class Members | Related Pages

EEmcTTMMaker Class Reference

EEMC tower to track matching. More...

List of all members.

Public Member Functions

 EEmcTTMMaker (const char *self="ttmmk", class StMuDstMaker *mumaker=NULL, class StEEmcDbMaker *dbmaker=NULL)
virtual ~EEmcTTMMaker ()
 the destructor

virtual Int_t Init ()
 initialize maker

virtual Int_t Make ()
 process one event

virtual void Clear (Option_t *option="")
virtual Int_t Finish ()
 cleans up at the end

void ResetZPositionsArray ()
 clears z positions array

void AddZPosition (const TString name, const double zpos)
Int_t GetMaxCTBSum () const
 gets maximum CTB sum allowed

void SetMaxCTBSum (Int_t v)
 sets maximum CTB sum allowed

Int_t GetMinTrackHits () const
 gets minimum number of hits/track required

void SetMinTrackHits (Int_t v)
 sets minimum number of hits/track required

Double_t GetMinTrackLength () const
 gets minimum track length required

void SetMinTrackLength (Double_t v)
 sets minimum track length required

Double_t GetMinTrackPt () const
 gets minimum track pT required

void SetMinTrackPt (Double_t v)
 sets minimum track pT required

Double_t GetMinTrackEta () const
 gets minimum pseudorapidity at the origin required

void SetMinTrackEta (Double_t v)
 sets minimum pseudorapidity at the origin required

Double_t GetMaxTrackEta () const
 gets minimum pseudorapidity at the origin required

void SetMaxTrackEta (Double_t v)
 sets minimum pseudorapidity at the origin required

Double_t GetDeltaPhiCut () const
 gets delta phi cut see Track matching parameters

void SetDeltaPhiCut (Double_t v=1.0)
 sets delta phi cut see Track matching parameters

Double_t GetDeltaEtaCut () const
 gets delta eta cut see Track matching parameters

void SetDeltaEtaCut (Double_t v=1.0)
 sets delta eta cut see Track matching parameters

void SetFileName (const char *string)
 set output file name

void WriteTree (const bool f)
 decide whether write out matches to a tree

ULong_t GetNMatched () const
 returns number of matched tracks

TList * GetTracks ()
 returns a list of accepted StMuTracks objects

TList * GetTowers ()
 returns a list of accepted EEmcTower objects

TList * GetMatchList ()
 returns a list of matches (EEmcTTMatch objects)

ostream & Summary (ostream &out) const
 prints matching cuts and statistics summary

virtual const char * GetCVS () const
 Displayed on session exit, leave it as-is please ...


Static Public Attributes

const Int_t kDefMaxCTBsum = 1000
 default value for the maximum CTB sum allowed

const Int_t kDefMinTrackHits = 5
 default value for the minimum TPC hits/track allowed

const Double_t kDefMinTrackLength = 20.0
 default value for the minimum track length allowed

const Double_t kDefMinTrackPt = 0.1
 default value for the minimum track pT allowed

const Double_t kDefMinTrackEta = 0.0
 default value for the minimum track pseudorapidity at origin allowed

const Double_t kDefMaxTrackEta = 2.2
 default value for the maximum track pseudorapidity at origin allowed

const Double_t kDefDeltaPhiCut = 0.7
 default value for the maximum distance in phi from the tower center

const Double_t kDefDeltaEtaCut = 0.7
 default value for the maximum distance in eta from the tower center


Protected Member Functions

void ResetStats ()
 resets the collected statistics

Bool_t AcceptTrack (const StMuTrack *track)
 whether accept the track or not

Bool_t MatchTrack (const double dphi, const double deta, const double phihw, const double etahw)
 whether track matches or not


Detailed Description

EEMC tower to track matching.

This a MuDST based class to match TPC tracks to EEMC towers. Its main result is a list of towers with associated tracks (list of EEmcTTMatch objects)

Author:
Piotr A. Zolnierczuk
Date
2004/06/03 21:02:28
Revision
1.25

Remarks

Bug:
The matching algorithm assumes that z depths at which matching is performed are in fact inside the EEMC, i.e. it is only phi and eta that are checked at given z. So it is up to the user to ensure that z depths are really inside EEMC. And the defaults are.

Since cint in root/root4star does not allow to pass function pointers (that would be ideal for user defineable EEmcTTMMaker::AcceptTrack and EEmcTTMMaker::MatchTrack) we're stuck with FORTRAN++


Constructor & Destructor Documentation

EEmcTTMMaker::EEmcTTMMaker const char *  self = "ttmmk",
class StMuDstMaker *  mumaker = NULL,
class StEEmcDbMaker *  dbmaker = NULL
 

the TTM constructor

Parameters:
self this maker name (const char*)
mumaker a pointer to a StMuDstMaker
dbmaker a pointer to a StEEmcDbMaker


Member Function Documentation

Bool_t EEmcTTMMaker::AcceptTrack const StMuTrack *  track  )  [protected]
 

whether accept the track or not

default criterion of track acceptance

Parameters:
track a pointer to a current StMuTrack

void EEmcTTMMaker::AddZPosition const TString  name,
const double  zpos
[inline]
 

adds a z position to z positions array

Parameters:
name position name
zpos position depth

void EEmcTTMMaker::Clear Option_t *  option = ""  )  [virtual]
 

clears maker

Parameters:
option not used at the moment

Bool_t EEmcTTMMaker::MatchTrack const double  dphi,
const double  deta,
const double  phihw,
const double  etahw
[protected]
 

whether track matches or not

default criterion whether a track matches a tower or not

Parameters:
dphi a distance from track hit to tower centre in phi
deta a distance from track hit to tower centre in eta
phihw a tower half-width in phi
etahw a tower half-width in eta
Returns:
Bool_t

ostream & EEmcTTMMaker::Summary ostream &  out  )  const
 

prints matching cuts and statistics summary

Parameters:
out an ostream to print to
Returns:
ostream


Generated on Thu Jun 3 17:02:37 2004 for Tower to Track Match Maker by doxygen 1.3.5