Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-11 03:57:27

0001 #ifndef TestAssociator_h
0002 #define TestAssociator_h
0003 
0004 /* \class TestAssociator
0005  *
0006  * \author Patrizia Azzi (INFN PD), Vincenzo Chiochia (Uni Zuerich), Bill Ford (Colorado)
0007  *
0008  *
0009  ************************************************************/
0010 
0011 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0012 #include "FWCore/Framework/interface/Event.h"
0013 #include "FWCore/Framework/interface/EventSetup.h"
0014 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0015 
0016 #include "SimTracker/TrackerHitAssociation/interface/TrackerHitAssociator.h"
0017 
0018 class TestAssociator : public edm::one::EDAnalyzer<> {
0019 public:
0020   explicit TestAssociator(const edm::ParameterSet& conf);
0021 
0022   ~TestAssociator() override;
0023 
0024   void analyze(const edm::Event& e, const edm::EventSetup& c) override;
0025 
0026 private:
0027   TrackerHitAssociator::Config trackerHitAssociatorConfig_;
0028   bool doPixel_, doStrip_, useOTph2_;
0029 
0030   edm::EDGetTokenT<edmNew::DetSetVector<SiStripMatchedRecHit2D>> matchedRecHitToken;
0031   edm::EDGetTokenT<edmNew::DetSetVector<SiStripRecHit2D>> rphiRecHitToken, stereoRecHitToken;
0032   edm::EDGetTokenT<edmNew::DetSetVector<SiPixelRecHit>> siPixelRecHitsToken;
0033   edm::EDGetTokenT<edmNew::DetSetVector<Phase2TrackerRecHit1D>> siPhase2RecHitsToken;
0034 
0035   template <typename rechitType>
0036   void printRechitSimhit(const edm::Handle<edmNew::DetSetVector<rechitType>> rechitCollection,
0037                          const char* rechitName,
0038                          int hitCounter,
0039                          TrackerHitAssociator& associate) const;
0040 };
0041 
0042 #endif