2 #include "StjFMSMuDst.h"
5 #include "StMuDSTMaker/COMMON/StMuDst.h"
6 #include "StMuDSTMaker/COMMON/StMuEvent.h"
7 #include "StMuDSTMaker/COMMON/StMuEmcCollection.h"
10 #include "StMuDSTMaker/COMMON/StMuFmsCollection.h"
11 #include "StMuDSTMaker/COMMON/StMuFmsHit.h"
12 #include "StMuDSTMaker/COMMON/StMuDst.h"
14 #include "StFmsDbMaker/StFmsDbMaker.h"
15 #include "StEventTypes.h"
16 #include "StEvent/StEvent.h"
17 #include "StEvent/StFmsCollection.h"
18 #include "StEvent/StFmsHit.h"
19 #include "StEvent/StFmsPoint.h"
20 #include "StEvent/StFmsPointPair.h"
21 #include "StMuDSTMaker/COMMON/StMuTypes.hh"
28 StjFMSMuDst::StjFMSMuDst() : mFmsDbMaker((
StFmsDbMaker*)
StMaker::GetChain()->GetDataSet(
"fmsDb"))
36 void StjFMSMuDst::Init()
48 StjTowerEnergyList StjFMSMuDst::getEnergyList()
50 StjTowerEnergyList fmsEnergyList;
52 mFmsColl = findFmsCollection();
55 int npoint=mFmsColl->numberOfPoints();
56 StSPtrVecFmsPoint& points = mFmsColl->points();
58 for(
int i=0; i<npoint; i++) {
59 float x=points[i]->XYZ().x();
60 float y=points[i]->XYZ().y();
65 energyDeposit.towerR = TMath::Sqrt(x*x + y*y);
66 energyDeposit.towerEta = v1.pseudoRapidity();
67 energyDeposit.towerPhi = v1.phi();
68 energyDeposit.vertexX = 0;
69 energyDeposit.vertexY = 0;
70 energyDeposit.vertexZ = 0;
71 energyDeposit.energy = points[i]->energy();
72 energyDeposit.adc = points[i]->energy();
73 energyDeposit.pedestal = 0;
74 energyDeposit.rms = 0;
75 energyDeposit.status = 1;
76 energyDeposit.towerId = points[i]->id();
77 energyDeposit.detectorId = 100 + points[i]->detectorId() ;
79 if(points[i]->energy()>1) fmsEnergyList.push_back(energyDeposit);
89 StEvent*
event =
dynamic_cast<StEvent*
>(StMaker::GetChain()->GetInputDS(
"StEvent"));
static StFmsCollection * fmsCollection()
returns pointer to current StFmsCollection