1 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.5 |
// $Id: FillerConversions.h,v 1.4 2008/07/08 12:38:20 loizides Exp $
|
3 |
bendavid |
1.1 |
//
|
4 |
|
|
// FillerConversions
|
5 |
|
|
//
|
6 |
loizides |
1.5 |
// Implementation of a filler creating mithep::Conversion objects from the reconstructed
|
7 |
|
|
// conversion electrons.
|
8 |
bendavid |
1.1 |
//
|
9 |
loizides |
1.4 |
// Authors: J.Bendavid
|
10 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
11 |
|
|
|
12 |
|
|
#ifndef TREEFILLER_FILLERCONVERSIONS_H
|
13 |
|
|
#define TREEFILLER_FILLERCONVERSIONS_H
|
14 |
|
|
|
15 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
16 |
|
|
#include "MitAna/DataUtil/interface/TreeWriter.h"
|
17 |
|
|
#include "DataFormats/TrackReco/interface/TrackFwd.h"
|
18 |
|
|
#include "MitAna/DataTree/interface/Collections.h"
|
19 |
|
|
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
20 |
|
|
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
21 |
|
|
|
22 |
|
|
namespace mithep
|
23 |
|
|
{
|
24 |
|
|
class FillerConversions : public BaseFiller
|
25 |
|
|
{
|
26 |
|
|
public:
|
27 |
loizides |
1.5 |
FillerConversions(const edm::ParameterSet &cfg, bool active=1);
|
28 |
bendavid |
1.1 |
~FillerConversions();
|
29 |
|
|
|
30 |
loizides |
1.2 |
void BookDataBlock(TreeWriter &tws);
|
31 |
|
|
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
|
32 |
bendavid |
1.1 |
|
33 |
|
|
private:
|
34 |
loizides |
1.5 |
std::string edmName_; //name of edm conversions
|
35 |
|
|
std::string mitName_; //name of Conversions in OAK
|
36 |
|
|
std::string convElectronMapName_; //name of imported electrons map
|
37 |
|
|
std::string conversionMapName_; //name of exported conv map
|
38 |
|
|
const mithep::ConversionElectronMap *convElectronMap_; //imported map wrt conv electrons
|
39 |
|
|
mithep::ConversionArr *conversions_; //array of Conversions
|
40 |
|
|
mithep::ConversionMap *conversionMap_; //exported map wrt Conversions
|
41 |
bendavid |
1.1 |
};
|
42 |
|
|
}
|
43 |
|
|
#endif
|