1 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
|
|
// $Id: FillerGlobalMuons.h,v 1.3 2008/06/18 19:17:21 loizides Exp $
|
3 |
|
|
//
|
4 |
|
|
// FillerPhotons
|
5 |
|
|
//
|
6 |
|
|
// Implementation of a filler to fill photons into our data structure. (Including converted photons.)
|
7 |
|
|
//
|
8 |
|
|
// Authors: J. Bendavid
|
9 |
|
|
//--------------------------------------------------------------------------------------------------
|
10 |
|
|
|
11 |
|
|
#ifndef TREEFILLER_FILLERPHOTONS_H
|
12 |
|
|
#define TREEFILLER_FILLERPHOTONS_H
|
13 |
|
|
|
14 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
15 |
|
|
#include "MitAna/DataUtil/interface/TreeWriter.h"
|
16 |
|
|
#include "DataFormats/Common/interface/Handle.h"
|
17 |
|
|
#include "MitAna/DataTree/interface/Collections.h"
|
18 |
|
|
#include "MitAna/DataTree/interface/Photon.h"
|
19 |
|
|
#include "MitAna/DataTree/interface/Conversion.h"
|
20 |
|
|
#include "DataFormats/EgammaCandidates/interface/Photon.h"
|
21 |
|
|
#include "DataFormats/EgammaCandidates/interface/PhotonFwd.h"
|
22 |
|
|
#include "MitAna/DataTree/interface/Array.h"
|
23 |
|
|
#include "MitProd/TreeService/interface/TreeService.h"
|
24 |
|
|
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
25 |
|
|
#include "MitProd/TreeFiller/interface/AssociationMap.h"
|
26 |
|
|
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
27 |
|
|
|
28 |
|
|
using namespace std;
|
29 |
|
|
using namespace mithep;
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
namespace mithep
|
34 |
|
|
{
|
35 |
|
|
class FillerPhotons : public BaseFiller
|
36 |
|
|
{
|
37 |
|
|
public:
|
38 |
|
|
FillerPhotons(const edm::ParameterSet&, bool active, const ConversionMap* conversionMap);
|
39 |
|
|
~FillerPhotons();
|
40 |
|
|
|
41 |
|
|
void BookDataBlock(TreeWriter &tws);
|
42 |
|
|
void FillDataBlock(const edm::Event&, const edm::EventSetup&);
|
43 |
|
|
|
44 |
|
|
private:
|
45 |
|
|
std::string edmName_;
|
46 |
|
|
std::string mitName_;
|
47 |
|
|
mithep::PhotonArr *photons_;
|
48 |
|
|
edm::Handle<reco::PhotonCollection> photonProduct_;
|
49 |
|
|
const mithep::ConversionMap* conversionMap_;
|
50 |
|
|
};
|
51 |
|
|
}
|
52 |
|
|
#endif
|