Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:50

0001 #include "DataFormats/CastorReco/interface/CastorTower.h"
0002 
0003 reco::CastorTower::CastorTower(const double energy,
0004                                const ROOT::Math::XYZPoint& position,
0005                                const double emEnergy,
0006                                const double hadEnergy,
0007                                const double fem,
0008                                const double depth,
0009                                const double fhot,
0010                                const CastorRecHitRefs& usedRecHits)
0011     : LeafCandidate(0,
0012                     LorentzVector(math::PtEtaPhiMLorentzVector(
0013                         energy * sin(position.theta()), position.eta(), position.phi(), 0)),
0014                     Point(0, 0, 0)) {
0015   position_ = position;
0016   energy_ = energy;
0017   emEnergy_ = emEnergy;
0018   hadEnergy_ = hadEnergy;
0019   fem_ = fem;
0020   depth_ = depth;
0021   fhot_ = fhot;
0022   for (CastorRecHitRefs::const_iterator rechitit = usedRecHits.begin(); rechitit != usedRecHits.end(); ++rechitit) {
0023     usedRecHits_.push_back((*rechitit));
0024   }
0025 }
0026 
0027 reco::CastorTower::~CastorTower() {}