1 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.5 |
// $Id: FillerConversionElectrons.h,v 1.4 2008/07/08 12:38:20 loizides Exp $
|
3 |
bendavid |
1.1 |
//
|
4 |
|
|
// FillerConversionElectrons
|
5 |
|
|
//
|
6 |
loizides |
1.2 |
// Implementation of a filler creating mithep::Electron objects from the conversion finder tracks.
|
7 |
bendavid |
1.1 |
// This filler differs significantly from the others to deal with the special way in which
|
8 |
|
|
// conversions are stored in the edm.
|
9 |
|
|
//
|
10 |
loizides |
1.4 |
// Authors: J.Bendavid
|
11 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
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/TrackReco/interface/TrackFwd.h"
|
19 |
|
|
#include "MitAna/DataTree/interface/Collections.h"
|
20 |
|
|
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
21 |
|
|
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
22 |
|
|
|
23 |
|
|
namespace mithep
|
24 |
|
|
{
|
25 |
|
|
class FillerConversionElectrons : public BaseFiller
|
26 |
|
|
{
|
27 |
|
|
public:
|
28 |
loizides |
1.5 |
FillerConversionElectrons(const edm::ParameterSet &cfg, bool active=1);
|
29 |
bendavid |
1.1 |
~FillerConversionElectrons();
|
30 |
|
|
|
31 |
loizides |
1.2 |
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 |
bendavid |
1.1 |
private:
|
36 |
loizides |
1.5 |
std::string mitName_; //name of Electrons in OAK
|
37 |
|
|
std::string convInOutTracksName_; //name of converted in-out track
|
38 |
|
|
std::string convOutInTracksName_; //name of converted out- track
|
39 |
|
|
std::string convInOutTrackMapName_; //name of imported map wrt in-out
|
40 |
|
|
std::string convOutInTrackMapName_; //name of imported map wrt out-in
|
41 |
|
|
std::string convElectronMapName_; //name of exported map wrt electrons
|
42 |
|
|
const mithep::TrackCol *convInOutTracks_; //array of converted in-out tracks
|
43 |
|
|
const mithep::TrackCol *convOutInTracks_; //array of converted out-in tracks
|
44 |
|
|
const mithep::TrackMap *convInOutTrackMap_; //imported map wrt in-out tracks
|
45 |
|
|
const mithep::TrackMap *convOutInTrackMap_; //imported map wrt out-in tracks
|
46 |
|
|
mithep::ElectronArr *convElectrons_; //array of conversion electrons
|
47 |
|
|
mithep::ConversionElectronMap *convElectronMap_; //exported map wrt electrons
|
48 |
bendavid |
1.1 |
};
|
49 |
|
|
}
|
50 |
|
|
#endif
|