StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
LoopTest.C
1 // Copyright (C) 2007 Tai Sakuma <sakuma@mit.edu>
2 #include "LoopTest.hh"
3 
4 #include <TSystem.h>
5 #include <TFile.h>
6 #include <TTree.h>
7 #include <TObject.h>
8 
9 
10 #include <Stiostream.h>
11 #include <StMessMgr.h>
12 #include <StMuDSTMaker/COMMON/StMuDst.h>
13 #include <StMuDSTMaker/COMMON/StMuEvent.h>
14 #include <StMuDSTMaker/COMMON/StMuDstMaker.h>
15 #include <StMuDSTMaker/COMMON/StMuPrimaryVertex.h>
16 #include <StJetFinder/StProtoJet.h>
17 #include <StEmcUtil/geometry/StEmcGeom.h>
18 
19 #include <StMuEmcPosition.h>
20 #include <StMuTrackFourVec.h>
21 #include <StJet.h>
22 #include <StJets.h>
23 
24 #include <StBET4pMakerImp.h>
25 #include <StjTPCMuDst.h>
26 #include <StjBEMCMuDst.h>
27 
28 #include <StEmcRawMaker/StBemcTables.h>
29 
30 #include <St_db_Maker/St_db_Maker.h>
31 #include <StEmcADCtoEMaker/StEmcADCtoEMaker.h>
32 #include <StSpinPool/StSpinDbMaker/StSpinDbMaker.h>
33 #include <StTriggerUtilities/StTriggerSimuMaker.h>
34 #include <StTriggerUtilities/Bemc/StBemcTriggerSimu.h>
35 #include <StTriggerUtilities/L2Emulator/StGenericL2Emulator.h>
36 #include <StTriggerUtilities/L2Emulator/StL2_2006EmulatorMaker.h>
37 
38 #include <StMuTrackFourVec.h>
39 
40 #include <Rtypes.h>
41 
42 using namespace std;
43 
44 // Registers the fixture into the 'registry'
45 CPPUNIT_TEST_SUITE_REGISTRATION( LoopTest );
46 
47 void LoopTest::setUp()
48 {
49 
50 }
51 
52 void LoopTest::tearDown()
53 {
54 
55 }
56 
57 void LoopTest::testOne()
58 {
59 // StChain *chain= new StChain("StChain");
60 //
61 // StMuDstMaker* mudstMaker = new StMuDstMaker(0,0, "", "/star/institutions/mit/tai/mudst_/st_physics_7156024_raw_1010001.MuDst.root", "", 1,"MuDst");
62 //
63 // StEmcADCtoEMaker *adc = new StEmcADCtoEMaker("Eread");
64 //
65 // StjTPC* tpc = new StjTPCMuDst(mudstMaker);
66 // CollectChargedTracksFromTPC* collTrack = new CollectChargedTracksFromTPC(tpc);
67 // StBemcTables* bemcTbl = new StBemcTables(true);
68 // StjBEMC *bemc = new StjBEMCMuDst(mudstMaker, bemcTbl);
69 // CollectEnergyDepositsFromBEMC* collBemc = new CollectEnergyDepositsFromBEMC(bemc);
70 // CollectEnergyDepositsFromEEMC* collEemc = new CollectEnergyDepositsFromEEMC(mudstMaker);
71 // StjTowerEnergyCorrectionForTracks* corr = new StjTowerEnergyCorrectionForTracks();
72 // StBET4pMakerImp *imp = new StBET4pMakerImp(collTrack, collBemc, collEemc, corr);
73 // imp->setUseEndcap(false);
74 // imp->setUseBEMC(false);
75 //
76 // chain->Init();
77 //
78 // for (Int_t i = 0; i < 20; ++i) {
79 // chain->Clear();
80 // imp->Clear(0);
81 //
82 // bemcTbl->loadTables((StMaker*)adc);
83 //
84 // int ret = chain->Make(i);
85 // if(ret == kStEOF) break;
86 //
87 // imp->Make();
88 // }
89 
90  // chain->Finish();
91 }