4 void exampleEmc(
const Char_t *infile=
"/star/data24/reco/production_dAu2008/ReversedFullField/P08ic/2008/026/9026032/st_physics_adc_9026032_raw_1070010.MuDst.root",
const Int_t n_event=100) {
5 gROOT->Macro(
"loadMuDst.C");
8 gSystem->Load(
"StDbLib.so");
9 gSystem->Load(
"StDbBroker.so");
10 gSystem->Load(
"St_db_Maker");
13 gSystem->Load(
"StDaqLib");
14 gSystem->Load(
"StEmcRawMaker");
15 gSystem->Load(
"StEmcADCtoEMaker");
16 gSystem->Load(
"StPreEclMaker");
17 gSystem->Load(
"StEpcMaker");
52 while (i_event < n_event && chain->Make() ==
kStOk) {
57 cout << emcCollection->barrelPoints().size() <<
" points in barrel" << endl;
59 StEmcDetector *barrel = emcCollection->detector(kBarrelEmcTowerId);
60 if (barrel->cluster())
61 cout << barrel->cluster()->clusters().size() <<
" barrel tower clusters" << endl;
62 StEmcDetector *smde = emcCollection->detector(kBarrelSmdEtaStripId);
63 if (barrel->cluster())
64 cout << smde->cluster()->clusters().size() <<
" smd eta clusters" << endl;
65 StEmcDetector *smdp = emcCollection->detector(kBarrelSmdPhiStripId);
66 if (barrel->cluster())
67 cout << smdp->cluster()->clusters().size() <<
" smd phi clusters" << endl;
70 cout <<
"No emc collection!" << endl;
void setPrint(Bool_t)
Obsolete function; users can control messages with logger config file.
virtual void Clear(Option_t *option="")
User defined functions.
void setPrint(Bool_t a)
Obsolete function; users can control messages with logger config file.
void setPrint(Bool_t a)
Obsolete function; users can control messages with logger config file.
static StEmcCollection * emcCollection()
returns pointer to current StEmcCollection