3 |
|
// |
4 |
|
// FillerConversionElectrons |
5 |
|
// |
6 |
< |
// Implementation of a filler create mithep::Electron objects from the conversion finder tracks. |
6 |
> |
// Implementation of a filler creating 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 |
10 |
> |
// Authors: J.Bendavid |
11 |
|
//-------------------------------------------------------------------------------------------------- |
12 |
|
|
13 |
< |
#ifndef TREEFILLER_FILLERCONVERSIONELECTRONS_H |
14 |
< |
#define TREEFILLER_FILLERCONVERSIONELECTRONS_H |
13 |
> |
#ifndef MITPROD_TREEFILLER_FILLERCONVERSIONELECTRONS_H |
14 |
> |
#define MITPROD_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" |
18 |
|
#include "DataFormats/TrackReco/interface/TrackFwd.h" |
23 |
– |
#include "MitAna/DataTree/interface/Array.h" |
19 |
|
#include "MitAna/DataTree/interface/Collections.h" |
25 |
– |
#include "MitProd/TreeService/interface/TreeService.h" |
20 |
|
#include "MitProd/TreeFiller/interface/BaseFiller.h" |
27 |
– |
#include "MitProd/TreeFiller/interface/AssociationMap.h" |
21 |
|
#include "MitProd/TreeFiller/interface/AssociationMaps.h" |
22 |
|
|
30 |
– |
using namespace std; |
31 |
– |
using namespace mithep; |
32 |
– |
|
33 |
– |
|
34 |
– |
|
23 |
|
namespace mithep |
24 |
|
{ |
25 |
|
class FillerConversionElectrons : public BaseFiller |
26 |
|
{ |
27 |
|
public: |
28 |
< |
FillerConversionElectrons(const edm::ParameterSet&, bool active, const mithep::TrackCol* conversionInOutTracks, const mithep::TrackCol* conversionOutInTracks, const mithep::TrackMap* conversionInOutTrackMap, const mithep::TrackMap* conversionOutInTrackMap); |
28 |
> |
FillerConversionElectrons(const edm::ParameterSet &cfg, const char *name, bool active=1); |
29 |
|
~FillerConversionElectrons(); |
30 |
|
|
31 |
< |
void BookDataBlock(TreeWriter &tws); |
32 |
< |
void FillDataBlock(const edm::Event&, const edm::EventSetup&); |
33 |
< |
void FillFromTracks(const mithep::TrackCol* tracks, const TrackMap* trackMap); |
34 |
< |
|
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_; |
31 |
> |
void BookDataBlock(TreeWriter &tws); |
32 |
> |
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es); |
33 |
> |
void FillFromTracks(const mithep::TrackCol *tracks, |
34 |
> |
const TrackMap *trackMap); |
35 |
|
|
36 |
+ |
private: |
37 |
+ |
std::string mitName_; //name of Electrons |
38 |
+ |
std::string convInOutTracksName_; //name of converted in-out track |
39 |
+ |
std::string convOutInTracksName_; //name of converted out- track |
40 |
+ |
std::string convInOutTrackMapName_; //name of imported map wrt in-out |
41 |
+ |
std::string convOutInTrackMapName_; //name of imported map wrt out-in |
42 |
+ |
std::string convElectronMapName_; //name of exported map wrt electrons |
43 |
+ |
const mithep::TrackCol *convInOutTracks_; //array of converted in-out tracks |
44 |
+ |
const mithep::TrackCol *convOutInTracks_; //array of converted out-in tracks |
45 |
+ |
const mithep::TrackMap *convInOutTrackMap_; //imported map wrt in-out tracks |
46 |
+ |
const mithep::TrackMap *convOutInTrackMap_; //imported map wrt out-in tracks |
47 |
+ |
mithep::ElectronArr *convElectrons_; //array of conversion electrons |
48 |
+ |
mithep::ConversionElectronMap *convElectronMap_; //exported map wrt electrons |
49 |
|
}; |
50 |
|
} |
51 |
|
#endif |