CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/DataFormats/CastorReco/src/CastorTower.cc

Go to the documentation of this file.
00001 #include "DataFormats/CastorReco/interface/CastorTower.h"
00002 
00003 
00004 reco::CastorTower::CastorTower(const double energy, const ROOT::Math::XYZPoint& position, const double emEnergy, const double hadEnergy,
00005                          const double fem, const double depth, const double fhot, 
00006                          const CastorRecHitRefs& usedRecHits) : 
00007                          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(CastorRecHitRefs::const_iterator rechitit  = usedRecHits.begin(); rechitit != usedRecHits.end();++rechitit) {
00017     usedRecHits_.push_back( (*rechitit) );
00018   }
00019 }
00020 
00021 reco::CastorTower::~CastorTower() {
00022 
00023 }