CMS 3D CMS Logo

SuperClusterToCandidate.h
Go to the documentation of this file.
1 #ifndef RecoAlgos_SuperClusterToCandidate_h
2 #define RecoAlgos_SuperClusterToCandidate_h
9 
10 namespace converter {
17  const reco::SuperCluster& sc = *scRef;
18  math::XYZPoint v(0, 0, 0); // this should be taken from something else...
19  math::XYZVector p = sc.energy() * (sc.position() - v).unit();
20  double t = sqrt(massSqr_ + p.mag2());
21  c.setCharge(0);
22  c.setVertex(v);
23  c.setP4(reco::Candidate::LorentzVector(p.x(), p.y(), p.z(), t));
24  c.setSuperCluster(scRef);
25  c.setPdgId(particle_.pdgId());
26  }
27  };
28 
29  namespace helper {
30  template <>
31  struct CandConverter<reco::SuperCluster> {
33  };
34  } // namespace helper
35 } // namespace converter
36 
37 #endif
converter::MassiveCandidateConverter
Definition: MassiveCandidateConverter.h:12
PdtEntry::pdgId
int pdgId() const
PDG id.
Definition: PdtEntry.cc:7
converter::SuperClusterToCandidate::Candidate
reco::RecoEcalCandidate Candidate
Definition: SuperClusterToCandidate.h:14
converter::SuperClusterToCandidate::Components
reco::SuperClusterCollection Components
Definition: SuperClusterToCandidate.h:13
reco::SuperCluster
Definition: SuperCluster.h:18
converter
Definition: CandidateProducer.h:25
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
findQualityFiles.v
v
Definition: findQualityFiles.py:179
CandidateProducer.h
edm::Ref< SuperClusterCollection >
CandidateFwd.h
reco::SuperClusterCollection
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
Definition: SuperClusterFwd.h:9
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
converter::SuperClusterToCandidate
Definition: SuperClusterToCandidate.h:11
converter::helper::CandConverter< reco::SuperCluster >::type
SuperClusterToCandidate type
Definition: SuperClusterToCandidate.h:32
MassiveCandidateConverter.h
edm::ParameterSet
Definition: ParameterSet.h:47
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
helper
Definition: helper.py:1
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
converter::SuperClusterToCandidate::convert
void convert(reco::SuperClusterRef scRef, reco::RecoEcalCandidate &c) const
Definition: SuperClusterToCandidate.h:16
reco::CaloCluster::position
const math::XYZPoint & position() const
cluster centroid position
Definition: CaloCluster.h:154
unit
Basic3DVector unit() const
Definition: Basic3DVectorLD.h:162
looper.cfg
cfg
Definition: looper.py:297
converter::SuperClusterToCandidate::SuperClusterToCandidate
SuperClusterToCandidate(const edm::ParameterSet &cfg)
Definition: SuperClusterToCandidate.h:15
RecoEcalCandidate.h
SuperCluster.h
converter::SuperClusterToCandidate::value_type
reco::SuperCluster value_type
Definition: SuperClusterToCandidate.h:12
converter::MassiveCandidateConverter::massSqr_
double massSqr_
Definition: MassiveCandidateConverter.h:17
RecoEcalCandidateFwd.h
converter::helper::CandConverter
Definition: CandidateProducer.h:28
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
reco::RecoEcalCandidate
Definition: RecoEcalCandidate.h:15
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
reco::CaloCluster::energy
double energy() const
cluster energy
Definition: CaloCluster.h:149
converter::MassiveCandidateConverter::particle_
PdtEntry particle_
Definition: MassiveCandidateConverter.h:18