1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: FillerGlobalMuons.h,v 1.3 2008/06/18 19:17:21 loizides Exp $
|
3 |
//
|
4 |
// FillerConversionElectrons
|
5 |
//
|
6 |
// Implementation of a filler create mithep::Electron objects from the conversion finder tracks.
|
7 |
// This filler differs significantly from the others to deal with the special way in which
|
8 |
// conversions are stored in the edm.
|
9 |
//
|
10 |
// Authors: J. Bendavid
|
11 |
//--------------------------------------------------------------------------------------------------
|
12 |
|
13 |
#ifndef TREEFILLER_FILLERCONVERSIONELECTRONS_H
|
14 |
#define TREEFILLER_FILLERCONVERSIONELECTRONS_H
|
15 |
|
16 |
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
17 |
#include "MitAna/DataUtil/interface/TreeWriter.h"
|
18 |
#include "DataFormats/Common/interface/Handle.h"
|
19 |
#include "MitAna/DataTree/interface/Track.h"
|
20 |
#include "MitAna/DataTree/interface/Electron.h"
|
21 |
#include "DataFormats/TrackReco/interface/Track.h"
|
22 |
#include "DataFormats/TrackReco/interface/TrackFwd.h"
|
23 |
#include "MitAna/DataTree/interface/Array.h"
|
24 |
#include "MitAna/DataTree/interface/Collections.h"
|
25 |
#include "MitProd/TreeService/interface/TreeService.h"
|
26 |
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
27 |
#include "MitProd/TreeFiller/interface/AssociationMap.h"
|
28 |
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
29 |
|
30 |
using namespace std;
|
31 |
using namespace mithep;
|
32 |
|
33 |
|
34 |
|
35 |
namespace mithep
|
36 |
{
|
37 |
class FillerConversionElectrons : public BaseFiller
|
38 |
{
|
39 |
public:
|
40 |
FillerConversionElectrons(const edm::ParameterSet&, bool active, const mithep::TrackCol* conversionInOutTracks, const mithep::TrackCol* conversionOutInTracks, const mithep::TrackMap* conversionInOutTrackMap, const mithep::TrackMap* conversionOutInTrackMap);
|
41 |
~FillerConversionElectrons();
|
42 |
|
43 |
void BookDataBlock(TreeWriter &tws);
|
44 |
void FillDataBlock(const edm::Event&, const edm::EventSetup&);
|
45 |
void FillFromTracks(const mithep::TrackCol* tracks, const TrackMap* trackMap);
|
46 |
|
47 |
const ConversionElectronMap* GetConversionElectronMap() { return convElectronMap_; }
|
48 |
|
49 |
private:
|
50 |
std::string mitName_;
|
51 |
mithep::ElectronArr *conversionElectrons_;
|
52 |
mithep::ConversionElectronMap* convElectronMap_;
|
53 |
const mithep::TrackCol* conversionInOutTracks_;
|
54 |
const mithep::TrackCol* conversionOutInTracks_;
|
55 |
const mithep::TrackMap* conversionInOutTrackMap_;
|
56 |
const mithep::TrackMap* conversionOutInTrackMap_;
|
57 |
|
58 |
};
|
59 |
}
|
60 |
#endif
|