1 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
|
|
// $Id: FillerBeamSpot.h,v 1.2 2008/10/23 15:43:15 loizides Exp $
|
3 |
|
|
//
|
4 |
|
|
// FillerBeamSpot
|
5 |
|
|
//
|
6 |
|
|
// Imlementation of a filler to fill EDM reco:Vertex into our mithep::Vertex data structure.
|
7 |
|
|
//
|
8 |
|
|
// Authors: J.Bendavid
|
9 |
|
|
//--------------------------------------------------------------------------------------------------
|
10 |
|
|
|
11 |
|
|
#ifndef MITPROD_TREEFILLER_FILLERBEAMSPOT_H
|
12 |
|
|
#define MITPROD_TREEFILLER_FILLERBEAMSPOT_H
|
13 |
|
|
|
14 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
15 |
|
|
#include "MitAna/DataUtil/interface/TreeWriter.h"
|
16 |
|
|
#include "MitAna/DataTree/interface/BeamSpot.h"
|
17 |
|
|
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
18 |
|
|
|
19 |
|
|
namespace mithep
|
20 |
|
|
{
|
21 |
|
|
class FillerBeamSpot : public BaseFiller
|
22 |
|
|
{
|
23 |
|
|
public:
|
24 |
|
|
FillerBeamSpot(const edm::ParameterSet &cfg, const char *name, bool active=1);
|
25 |
|
|
~FillerBeamSpot();
|
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 Vertex collection
|
32 |
|
|
std::string mitName_; //name of Vertices in OAK
|
33 |
|
|
mithep::BeamSpot *beamSpot_; //the beamspot
|
34 |
|
|
};
|
35 |
|
|
}
|
36 |
|
|
#endif
|