1 |
mlethuil |
1.1 |
#ifndef PhotonAnalyzer_h
|
2 |
|
|
#define PhotonAnalyzer_h
|
3 |
|
|
|
4 |
|
|
// system include files
|
5 |
|
|
#include <memory>
|
6 |
|
|
#include <string>
|
7 |
|
|
#include <iostream>
|
8 |
|
|
|
9 |
|
|
// user include files
|
10 |
|
|
#include "FWCore/Framework/interface/Frameworkfwd.h"
|
11 |
|
|
#include "FWCore/Framework/interface/EDAnalyzer.h"
|
12 |
|
|
#include "FWCore/Framework/interface/Event.h"
|
13 |
|
|
#include "FWCore/Framework/interface/MakerMacros.h"
|
14 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
15 |
|
|
#include "FWCore/Framework/interface/ESHandle.h"
|
16 |
lethuill |
1.2 |
|
17 |
|
|
#include "Geometry/CaloGeometry/interface/CaloGeometry.h"
|
18 |
|
|
#include "Geometry/CaloTopology/interface/CaloTopology.h"
|
19 |
|
|
#include "Geometry/CaloEventSetup/interface/CaloTopologyRecord.h"
|
20 |
|
|
|
21 |
|
|
#include "DataFormats/GeometryVector/interface/GlobalVector.h"
|
22 |
|
|
#include "DataFormats/GeometryVector/interface/GlobalPoint.h"
|
23 |
|
|
|
24 |
|
|
#include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
|
25 |
|
|
#include "DataFormats/EgammaReco/interface/BasicClusterFwd.h"
|
26 |
|
|
|
27 |
|
|
#include "RecoEcal/EgammaCoreTools/interface/EcalClusterTools.h"
|
28 |
|
|
#include "RecoEcal/EgammaCoreTools/interface/EcalClusterLazyTools.h"
|
29 |
mlethuil |
1.1 |
#include "DataFormats/EgammaCandidates/interface/Photon.h"
|
30 |
lethuill |
1.2 |
#include "DataFormats/EgammaCandidates/interface/PhotonFwd.h"
|
31 |
mlethuil |
1.1 |
#include "DataFormats/EgammaReco/interface/SuperCluster.h"
|
32 |
lethuill |
1.2 |
#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"
|
39 |
|
|
|
40 |
|
|
#include "DataFormats/EgammaCandidates/interface/PhotonPi0DiscriminatorAssociation.h"
|
41 |
|
|
|
42 |
|
|
#include "DataFormats/VertexReco/interface/Vertex.h"
|
43 |
|
|
#include "DataFormats/TrackReco/interface/Track.h"
|
44 |
|
|
#include "DataFormats/TrackReco/interface/HitPattern.h"
|
45 |
mlethuil |
1.1 |
|
46 |
lethuill |
1.3 |
#include "../interface/TRootEvent.h"
|
47 |
|
|
#include "../interface/TRootPhoton.h"
|
48 |
|
|
#include "../interface/TRootTrack.h"
|
49 |
mlethuil |
1.1 |
|
50 |
|
|
#include "TClonesArray.h"
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
class PhotonAnalyzer{
|
54 |
|
|
|
55 |
|
|
public:
|
56 |
lethuill |
1.2 |
PhotonAnalyzer(const edm::ParameterSet& producersNames);
|
57 |
lethuill |
1.5 |
//PhotonAnalyzer(const edm::ParameterSet& producersNames, const edm::ParameterSet& myConfig, int verbosity, bool doPhotonConversion, bool doVertexCorrection);
|
58 |
|
|
PhotonAnalyzer(const edm::ParameterSet& producersNames, const edm::ParameterSet& myConfig, int verbosity);
|
59 |
|
|
~PhotonAnalyzer();
|
60 |
lethuill |
1.2 |
void SetVerbosity(int verbosity) {verbosity_ = verbosity; };
|
61 |
|
|
void Process(const edm::Event& iEvent, const edm::EventSetup& iSetup, TRootEvent* rootEvent, TClonesArray* rootPhotons, string collectionName, TClonesArray* conversionTracks, ConversionLikelihoodCalculator* convLikelihoodCalculator, EcalClusterLazyTools& lazyTools);
|
62 |
mlethuil |
1.1 |
|
63 |
|
|
private:
|
64 |
lethuill |
1.2 |
int verbosity_;
|
65 |
|
|
int iconvtrack_;
|
66 |
lethuill |
1.4 |
std::string dataType_ ;
|
67 |
lethuill |
1.2 |
bool doPhotonConversion_;
|
68 |
|
|
bool doVertexCorrection_;
|
69 |
|
|
edm::InputTag photonIDProducer_;
|
70 |
lethuill |
1.4 |
bool useMC_;
|
71 |
mlethuil |
1.1 |
};
|
72 |
|
|
|
73 |
|
|
#endif
|