1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: FillerStableParts.h,v 1.11 2009/07/20 03:19:24 loizides Exp $
|
3 |
//
|
4 |
// FillerStableParts
|
5 |
//
|
6 |
// Implementation of a filler to copy the mitedm::StablePart collection into the
|
7 |
// mithep::StableParticle collection.
|
8 |
//
|
9 |
// Authors: C.Paus
|
10 |
//--------------------------------------------------------------------------------------------------
|
11 |
|
12 |
#ifndef MITPROD_TREEFILLER_FILLERSTABLEPARTS_H
|
13 |
#define MITPROD_TREEFILLER_FILLERSTABLEPARTS_H
|
14 |
|
15 |
#include "MitAna/DataTree/interface/StableParticleFwd.h"
|
16 |
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
17 |
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
18 |
|
19 |
namespace mithep
|
20 |
{
|
21 |
class FillerStableParts : public BaseFiller
|
22 |
{
|
23 |
public:
|
24 |
FillerStableParts(const edm::ParameterSet &cfg, const char *name, bool active=1);
|
25 |
~FillerStableParts();
|
26 |
|
27 |
void BookDataBlock(TreeWriter &tws,
|
28 |
const edm::EventSetup &es);
|
29 |
void FillDataBlock(const edm::Event &e,
|
30 |
const edm::EventSetup &es);
|
31 |
private:
|
32 |
mithep::Track *GetMitTrack(const mitedm::TrackPtr &ptr) const;
|
33 |
|
34 |
std::string edmName_; //edm name of stable parts collection
|
35 |
std::string mitName_; //mit name of StableParticles
|
36 |
std::vector<std::string> trackMapNames_; //name of import maps wrt tracks
|
37 |
std::string basePartMapName_; //name of export map wrt stable parts
|
38 |
std::string trackPartMapName_; //name of export map wrt track-stable
|
39 |
std::vector<const mithep::TrackMap*> trackMaps_; //imported maps wrt tracks
|
40 |
mithep::StableParticleArr *stables_; //array of StableParticles
|
41 |
mithep::BasePartMap *basePartMap_; //map wrt stable parts
|
42 |
mithep::TrackPartMap *trackPartMap_; //track map wrt stable parts
|
43 |
};
|
44 |
}
|
45 |
#endif
|