/
MultiTrackValidator.h
57 lines (43 loc) · 1.72 KB
/
MultiTrackValidator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef MultiTrackValidator_h
#define MultiTrackValidator_h
/** \class MultiTrackValidator
* Class that prodecs histrograms to validate Track Reconstruction performances
*
* \author cerati
*/
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
#include "Validation/RecoTrack/interface/MultiTrackValidatorBase.h"
#include "Validation/RecoTrack/interface/MTVHistoProducerAlgo.h"
class MultiTrackValidator : public thread_unsafe::DQMEDAnalyzer, protected MultiTrackValidatorBase {
public:
/// Constructor
MultiTrackValidator(const edm::ParameterSet& pset);
/// Destructor
virtual ~MultiTrackValidator();
/// Method called once per event
void analyze(const edm::Event&, const edm::EventSetup& );
/// Method called at the end of the event loop
void endRun(edm::Run const&, edm::EventSetup const&);
/// Method called to book the DQM histograms
void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&);
protected:
//these are used by MTVGenPs
edm::InputTag assMapInput;
edm::EDGetTokenT<reco::SimToRecoCollection> associatormapStR;
edm::EDGetTokenT<reco::RecoToSimCollection> associatormapRtS;
bool UseAssociators;
MTVHistoProducerAlgo* histoProducerAlgo_;
private:
std::string dirName_;
bool useGsf;
bool runStandalone;
// select tracking particles
//(i.e. "denominator" of the efficiency ratio)
TrackingParticleSelector tpSelector;
CosmicTrackingParticleSelector cosmictpSelector;
TrackingParticleSelector dRtpSelector;
edm::EDGetTokenT<SimHitTPAssociationProducer::SimHitTPAssociationList> _simHitTpMapTag;
edm::EDGetTokenT<edm::View<reco::Track> > labelTokenForDrCalculation;
};
#endif