1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: FillerDecayParts.h,v 1.8 2008/10/13 10:41:59 bendavid Exp $
|
3 |
//
|
4 |
// FillerDecayParts
|
5 |
//
|
6 |
// Imlementation of a filler to copy the mitedm::DecayPart collection into the
|
7 |
// mithep::DecayParticle collection.
|
8 |
//
|
9 |
// Authors: C.Paus
|
10 |
//--------------------------------------------------------------------------------------------------
|
11 |
|
12 |
#ifndef MITPROD_TREEFILLER_FILLERDECAYPARTS_H
|
13 |
#define MITPROD_TREEFILLER_FILLERDECAYPARTS_H
|
14 |
|
15 |
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
16 |
#include "MitProd/TreeFiller/interface/FillerTracks.h"
|
17 |
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
18 |
#include "MitProd/TreeFiller/interface/HitPatternReader.h"
|
19 |
#include "MitAna/DataTree/interface/Particle.h"
|
20 |
#include "MitAna/DataTree/interface/Collections.h"
|
21 |
#include "MitEdm/DataFormats/interface/BasePartFwd.h"
|
22 |
|
23 |
namespace mithep
|
24 |
{
|
25 |
class FillerDecayParts : public BaseFiller
|
26 |
{
|
27 |
public:
|
28 |
FillerDecayParts(const edm::ParameterSet &cfg, const char *name, bool active=1);
|
29 |
~FillerDecayParts();
|
30 |
|
31 |
void BookDataBlock(TreeWriter &tws);
|
32 |
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
|
33 |
|
34 |
private:
|
35 |
mithep::Particle *getMitParticle(mitedm::BasePartPtr ptr) const;
|
36 |
|
37 |
std::string edmName_; //edm name of decay parts collection
|
38 |
std::string mitName_; //name of DecayParticles in OAK
|
39 |
std::string vertexMapName_; //name of imported map wrt primary vertexes
|
40 |
std::vector<std::string> basePartMapNames_; //name of imported maps wrt stable parts
|
41 |
std::vector<const mithep::BasePartMap*> basePartMaps_; //maps wrt stable parts
|
42 |
const mithep::VertexMap *vertexMap_; //map wrt primary vertexes
|
43 |
mithep::DecayParticleArr *decays_; //array of DecayParticles
|
44 |
mithep::StableDataArr *stableData_; //array of StableDatas
|
45 |
mithep::DecayDataArr *decayData_; //array of DecayDatas
|
46 |
HitPatternReader hitReader_; //hit pattern reader
|
47 |
};
|
48 |
}
|
49 |
#endif
|