1 |
paus |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
|
|
// $Id: $
|
3 |
|
|
//
|
4 |
|
|
// FillerGlobalMuons
|
5 |
|
|
//
|
6 |
|
|
// Imlementation of a filler to fill global muons into our data structure.
|
7 |
|
|
//
|
8 |
|
|
// Authors: C.Paus
|
9 |
|
|
//--------------------------------------------------------------------------------------------------
|
10 |
|
|
#ifndef TREEFILLER_FILLERGLOBALMUONS_H
|
11 |
|
|
#define TREEFILLER_FILLERGLOBALMUONS_H
|
12 |
|
|
|
13 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
14 |
|
|
#include "MitAna/DataUtil/interface/TreeWriter.h"
|
15 |
|
|
#include "MitAna/DataTree/interface/GlobalMuon.h"
|
16 |
|
|
#include "MitAna/DataTree/interface/Muon.h"
|
17 |
|
|
#include "MitAna/DataTree/interface/Track.h"
|
18 |
|
|
#include "MitAna/DataTree/interface/Vector.h"
|
19 |
|
|
#include "MitProd/TreeService/interface/TreeService.h"
|
20 |
|
|
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
21 |
|
|
|
22 |
|
|
namespace mithep
|
23 |
|
|
{
|
24 |
|
|
class FillerGlobalMuons : public BaseFiller
|
25 |
|
|
{
|
26 |
|
|
public:
|
27 |
|
|
FillerGlobalMuons(const edm::ParameterSet&);
|
28 |
|
|
~FillerGlobalMuons();
|
29 |
|
|
|
30 |
|
|
bool Active () { return active_; }
|
31 |
|
|
void BookDataBlock(TreeWriter *tws);
|
32 |
|
|
void FillDataBlock(const edm::Event&, const edm::EventSetup&);
|
33 |
|
|
void ResolveLinks (const edm::Event&, const edm::EventSetup&);
|
34 |
|
|
|
35 |
|
|
private:
|
36 |
|
|
mithep::Vector<mithep::GlobalMuon> *muons_;
|
37 |
|
|
const std::string edmName_;
|
38 |
|
|
const std::string mitName_;
|
39 |
|
|
const bool active_;
|
40 |
|
|
};
|
41 |
|
|
}
|
42 |
|
|
#endif
|