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 |
|
|
19 |
|
#include "DataFormats/GeometryVector/interface/GlobalPoint.h" |
20 |
|
|
21 |
|
#include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h" |
22 |
< |
#include "DataFormats/EgammaReco/interface/BasicClusterFwd.h" |
22 |
> |
#include "DataFormats/CaloRecHit/interface/CaloClusterFwd.h" |
23 |
> |
//#include "DataFormats/EgammaReco/interface/BasicClusterFwd.h" |
24 |
|
|
27 |
– |
#include "RecoEcal/EgammaCoreTools/interface/EcalClusterTools.h" |
28 |
– |
#include "RecoEcal/EgammaCoreTools/interface/EcalClusterLazyTools.h" |
25 |
|
#include "DataFormats/EgammaCandidates/interface/Photon.h" |
26 |
|
#include "DataFormats/EgammaCandidates/interface/PhotonFwd.h" |
27 |
+ |
#include "DataFormats/PatCandidates/interface/Photon.h" |
28 |
|
#include "DataFormats/EgammaReco/interface/SuperCluster.h" |
29 |
+ |
|
30 |
+ |
#include "RecoEcal/EgammaCoreTools/interface/EcalClusterTools.h" |
31 |
+ |
#include "RecoEcal/EgammaCoreTools/interface/EcalClusterLazyTools.h" |
32 |
|
#include "DataFormats/EgammaCandidates/interface/ConversionFwd.h" |
33 |
|
#include "DataFormats/EgammaCandidates/interface/Conversion.h" |
34 |
|
#include "RecoEgamma/EgammaTools/interface/ConversionLikelihoodCalculator.h" |
35 |
|
|
36 |
< |
#include "DataFormats/EgammaCandidates/interface/PhotonID.h" |
37 |
< |
#include "DataFormats/EgammaCandidates/interface/PhotonIDFwd.h" |
38 |
< |
#include "DataFormats/EgammaCandidates/interface/PhotonIDAssociation.h" |
36 |
> |
//#include "DataFormats/EgammaCandidates/interface/PhotonID.h" |
37 |
> |
//#include "DataFormats/EgammaCandidates/interface/PhotonIDFwd.h" |
38 |
> |
//#include "DataFormats/EgammaCandidates/interface/PhotonIDAssociation.h" |
39 |
|
|
40 |
|
#include "DataFormats/EgammaCandidates/interface/PhotonPi0DiscriminatorAssociation.h" |
41 |
|
|
50 |
|
#include "TClonesArray.h" |
51 |
|
|
52 |
|
|
53 |
< |
class PhotonAnalyzer{ |
54 |
< |
|
55 |
< |
public: |
56 |
< |
PhotonAnalyzer(const edm::ParameterSet& producersNames); |
57 |
< |
PhotonAnalyzer(const edm::ParameterSet& producersNames, int verbosity, bool doPhotonConversion, bool doVertexCorrection); |
58 |
< |
~PhotonAnalyzer(); |
59 |
< |
void SetVerbosity(int verbosity) {verbosity_ = verbosity; }; |
60 |
< |
void Process(const edm::Event& iEvent, const edm::EventSetup& iSetup, TRootEvent* rootEvent, TClonesArray* rootPhotons, string collectionName, TClonesArray* conversionTracks, ConversionLikelihoodCalculator* convLikelihoodCalculator, EcalClusterLazyTools& lazyTools); |
61 |
< |
|
62 |
< |
private: |
63 |
< |
int verbosity_; |
64 |
< |
int iconvtrack_; |
65 |
< |
bool doPhotonConversion_; |
66 |
< |
bool doVertexCorrection_; |
67 |
< |
edm::InputTag photonIDProducer_; |
68 |
< |
|
53 |
> |
class PhotonAnalyzer |
54 |
> |
{ |
55 |
> |
|
56 |
> |
public: |
57 |
> |
PhotonAnalyzer(const edm::ParameterSet& producersNames, const edm::ParameterSet& myConfig, int verbosity); |
58 |
> |
~PhotonAnalyzer(); |
59 |
> |
void setVerbosity(int verbosity) {verbosity_ = verbosity; }; |
60 |
> |
bool process(const edm::Event& iEvent, const edm::EventSetup& iSetup, TRootEvent* rootEvent, TClonesArray* rootPhotons, TClonesArray* conversionTracks, ConversionLikelihoodCalculator* convLikelihoodCalculator, EcalClusterLazyTools* lazyTools); |
61 |
> |
|
62 |
> |
private: |
63 |
> |
int verbosity_; |
64 |
> |
int iconvtrack_; |
65 |
> |
std::string dataType_ ; |
66 |
> |
edm::InputTag photonProducer_; |
67 |
> |
bool doPhotonConversion_; |
68 |
> |
bool doVertexCorrection_; |
69 |
> |
bool useMC_; |
70 |
> |
bool allowMissingCollection_; |
71 |
> |
|
72 |
|
}; |
73 |
|
|
74 |
|
#endif |