1 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
edwenger |
1.4 |
// $Id: ProducerEvtSelData.h,v 1.3 2009/12/08 11:33:23 loizides Exp $
|
3 |
loizides |
1.1 |
//
|
4 |
|
|
// ProducerEvtSelData
|
5 |
|
|
//
|
6 |
|
|
// Produce event selection data.
|
7 |
|
|
//
|
8 |
|
|
// Authors: C.Loizides
|
9 |
|
|
//--------------------------------------------------------------------------------------------------
|
10 |
|
|
|
11 |
|
|
#ifndef MITEDM_PRODUCERS_PRODUCEREVTSELDATA_H
|
12 |
|
|
#define MITEDM_PRODUCERS_PRODUCEREVTSELDATA_H
|
13 |
|
|
|
14 |
|
|
#include "FWCore/Framework/interface/Frameworkfwd.h"
|
15 |
|
|
#include "FWCore/Framework/interface/EDProducer.h"
|
16 |
|
|
#include "FWCore/Framework/interface/Event.h"
|
17 |
|
|
#include "FWCore/Framework/interface/MakerMacros.h"
|
18 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
19 |
|
|
|
20 |
edwenger |
1.2 |
class TrackerGeometry;
|
21 |
|
|
|
22 |
loizides |
1.1 |
namespace mitedm
|
23 |
|
|
{
|
24 |
|
|
class ProducerEvtSelData : public edm::EDProducer {
|
25 |
|
|
public:
|
26 |
loizides |
1.3 |
explicit ProducerEvtSelData(const edm::ParameterSet &cfg);
|
27 |
loizides |
1.1 |
~ProducerEvtSelData();
|
28 |
|
|
|
29 |
|
|
private:
|
30 |
loizides |
1.3 |
struct VertexHit {
|
31 |
|
|
float z;
|
32 |
|
|
float r;
|
33 |
|
|
float w;
|
34 |
|
|
};
|
35 |
|
|
|
36 |
|
|
void produce(edm::Event &evt, const edm::EventSetup &setup);
|
37 |
|
|
int getContainedHits(const std::vector<VertexHit> &hits, double z0, double &chi);
|
38 |
loizides |
1.1 |
|
39 |
|
|
std::string srcHF_; //hf rec hits
|
40 |
|
|
std::string srcHBHE_; //hbhe rec hits
|
41 |
|
|
std::string srcCastor_; //castor rec hits
|
42 |
|
|
std::string srcZDC_; //zdc rec hits
|
43 |
edwenger |
1.2 |
std::string srcPixels_; //pixel rec hits
|
44 |
loizides |
1.3 |
std::string srcVertex_; //vertex (if not set will use pixel counting vertex)
|
45 |
edwenger |
1.4 |
std::string srcTrk_; //track collection
|
46 |
loizides |
1.1 |
};
|
47 |
|
|
}
|
48 |
|
|
#endif
|