12 embeddedSuperCluster_(
false),
13 embeddedSeedCluster_(
false),
14 embeddedRecHits_(
false),
15 passElectronVeto_(
false),
31 maxDRRawEnergy_(-999.),
49 embeddedSuperCluster_(
false),
50 embeddedSeedCluster_(
false),
51 embeddedRecHits_(
false),
52 passElectronVeto_(
false),
68 maxDRRawEnergy_(-999.),
86 embeddedSuperCluster_(
false),
87 embeddedSeedCluster_(
false),
88 embeddedRecHits_(
false),
89 passElectronVeto_(
false),
105 maxDRRawEnergy_(-999.),
106 subClusRawE1_(-999.),
107 subClusRawE2_(-999.),
108 subClusRawE3_(-999.),
109 subClusDPhi1_(-999.),
110 subClusDPhi2_(-999.),
111 subClusDPhi3_(-999.),
112 subClusDEta1_(-999.),
113 subClusDEta2_(-999.),
114 subClusDEta3_(-999.),
123 embeddedSuperCluster_(
false),
124 embeddedSeedCluster_(
false),
125 embeddedRecHits_(
false),
126 passElectronVeto_(
false),
127 hasPixelSeed_(
false),
142 maxDRRawEnergy_(-999.),
143 subClusRawE1_(-999.),
144 subClusRawE2_(-999.),
145 subClusRawE3_(-999.),
146 subClusDPhi1_(-999.),
147 subClusDPhi2_(-999.),
148 subClusDPhi3_(-999.),
149 subClusDEta1_(-999.),
150 subClusDEta2_(-999.),
151 subClusDEta3_(-999.),
164 out <<
"\tpat::Photon: ";
165 out << std::setiosflags(std::ios::right);
167 out << std::setprecision(3);
168 out <<
" E/pT/eta/phi " <<
obj.energy() <<
"/" <<
obj.pt() <<
"/" <<
obj.eta() <<
"/" <<
obj.phi();
175 if (embeddedSuperCluster_) {
176 if (embeddedSeedCluster_ || !basicClusters_.empty() || !preshowerClusters_.empty()) {
177 if (!superClusterRelinked_.isSet()) {
178 std::unique_ptr<std::vector<reco::SuperCluster> > sc(
new std::vector<reco::SuperCluster>(superCluster_));
179 if (embeddedSeedCluster_ && !(*sc)[0].
seed().isAvailable()) {
180 (*sc)[0].setSeed(
seed());
182 if (!basicClusters_.empty() && !(*sc)[0].clusters().isAvailable()) {
184 for (
unsigned int iclus = 0; iclus < basicClusters_.size(); ++iclus) {
189 if (!preshowerClusters_.empty() && !(*sc)[0].preshowerClusters().isAvailable()) {
191 for (
unsigned int iclus = 0; iclus < preshowerClusters_.size(); ++iclus) {
194 (*sc)[0].setPreshowerClusters(
clusters);
196 superClusterRelinked_.set(
std::move(sc));
209 if (embeddedSeedCluster_) {
218 superCluster_.clear();
221 embeddedSuperCluster_ =
true;
227 seedCluster_.clear();
230 embeddedSeedCluster_ =
true;
236 basicClusters_.clear();
240 for (; itscl != itsclE; ++itscl) {
241 basicClusters_.push_back(**itscl);
248 preshowerClusters_.clear();
252 for (; itscl != itsclE; ++itscl) {
253 preshowerClusters_.push_back(**itscl);
262 embeddedRecHits_ =
true;
268 for (std::vector<IdPair>::const_iterator
it = photonIDs_.begin(), ed = photonIDs_.end();
it != ed; ++
it) {
273 ex <<
"pat::Photon: the ID " <<
name <<
" can't be found in this pat::Photon.\n";
274 ex <<
"The available IDs are: ";
275 for (std::vector<IdPair>::const_iterator
it = photonIDs_.begin(), ed = photonIDs_.end();
it != ed; ++
it) {
276 ex <<
"'" <<
it->first <<
"' ";
283 for (std::vector<IdPair>::const_iterator
it = photonIDs_.begin(), ed = photonIDs_.end();
it != ed; ++
it) {
292 for (uint16_t
idx : associatedPackedFCandidateIndices_) {
301 if (
i >= associatedPackedFCandidateIndices_.size()) {
Analysis-level Photon class.
Ptr< typename C::value_type > refToPtr(Ref< C, typename C::value_type, refhelper::FindUsingAdvance< C, typename C::value_type > > const &ref)
embedPreshowerClusters
embed in AOD externally stored the electron's basic clusters
ret
prodAgent to be discontinued
embedRecHits
embed in AOD externally stored track (note: gsf electrons don't have a track)
CandidatePtr sourceCandidatePtr(size_type i) const override
edm::Ptr< CaloCluster > CaloClusterPtr
edm::Ref< SuperClusterCollection > SuperClusterRef
reference to an object in a collection of SuperCluster objects
Photon()
default constructor
embedBasicClusters
embed in AOD externally stored the electron's seedcluster
std::ostream & operator<<(std::ostream &, BeamSpot beam)
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
~Photon() override
destructor
embedSeedCluster
embed in AOD externally stored supercluster
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
embedSuperCluster
embed in AOD externally stored gsf track