4 |
|
#include "FWCore/ParameterSet/interface/ParameterSet.h" |
5 |
|
#include "DataFormats/GeometryVector/interface/GlobalPoint.h" |
6 |
|
|
7 |
< |
class TH1; |
7 |
> |
class TH1F; |
8 |
|
class RPCDetId; |
9 |
|
class TrajectoryStateOnSurface; |
10 |
|
|
16 |
|
public: SynchroSelector( const edm::ParameterSet & cfg = edm::ParameterSet() ); |
17 |
|
virtual ~SynchroSelector(){} |
18 |
|
|
19 |
< |
void setHistoDxy(TH1* h) { hDxy=h; } |
20 |
< |
void setHistoNum(TH1* h) { hNum=h; } |
21 |
< |
void setHistoEta(TH1* h) { hDeltaEta=h; } |
22 |
< |
void setHistoPhi(TH1* h) { hDeltaPhi=h; } |
19 |
> |
virtual bool takeIt(const RPCDetId & det, const edm::Event&ev, const edm::EventSetup& es) {return false; } |
20 |
|
|
21 |
< |
bool takeIt(const RPCDetId & det, const edm::Event&ev, const edm::EventSetup& es); |
22 |
< |
|
23 |
< |
void resetPos() { thePos.clear(); } |
27 |
< |
std::vector<GlobalPoint> positions() { return thePos;} |
28 |
< |
|
29 |
< |
bool checkMatching(const TrajectoryStateOnSurface&, float eta, float phi, const edm::Event&, const edm::EventSetup&); |
30 |
< |
bool checkTriggerMatching( const TrajectoryStateOnSurface & tsos, const edm::Event&ev, const edm::EventSetup& es); |
21 |
> |
protected: |
22 |
> |
bool checkRpcDetMatching( const TrajectoryStateOnSurface & tsos, const RPCDetId & det, const edm::Event&ev, const edm::EventSetup& es); |
23 |
> |
bool checkUniqueRecHitMatching( const TrajectoryStateOnSurface & tsos, const RPCDetId & det, const edm::Event&ev, const edm::EventSetup& es); |
24 |
|
|
25 |
< |
private: |
33 |
< |
std::vector<GlobalPoint> thePos; |
25 |
> |
protected: |
26 |
|
edm::ParameterSet theConfig; |
27 |
< |
TH1 *hDxy, *hNum, *hDeltaEta, *hDeltaPhi; |
36 |
< |
float mindeta, mindphi; |
27 |
> |
TH1F *hPullX, *hDistX; |
28 |
|
|
29 |
|
}; |
30 |
|
|