1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: FillerStableParts.h,v 1.3 2008/07/31 12:34:04 loizides Exp $
|
3 |
//
|
4 |
// FillerStableParts
|
5 |
//
|
6 |
// Imlementation 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 "MitProd/TreeFiller/interface/BaseFiller.h"
|
16 |
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
17 |
#include "MitAna/DataTree/interface/Collections.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 |
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
|
29 |
|
30 |
private:
|
31 |
std::string edmName_; //edm name of stable parts collection
|
32 |
std::string mitName_; //name of StableParticles in OAK
|
33 |
std::string trackMapName_; //name of imported map wrt tracks
|
34 |
std::string basePartMapName_; //name of exported map wrt stable parts
|
35 |
const mithep::TrackMap *trackMap_; //imported map wrt tracks
|
36 |
mithep::StableParticleArr *stables_; //array of StableParticles
|
37 |
mithep::BasePartMap *basePartMap_; //map wrt stable parts
|
38 |
};
|
39 |
}
|
40 |
#endif
|