7 |
|
#include <iostream> |
8 |
|
|
9 |
|
// user include files |
10 |
– |
#include "FWCore/Framework/interface/Frameworkfwd.h" |
11 |
– |
#include "FWCore/Framework/interface/EDAnalyzer.h" |
10 |
|
#include "FWCore/Framework/interface/Event.h" |
13 |
– |
#include "FWCore/Framework/interface/MakerMacros.h" |
11 |
|
#include "FWCore/ParameterSet/interface/ParameterSet.h" |
12 |
|
#include "FWCore/Framework/interface/ESHandle.h" |
13 |
|
|
21 |
|
#include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h" |
22 |
|
#include "DataFormats/EgammaReco/interface/BasicClusterFwd.h" |
23 |
|
|
27 |
– |
#include "RecoEcal/EgammaCoreTools/interface/EcalClusterTools.h" |
28 |
– |
#include "RecoEcal/EgammaCoreTools/interface/EcalClusterLazyTools.h" |
24 |
|
#include "DataFormats/EgammaCandidates/interface/Photon.h" |
25 |
|
#include "DataFormats/EgammaCandidates/interface/PhotonFwd.h" |
26 |
+ |
#include "DataFormats/PatCandidates/interface/Photon.h" |
27 |
|
#include "DataFormats/EgammaReco/interface/SuperCluster.h" |
28 |
+ |
|
29 |
+ |
#include "RecoEcal/EgammaCoreTools/interface/EcalClusterTools.h" |
30 |
+ |
#include "RecoEcal/EgammaCoreTools/interface/EcalClusterLazyTools.h" |
31 |
|
#include "DataFormats/EgammaCandidates/interface/ConversionFwd.h" |
32 |
|
#include "DataFormats/EgammaCandidates/interface/Conversion.h" |
33 |
|
#include "RecoEgamma/EgammaTools/interface/ConversionLikelihoodCalculator.h" |
49 |
|
#include "TClonesArray.h" |
50 |
|
|
51 |
|
|
52 |
< |
class PhotonAnalyzer{ |
53 |
< |
|
54 |
< |
public: |
55 |
< |
PhotonAnalyzer(const edm::ParameterSet& producersNames); |
56 |
< |
PhotonAnalyzer(const edm::ParameterSet& producersNames, const edm::ParameterSet& myConfig, int verbosity, bool doPhotonConversion, bool doVertexCorrection); ~PhotonAnalyzer(); |
57 |
< |
void SetVerbosity(int verbosity) {verbosity_ = verbosity; }; |
58 |
< |
void Process(const edm::Event& iEvent, const edm::EventSetup& iSetup, TRootEvent* rootEvent, TClonesArray* rootPhotons, string collectionName, TClonesArray* conversionTracks, ConversionLikelihoodCalculator* convLikelihoodCalculator, EcalClusterLazyTools& lazyTools); |
59 |
< |
|
60 |
< |
private: |
61 |
< |
int verbosity_; |
62 |
< |
int iconvtrack_; |
63 |
< |
std::string dataType_ ; |
64 |
< |
bool doPhotonConversion_; |
65 |
< |
bool doVertexCorrection_; |
66 |
< |
edm::InputTag photonIDProducer_; |
67 |
< |
bool useMC_; |
52 |
> |
class PhotonAnalyzer |
53 |
> |
{ |
54 |
> |
|
55 |
> |
public: |
56 |
> |
PhotonAnalyzer(const edm::ParameterSet& producersNames, const edm::ParameterSet& myConfig, int verbosity); |
57 |
> |
~PhotonAnalyzer(); |
58 |
> |
void setVerbosity(int verbosity) {verbosity_ = verbosity; }; |
59 |
> |
bool process(const edm::Event& iEvent, const edm::EventSetup& iSetup, TRootEvent* rootEvent, TClonesArray* rootPhotons, TClonesArray* conversionTracks, ConversionLikelihoodCalculator* convLikelihoodCalculator, EcalClusterLazyTools* lazyTools); |
60 |
> |
|
61 |
> |
private: |
62 |
> |
int verbosity_; |
63 |
> |
int iconvtrack_; |
64 |
> |
std::string dataType_ ; |
65 |
> |
edm::InputTag photonProducer_; |
66 |
> |
edm::InputTag photonIDProducer_; |
67 |
> |
bool doPhotonConversion_; |
68 |
> |
bool doVertexCorrection_; |
69 |
> |
bool useMC_; |
70 |
> |
bool allowMissingCollection_; |
71 |
> |
|
72 |
|
}; |
73 |
|
|
74 |
|
#endif |