CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorTower.cc
Go to the documentation of this file.
2 
3 
4 reco::CastorTower::CastorTower(const double energy, const ROOT::Math::XYZPoint& position, const double emEnergy, const double hadEnergy,
5  const double fem, const double depth, const double fhot,
6  const CastorRecHitRefs& usedRecHits) :
7  LeafCandidate(0,LorentzVector(math::PtEtaPhiMLorentzVector(energy*sin(position.theta()),position.eta(),position.phi(),0)),Point(0,0,0)) {
8 
10  energy_ = energy;
13  fem_ = fem;
14  depth_ = depth;
15  fhot_ = fhot;
16  for(CastorRecHitRefs::const_iterator rechitit = usedRecHits.begin(); rechitit != usedRecHits.end();++rechitit) {
17  usedRecHits_.push_back( (*rechitit) );
18  }
19 }
20 
22 
23 }
double emEnergy() const
tower em energy
Definition: CastorTower.h:48
double emEnergy_
tower em energy
Definition: CastorTower.h:107
virtual ~CastorTower()
destructor
Definition: CastorTower.cc:21
double depth_
tower depth
Definition: CastorTower.h:116
double energy_
tower energy
Definition: CastorTower.h:101
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
Geom::Theta< T > theta() const
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:255
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:250
CastorRecHitRefs usedRecHits_
references to CastorRecHit constituents
Definition: CastorTower.h:122
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:25
virtual double energy() const
energy
double fem_
tower em/tot Ratio
Definition: CastorTower.h:113
double fem() const
tower em/tot ratio
Definition: CastorTower.h:54
double fhot_
tower hotcell/tot ratio
Definition: CastorTower.h:119
ROOT::Math::XYZPoint position_
tower centroid position
Definition: CastorTower.h:104
ROOT::Math::XYZPoint position() const
tower centroid position
Definition: CastorTower.h:45
double fhot() const
tower hotcell/tot ratio
Definition: CastorTower.h:60
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
Geom::Phi< T > phi() const
double depth() const
tower depth in z
Definition: CastorTower.h:57
double hadEnergy_
tower had energy
Definition: CastorTower.h:110
double hadEnergy() const
tower had energy
Definition: CastorTower.h:51
static int position[264][3]
Definition: ReadPGInfo.cc:509
Transform3DPJ::Point XYZPoint
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:62
math::XYZPoint Point
point in the space
Definition: Candidate.h:41