11 void StEEmcHit_t::setNumUsedTowers( UInt_t n ){
13 mUsedTowerWeights.Set( n );
16 void StEEmcHit_t::addUsedTower( Int_t localIndex, Short_t towIndex, Float_t weight ){
17 if( localIndex <=
mUsedTowerIndices.GetSize() && localIndex <= mUsedTowerWeights.GetSize() && localIndex > -1 ){
19 mUsedTowerWeights[ localIndex ] = weight;
23 void StEEmcHit_t::setUsedTowers( std::vector< Short_t >& usedIndices, std::vector< Float_t >& weights ){
24 UInt_t n = usedIndices.size();
25 UInt_t n2 = weights.size();
32 mUsedTowerWeights.Set( n );
35 for( UInt_t i = 0; i<n; ++i ){
37 mUsedTowerWeights[ i ] = weights[i];
42 std::ostream &operator<<( std::ostream &out,
const StEEmcHit_t &
hit ){
43 out << *static_cast< const StSimpleHit_t* >( &hit ) <<
", sec = ";
44 out << hit.getSector() <<
", u ";
45 out << hit.getClusIDu() <<
' ';
46 out << hit.getEnergyU() <<
' ';
47 out << hit.getWeightU() <<
", v ";
48 out << hit.getClusIDv() <<
' ';
49 out << hit.getEnergyV() <<
' ';
50 out << hit.getWeightV() <<
", tow ";
51 out << hit.getTowerIdx() <<
", ttest ";
52 out << hit.getTtest2();
TArrayS mUsedTowerIndices
just a flag whether to keep in vector