1 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.13 |
// $Id: FillerConversions.h,v 1.12 2009/07/20 03:19:24 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 |
loizides |
1.6 |
#ifndef MITPROD_TREEFILLER_FILLERCONVERSIONS_H
|
13 |
|
|
#define MITPROD_TREEFILLER_FILLERCONVERSIONS_H
|
14 |
bendavid |
1.1 |
|
15 |
loizides |
1.10 |
#include "MitAna/DataTree/interface/ConversionFwd.h"
|
16 |
|
|
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
17 |
bendavid |
1.1 |
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
18 |
|
|
|
19 |
|
|
namespace mithep
|
20 |
|
|
{
|
21 |
|
|
class FillerConversions : public BaseFiller
|
22 |
|
|
{
|
23 |
|
|
public:
|
24 |
loizides |
1.7 |
FillerConversions(const edm::ParameterSet &cfg, const char *name, bool active=1);
|
25 |
bendavid |
1.1 |
~FillerConversions();
|
26 |
|
|
|
27 |
loizides |
1.13 |
void BookDataBlock(TreeWriter &tws,
|
28 |
|
|
const edm::EventSetup &es);
|
29 |
loizides |
1.12 |
void FillDataBlock(const edm::Event &e,
|
30 |
|
|
const edm::EventSetup &es);
|
31 |
bendavid |
1.1 |
|
32 |
|
|
private:
|
33 |
loizides |
1.12 |
mithep::Particle *GetMitParticle(edm::Ptr<reco::Track> ptr) const;
|
34 |
bendavid |
1.11 |
|
35 |
loizides |
1.12 |
std::string edmName_; //name of edm conversions
|
36 |
|
|
std::string mitName_; //mit name of Conversions
|
37 |
|
|
std::string convElectronMapName_; //name of imported electrons map
|
38 |
|
|
std::vector<std::string> stablePartMapNames_; //name imp maps wrt stable parts
|
39 |
|
|
std::string conversionMapName_; //name of exported conv map
|
40 |
|
|
std::vector<const mithep::TrackPartMap*> stablePartMaps_; //maps wrt stable parts
|
41 |
|
|
mithep::ConversionArr *conversions_; //array of Conversions
|
42 |
|
|
mithep::ConversionMap *conversionMap_; //exported map wrt Conversions
|
43 |
bendavid |
1.1 |
};
|
44 |
|
|
}
|
45 |
|
|
#endif
|