Go to the documentation of this file.00001 #include "DataFormats/CastorReco/interface/CastorTower.h"
00002
00003 using namespace reco;
00004
00005 CastorTower::CastorTower(const double energy, const ROOT::Math::XYZPoint& position, const double emEnergy, const double hadEnergy,
00006 const double fem, const double depth, const double fhot,
00007 const CastorCellRefVector& usedCells) : LeafCandidate(0,LorentzVector(math::PtEtaPhiMLorentzVector(energy*sin(position.theta()),position.eta(),position.phi(),0)),Point(0,0,0)) {
00008
00009 position_ = position;
00010 energy_ = energy;
00011 emEnergy_ = emEnergy;
00012 hadEnergy_ = hadEnergy;
00013 fem_ = fem;
00014 depth_ = depth;
00015 fhot_ = fhot;
00016 for(CastorCellRefVector::const_iterator cellit = usedCells.begin(); cellit != usedCells.end();++cellit) {
00017 usedCells_.push_back( (*cellit) );
00018 }
00019 }
00020
00021 CastorTower::~CastorTower() {
00022
00023 }