56 : theTrajectoryBuilder_(createBaseCkfTrajectoryBuilder(
68 consumes<edm::View<reco::CaloCluster> >(
config.getParameter<
edm::InputTag>(
"bcBarrelCollection"));
70 consumes<edm::View<reco::CaloCluster> >(
config.getParameter<
edm::InputTag>(
"bcEndcapCollection"));
73 consumes<edm::View<reco::CaloCluster> >(
config.getParameter<
edm::InputTag>(
"scHybridBarrelProducer"));
75 consumes<edm::View<reco::CaloCluster> >(
config.getParameter<
edm::InputTag>(
"scIslandEndcapProducer"));
86 consumes<EcalRecHitCollection>(
config.getParameter<
edm::InputTag>(
"barrelEcalRecHitCollection"));
88 consumes<EcalRecHitCollection>(
config.getParameter<
edm::InputTag>(
"endcapEcalRecHitCollection"));
105 const std::vector<std::string> flagnamesEB =
106 config.getParameter<std::vector<std::string> >(
"RecHitFlagToBeExcludedEB");
108 const std::vector<std::string> flagnamesEE =
109 config.getParameter<std::vector<std::string> >(
"RecHitFlagToBeExcludedEE");
111 flagsexclEB_ = StringToEnumValue<EcalRecHit::Flags>(flagnamesEB);
113 flagsexclEE_ = StringToEnumValue<EcalRecHit::Flags>(flagnamesEE);
115 const std::vector<std::string> severitynamesEB =
116 config.getParameter<std::vector<std::string> >(
"RecHitSeverityToBeExcludedEB");
118 severitiesexclEB_ = StringToEnumValue<EcalSeverityLevel::SeverityLevel>(severitynamesEB);
120 const std::vector<std::string> severitynamesEE =
121 config.getParameter<std::vector<std::string> >(
"RecHitSeverityToBeExcludedEE");
123 severitiesexclEE_ = StringToEnumValue<EcalSeverityLevel::SeverityLevel>(severitynamesEE);
171 auto outInTrackCandidate_p = std::make_unique<TrackCandidateCollection>();
173 auto inOutTrackCandidate_p = std::make_unique<TrackCandidateCollection>();
175 auto outInAssoc_p = std::make_unique<reco::TrackCandidateCaloClusterPtrAssociation>();
176 auto inOutAssoc_p = std::make_unique<reco::TrackCandidateCaloClusterPtrAssociation>();
179 bool validBarrelBCHandle =
true;
182 if (!bcBarrelHandle.
isValid()) {
183 edm::LogError(
"ConversionTrackCandidateProducer") <<
"Error! Can't get the Barrel Basic Clusters!";
184 validBarrelBCHandle =
false;
188 bool validEndcapBCHandle =
true;
191 if (!bcEndcapHandle.
isValid()) {
192 edm::LogError(
"CoonversionTrackCandidateProducer") <<
"Error! Can't get the Endcap Basic Clusters";
193 validEndcapBCHandle =
false;
197 bool validBarrelSCHandle =
true;
200 if (!scBarrelHandle.
isValid()) {
201 edm::LogError(
"CoonversionTrackCandidateProducer") <<
"Error! Can't get the barrel superclusters!";
202 validBarrelSCHandle =
false;
206 bool validEndcapSCHandle =
true;
209 if (!scEndcapHandle.
isValid()) {
210 edm::LogError(
"CoonversionTrackCandidateProducer") <<
"Error! Can't get the endcap superclusters!";
211 validEndcapSCHandle =
false;
235 if (validBarrelBCHandle && validBarrelSCHandle)
243 *outInTrackCandidate_p,
244 *inOutTrackCandidate_p,
248 if (validEndcapBCHandle && validEndcapSCHandle) {
257 *outInTrackCandidate_p,
258 *inOutTrackCandidate_p,
315 for (
auto const& aClus : scHandle->ptrs()) {
317 if (aClus->energy() / cosh(aClus->eta()) <=
minSCEt_)
319 if (aClus->eta() > 1.479 && aClus->eta() < 1.556)
324 double scEt = sc->
energy() / cosh(sc->
eta());
354 std::vector<Trajectory> theOutInTracks =
362 std::vector<Trajectory> theInOutTracks =
369 for (std::vector<Trajectory>::const_iterator it = theOutInTracks.begin(); it != theOutInTracks.end(); ++it) {
374 for (std::vector<Trajectory>::const_iterator it = theInOutTracks.begin(); it != theInOutTracks.end(); ++it) {