1 |
loizides |
1.4 |
//--------------------------------------------------------------------------------------------------
|
2 |
|
|
// $Id: FillTracks.h,v 1.3 2008/06/17 13:31:38 loizides Exp $
|
3 |
|
|
//
|
4 |
|
|
// FillTracks
|
5 |
|
|
//
|
6 |
|
|
// Module copying general EDM tracks into mithep::Tracks.
|
7 |
|
|
//
|
8 |
|
|
// Authors: C.Loizides, J.Bendavid
|
9 |
|
|
//
|
10 |
|
|
//--------------------------------------------------------------------------------------------------
|
11 |
bendavid |
1.1 |
|
12 |
|
|
#ifndef TREEFILLER_FILLTRACKS_H
|
13 |
|
|
#define TREEFILLER_FILLTRACKS_H
|
14 |
|
|
|
15 |
|
|
#include "FWCore/Framework/interface/EDAnalyzer.h"
|
16 |
|
|
#include "FWCore/Framework/interface/Event.h"
|
17 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
18 |
|
|
#include "FWCore/Framework/interface/Frameworkfwd.h"
|
19 |
|
|
#include "MitProd/TreeService/interface/TreeService.h"
|
20 |
|
|
#include "MitAna/DataUtil/interface/TreeWriter.h"
|
21 |
|
|
#include "MitAna/DataTree/interface/Track.h"
|
22 |
loizides |
1.3 |
#include "MitAna/DataTree/interface/Array.h"
|
23 |
bendavid |
1.1 |
|
24 |
|
|
namespace mithep
|
25 |
|
|
{
|
26 |
|
|
class FillTracks : public edm::EDAnalyzer
|
27 |
|
|
{
|
28 |
|
|
public:
|
29 |
|
|
FillTracks(const edm::ParameterSet&);
|
30 |
|
|
~FillTracks();
|
31 |
|
|
|
32 |
|
|
void analyze(const edm::Event&, const edm::EventSetup&);
|
33 |
|
|
void beginJob(edm::EventSetup const&);
|
34 |
|
|
void endJob ();
|
35 |
|
|
|
36 |
|
|
private:
|
37 |
loizides |
1.3 |
mithep::Array<mithep::Track> *tracks_;
|
38 |
bendavid |
1.1 |
std::string trackSource_;
|
39 |
|
|
std::string trackBranch_;
|
40 |
|
|
};
|
41 |
loizides |
1.2 |
}
|
42 |
bendavid |
1.1 |
#endif
|