1 #include "StEEmcMixTreeMaker.h"
2 #include "StEEmcA2EMaker.h"
3 #include "StEEmcPointMaker.h"
5 #include "StMuDSTMaker/COMMON/StMuDstMaker.h"
6 #include "StMuDSTMaker/COMMON/StMuDst.h"
7 #include "StMuDSTMaker/COMMON/StMuEvent.h"
12 StEEmcMixTreeMaker::StEEmcMixTreeMaker(
const Char_t *n):
StEEmcMixMaker(n)
23 if ( !mFilename.Contains(
"NONE") )
24 mFile =
new TFile(mFilename,
"recreate");
26 mTree=
new TTree(
"mTree",
"Real events");
27 mTree->Branch(
"mPi0event",
"StEEmcMixEvent",&mMixEvent);
40 if ( stat !=
kStOK )
return stat;
44 mMixEvent -> setEvent(
mMuDstMaker -> muDst() -> event() );
48 for ( UInt_t i = 0; i <
mPoints.size(); i++ )
49 mMixEvent -> addPoint (
mPoints[i] );
76 mMixEvent->setLeadingPair(tmp);
91 for ( UInt_t i=0; i < towers.size(); i++ )
95 etotal+= towers[i].energy();
96 if ( towers[i].energy() > emax ) {
97 emax=towers[i].energy();
101 mMixEvent->setTotalEnergy(etotal);
105 mMixEvent->setHighTower( towers[imax] );
110 mMixEvent -> setHighTower( tmp );
125 mMixEvent ->
Clear();
void Clear(Option_t *opts="")
Clear.
Float_t energySeen()
Total energy seen by the algorithm.
void Clear(Option_t *opts="")
Clear.
StEEmcTowerVec_t & towers(Int_t layer=0)
StEEmcPointMaker * mEEpoints
Pointer to points.
Base class for representing tower, preshower and postshower elements.
StMuDstMaker * mMuDstMaker
Pointer to MuDst.
A class for mixing pi0 candidates.
StEEmcPairVec_t mBackground
Background pairs mixed on each event.
StEEmcPairVec_t mCandidates
Point pairs mixed on each event.
A class to represent pairs of points.
StEEmcA2EMaker * mEEanalysis
Pointer to ADC 2 energy.
StEEmcPointVec_t mPoints
Vector of points to mix into X–>gamma gamma.