1 #include "StEEmcPointTreeMaker.h"
2 #include "StEEmcA2EMaker.h"
3 #include "StEEmcClusterMaker.h"
4 #include "StEEmcMixEvent.h"
9 StEEmcPointTreeMaker::StEEmcPointTreeMaker(
const Char_t *n):
StEEmcPointMaker(n)
20 if ( !mFilename.Contains(
"NONE") )
22 mFile =
new TFile(mFilename,
"recreate");
25 mTree=
new TTree(
"mTree",
"Point maker tree");
26 mTree->Branch(
"mEEmcPoints",
"StEEmcMixEvent",&mMixEvent);
35 if ( stat !=
kStOK )
return stat;
38 for ( UInt_t i = 0; i <
mPoints.size(); i++ )
39 mMixEvent -> addPoint (
mPoints[i] );
42 for ( Int_t sec=0; sec<12; sec++ )
43 for ( Int_t pln=0; pln<2; pln++ )
52 for ( UInt_t i=0; i < towers.size(); i++ )
55 etotal+= towers[i].energy();
57 mMixEvent->setTotalEnergy(etotal);
60 for ( Int_t i=0;i<12; i++ ) {
84 std::cout <<
"StEEmcPointTreeMaker::Finish()" << std::endl;
StEEmcA2EMaker * mEEanalysis
ADC2E.
StEEmcPointVec_t mPoints
All fully reconstructed points.
Int_t numberOfSmdClusters(Int_t sec, Int_t plane) const
Return number of smd clusters for a given sector, plane.
Float_t energySeen()
Total energy seen by the algorithm.
StEEmcTowerVec_t & towers(Int_t layer=0)
Int_t Make()
Build points for this event.
Class for building points from smd clusters.
Float_t energy(Int_t sector, Int_t layer) const
void Clear(Option_t *opts="")
Clear old points.
void Clear(Option_t *opts="")
Clear old points.
StEEmcSmdCluster & smdcluster(Int_t sec, Int_t plane, Int_t index)
return a specific cluster from a given sector, plane
StEEmcClusterMaker * mEEclusters
Clusters.
Int_t Make()
Build points for this event.