#ifdef USE_CDFEDM2 ////////////////////////////////////////////////////////////////////////// // // Component: PhysicsTower.cc // Purpose: This class represents a calorimeter tower whose energies // were calculated using a specific vertex. This class will // eventually inherit from the (yet to be coded) Clusterable // class. // // Created: 10/06/99 Pierre Savard // History: // ////////////////////////////////////////////////////////////////////////// #include #include "CalorObjects/PhysicsTower.hh" using namespace std; std::ostream& operator<<(std::ostream& os, const PhysicsTower& t) { os << std::endl; os << "PhysicsTower iEta = "<< t._iEta << " iPhi = "<< t._iPhi << '\n'; os << "eta = "<< t._totEta << " emEta = "<< t._emEta << " hadEta = "<< t._hadEta << '\n'; os << "emPhi = "<< t._emPhi << " hadPhi = "<< t._hadPhi << '\n'; os << "emEnergy = "<< t._emEnergy << " hadEnergy = "<< t._hadEnergy << '\n'; os << "emEt = "<< t._emEt << " hadEt = "<< t._hadEt << " totEt = "<< t._totEt << '\n'; os << "four momentum = " << t._fourMomentum << std::endl; return os; } PhysicsTower* PhysicsTower::clone() const{ return new PhysicsTower(*this); } void PhysicsTower::print() const { std::cout << *this;} #endif // USE_CDFEDM2