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 {
18  const reco::SuperCluster& sc = *scRef;
19  math::XYZPoint v(0, 0, 0); // this should be taken from something else...
20  math::XYZVector p = sc.energy() * (sc.position() - v).unit();
21  double t = sqrt(massSqr_ + p.mag2());
22  c.setCharge(0);
23  c.setVertex(v);
24  c.setP4(reco::Candidate::LorentzVector(p.x(), p.y(), p.z(), t));
25  c.setSuperCluster(scRef);
26  c.setPdgId(particle_.pdgId());
27  }
28  };
29 
30  namespace helper {
31  template <>
32  struct CandConverter<reco::SuperCluster> {
34  };
35  } // namespace helper
36 } // namespace converter
37 
38 #endif
converter::MassiveCandidateConverter
Definition: MassiveCandidateConverter.h:15
PdtEntry::pdgId
int pdgId() const
PDG id.
Definition: PdtEntry.cc:5
converter::SuperClusterToCandidate::Candidate
reco::RecoEcalCandidate Candidate
Definition: SuperClusterToCandidate.h:14
converter::SuperClusterToCandidate::Components
reco::SuperClusterCollection Components
Definition: SuperClusterToCandidate.h:13
converter::SuperClusterToCandidate::SuperClusterToCandidate
SuperClusterToCandidate(const edm::ParameterSet &cfg, edm::ConsumesCollector iC)
Definition: SuperClusterToCandidate.h:15
reco::SuperCluster
Definition: SuperCluster.h:18
converter
Definition: CandidateProducer.h:25
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
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:33
MassiveCandidateConverter.h
edm::ParameterSet
Definition: ParameterSet.h:47
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
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:17
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:296
RecoEcalCandidate.h
SuperCluster.h
converter::SuperClusterToCandidate::value_type
reco::SuperCluster value_type
Definition: SuperClusterToCandidate.h:12
converter::MassiveCandidateConverter::massSqr_
double massSqr_
Definition: MassiveCandidateConverter.h:20
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:56
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:21
edm::ConsumesCollector
Definition: ConsumesCollector.h:45