37 void runEEmcPointMaker( Int_t nevents = -1,
40 Char_t *name=
"mc.list",
41 Char_t *ofile=
"mc.root",
49 TString pathname = path;
60 mChain =
new StChain(
"eemcAnalysisChain");
65 mMuDstMaker =
new StMuDstMaker(0,0,path,name,
"MuDst",nfiles);
73 mStarDatabase =
new St_db_Maker(
"StarDb",
"MySQL:StarDb");
81 mStarDatabase->SetFlavor(
"sim",
"eemcPMTcal");
82 mStarDatabase->SetFlavor(
"sim",
"eemcPIXcal");
83 mStarDatabase->SetFlavor(
"sim",
"eemcPMTped");
84 mStarDatabase->SetFlavor(
"sim",
"eemcPMTstat");
85 mStarDatabase->SetFlavor(
"sim",
"eemcPMTname");
86 mStarDatabase->SetFlavor(
"sim",
"eemcADCconf");
87 mStarDatabase->SetDateTime(20050101,0);
97 gMessMgr -> SwitchOn(
"D");
98 gMessMgr -> SwitchOn(
"I");
126 mEEanalysis->
source(
"MuDst",1);
134 mEEanalysis->
scale(1.2);
192 while ( stat == 0 ) {
195 printf(
"event=%d\n",count);
200 if ( count++ >= nevents )
if ( nevents > 0 )
break;
211 stat = mChain ->
Make();
218 std::cout <<
"------------------------------------------------";
219 std::cout <<
"event=" << count << std::endl;
224 Int_t nhits[]={0,0,0,0,0,0};
225 for (
int i = 0; i < 4; i++ ) {
235 for ( Int_t sec=0;sec<12;sec++ )
247 Int_t ncl[6]={0,0,0,0,0,0};
255 const Char_t *lay[]={
"tower:",
"pre1: ",
"pre2: ",
"post: ",
"smdu: ",
"smdv: "};
256 for ( Int_t i=0;i<6;i++ )
259 printf(
"%s nhits=%2i nclusters=%2i\n",lay[i],nhits[i],ncl[i]);
261 printf(
"number of points = %i\n",
mEEpoints -> numberOfPoints());
274 mEEmcDatabase = (
StEEmcDb*)mChain->GetDataSet(
"StEEmcDb");
275 if (mEEmcDatabase) mEEmcDatabase->exportAscii(
"dbdump.dat");
289 gROOT -> LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
290 loadSharedLibraries();
292 gSystem->Load(
"StDbLib");
293 gSystem->Load(
"StDbBroker");
294 gSystem->Load(
"St_db_Maker");
295 gSystem->Load(
"StEEmcUtil");
296 gSystem->Load(
"StEEmcDbMaker");
297 gSystem->Load(
"StEEmcSimulatorMaker");
299 gSystem->Load(
"StEEmcA2EMaker");
300 gSystem->Load(
"StEEmcClusterMaker");
301 gSystem->Load(
"StEEmcPointMaker");
void Clear(Option_t *opts="")
User defined functions.
EEmc ADC –> energy maker.
StEEmcGenericClusterMaker * mEEclusters
void source(const Char_t *, Int_t=0)
void setAddPed(Bool_t a=true)
Add pedestal offsets from DB.
StEEmcA2EMaker * mEEanalysis
A maker for creating pi0 histograms.
Int_t numberOfHitStrips(Int_t sector, Int_t plane) const
Int_t numberOfHitTowers(Int_t layer) const
Int_t numberOfClusters(Int_t sector, Int_t layer) const
void threshold(Float_t cut, Int_t layer)
virtual void ls(Option_t *option="") const
void setOverwrite(Bool_t o=true)
Overwrite the muDst values.
void setDropBad(Bool_t d=true)
Drop bad channels marked as "fail" in DB.
StEEmcGenericPointMaker * mEEpoints
A class for finding EEMC points.
void SetStatus(const char *arrType, int status)
void setSmearPed(Bool_t s=true)
Smear the pedestal with sigma from DB.
A class for mixing pi0 candidates.
void database(const Char_t *)
Set the name of the EEMC database, init obtains pointer.