24 char* inpFile =
"ttm.lis",
25 char* outFile =
"ttm.ndst.root",
36 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
37 loadSharedLibraries();
39 gSystem->Load(
"libmysqlclient");
40 gSystem->Load(
"StDbLib");
41 gSystem->Load(
"StDbBroker");
42 gSystem->Load(
"St_db_Maker");
44 gSystem->Load(
"StEEmcUtil");
45 gSystem->Load(
"StEEmcDbMaker");
46 gSystem->Load(
"StEEmcPoolTTM");
52 muDstMaker =
new StMuDstMaker(0,0,inpDir,inpFile,
"",nFiles);
58 eemcDbMaker->setSectors(1,12);
59 eemcDbMaker->setPreferedFlavor(
"onlped",
"eemcPMTped");
88 while(++event<nEvents) {
92 if( stat==2 || stat==4)
break;
93 if( stat!=0 )
continue;
106 cerr <<
"Run=\"" << evInfo.runId() <<
"\"\t";
107 cerr <<
"Event=\""<< evInfo.id() <<
"\">\n";
111 tower = tmatch->Tower();
114 int sector = tower->
Sec();
115 int subsec = tower->
SubSec();
116 int etabin = tower->
Eta();
117 float adc = tower->
ADC();
118 float de = tower->
dE();
124 TIter nextTrack(tmatch->Tracks());
125 while((track=(
StMuTrack *)nextTrack())) {
130 double pt = track->
pt();
134 cerr <<
"</Event>" << endl;
float ADC() const
gets adc value associated with the tower (pedestal adjusted)
void SetDeltaEtaCut(Double_t v=1.0)
sets delta eta cut see matchparams
void SetMinTrackPt(Double_t v)
sets minimum track pT required
Double_t pt() const
Returns pT at point of dca to primary vertex.
const char * TowerLabel() const
returns tower label, e.g. "05TB09"
int SubSecLabel() const
gets tower subsector label, human offset [A..E]
void SetMinTrackEta(Double_t v)
sets minimum pseudorapidity at the origin required
static void setLevel(unsigned int level)
sets the debug level
EEmcTTMMaker(const char *self="ttmmk", class StMuDstMaker *mumaker=NULL)
float dE() const
gets calibrated energy loss value associated with the tower
ostream & Summary(ostream &out) const
prints matching cuts and statistics summary
TList * GetMatchList()
returns a list of matches (EEmcTTMatch objects)
void SetMaxTrackEta(Double_t v)
sets minimum pseudorapidity at the origin required
void SetMinTrackLength(Double_t v)
sets minimum track length required
virtual void ls(Option_t *option="") const
void SetDeltaPhiCut(Double_t v=1.0)
sets delta phi cut see matchparams
int SubSec() const
gets tower subsector index, computer offset [0,....)
void SetMaxCTBSum(Int_t v)
sets maximum CTB sum allowed
static StMuEvent * event()
returns pointer to current StMuEvent (class holding the event wise information, e.g. event number, run number)
int Sec() const
gets tower sector index, computer offset [0,....)
int SecLabel() const
gets tower sector label, human offset [1..12]
EEmcTTMatch class contains results of TPC track to EEMC tower matching.
int EtaLabel() const
gets tower eta label, human offset [1..12]
void SetMinTrackHits(Int_t v)
sets minimum number of hits/track required
void SetFileName(const char *string)
set output file name
int Eta() const
gets tower eta index, computer offset [0,....)
EEmcTower holds information about an EEMC tower 'hit'.
static Bool_t ExtrapolateToZ(const StMuTrack *track, const double z, TVector3 &r)
given track and position z return TVector3 with a