#include <EEmcTTMMaker.h>

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 | |
EEMC tower to track matching.
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++
Definition at line 40 of file EEmcTTMMaker.h.
| EEmcTTMMaker::EEmcTTMMaker | ( | const char * | self = "ttmmk", |
|
| class StMuDstMaker * | mumaker = NULL | |||
| ) |
the TTM constructor
| 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] |
| Bool_t EEmcTTMMaker::AcceptTrack | ( | const StMuTrack * | track | ) | [protected] |
whether accept the track or not
default criterion of track acceptance
| 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
| 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
| 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
Reimplemented from StMaker.
Definition at line 166 of file EEmcTTMMaker.cxx.
References kStErr, and ResetStats().
| Int_t EEmcTTMMaker::Make | ( | ) | [virtual] |
process one event
Reimplemented from StMaker.
Definition at line 207 of file EEmcTTMMaker.cxx.
References AcceptTrack(), EEmcTTMatch::Add(), StMuTrack::dca(), StMuDst::event(), EEmcTTMatch::ExtrapolateToZ(), EEmcGeomSimple::getEtaHalfWidth(), EEmcGeomSimple::getEtaMean(), StMaker::GetName(), EEmcGeomSimple::getPhiHalfWidth(), EEmcGeomSimple::getPhiMean(), kStErr, kStOK, StMuTrack::lengthMeasured(), EEmcTTMatch::Matches(), MatchTrack(), StMuDstMaker::muDst(), StMuDst::muEmcCollection(), StMuTrack::nHitsFit(), StMuTrack::p(), StMuDst::primaryTracks(), and StMuTrack::pt().
| 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
| 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 |
Definition at line 404 of file EEmcTTMMaker.cxx.
Referenced by Make().
| ostream & EEmcTTMMaker::Summary | ( | ostream & | out | ) | const |
prints matching cuts and statistics summary
| out | an ostream to print to |
Definition at line 426 of file EEmcTTMMaker.cxx.
References StMaker::GetName().
1.5.9