EEmcTTMMaker Class Reference

class EEmcTTMMaker More...

#include <EEmcTTMMaker.h>

Inheritance diagram for EEmcTTMMaker:

StMaker

List of all members.

Public Member Functions

 EEmcTTMMaker (const char *self="ttmmk", class StMuDstMaker *mumaker=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 matchparams
void SetDeltaPhiCut (Double_t v=1.0)
 sets delta phi cut see matchparams
Double_t GetDeltaEtaCut () const
 gets delta eta cut see matchparams
void SetDeltaEtaCut (Double_t v=1.0)
 sets delta eta cut see matchparams
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

static const Int_t kDefMaxCTBsum = 1000
 default value for the maximum CTB sum allowed
static const Int_t kDefMinTrackHits = 5
 default value for the minimum TPC hits/track allowed
static const Double_t kDefMinTrackLength = 20.0
 default value for the minimum track length allowed
static const Double_t kDefMinTrackPt = 0.1
 default value for the minimum track pT allowed
static const Double_t kDefMinTrackEta = 0.0
 default value for the minimum track pseudorapidity at origin allowed
static const Double_t kDefMaxTrackEta = 2.2
 default value for the maximum track pseudorapidity at origin allowed
static const Double_t kDefDeltaPhiCut = 0.7
 default value for the maximum distance in phi from the tower center
static 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

class EEmcTTMMaker

EEMC tower to track matching.

Author:
Piotr A. Zolnierczuk, Indiana University Cyclotron Facility
Date:
2003/12/08
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
2009/02/04 20:33:24
Revision
1.30

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++

Todo:
The maker does not produce any useful file output. Write it.

Definition at line 40 of file EEmcTTMMaker.h.


Constructor & Destructor Documentation

EEmcTTMMaker::EEmcTTMMaker ( const char *  self = "ttmmk",
class StMuDstMaker mumaker = NULL 
)

the TTM constructor

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

Definition at line 94 of file EEmcTTMMaker.cxx.

References AddZPosition(), StMaker::GetName(), kDefDeltaEtaCut, kDefDeltaPhiCut, kDefMaxCTBsum, kDefMaxTrackEta, kDefMinTrackEta, kDefMinTrackHits, kDefMinTrackLength, kDefMinTrackPt, ResetStats(), and ResetZPositionsArray().

EEmcTTMMaker::~EEmcTTMMaker (  )  [virtual]

the destructor

destructor - cleanup

Definition at line 152 of file EEmcTTMMaker.cxx.


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

Definition at line 384 of file EEmcTTMMaker.cxx.

References StMuTrack::eta(), StMuTrack::flag(), StMuTrack::length(), StMuTrack::nHitsFit(), StMuTrack::pt(), StMuTrack::topologyMap(), and StMuTrack::type().

Referenced by Make().

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

Definition at line 83 of file EEmcTTMMaker.h.

Referenced by EEmcTTMMaker().

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

clears maker

Parameters:
option not used at the moment

Reimplemented from StMaker.

Definition at line 361 of file EEmcTTMMaker.cxx.

Int_t EEmcTTMMaker::Finish (  )  [virtual]

cleans up at the end

finish the job, write TTree

Reimplemented from StMaker.

Definition at line 374 of file EEmcTTMMaker.cxx.

References kStOK.

Int_t EEmcTTMMaker::Init (  )  [virtual]

initialize maker

Init().

Reimplemented from StMaker.

Definition at line 166 of file EEmcTTMMaker.cxx.

References kStErr, and ResetStats().

Int_t EEmcTTMMaker::Make (  )  [virtual]

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

Definition at line 404 of file EEmcTTMMaker.cxx.

Referenced by Make().

ostream & EEmcTTMMaker::Summary ( ostream &  out  )  const

prints matching cuts and statistics summary

Parameters:
out an ostream to print to
Returns:
ostream

Definition at line 426 of file EEmcTTMMaker.cxx.

References StMaker::GetName().


The documentation for this class was generated from the following files:

Generated on Thu Feb 9 04:27:18 2012 for StRoot by  doxygen 1.5.9