File indexing completed on 2024-10-16 05:06:39
0001 #ifndef SimCalorimetry_HGCalAssociatorProducers_HitToLayerClusterAssociatorProducer_h
0002 #define SimCalorimetry_HGCalAssociatorProducers_HitToLayerClusterAssociatorProducer_h
0003
0004
0005
0006 #include <memory>
0007 #include <string>
0008 #include <unordered_map>
0009
0010
0011 #include "FWCore/Framework/interface/global/EDProducer.h"
0012 #include "FWCore/Framework/interface/Event.h"
0013 #include "FWCore/Framework/interface/MakerMacros.h"
0014 #include "FWCore/Framework/interface/ESHandle.h"
0015 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0016 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0017 #include "FWCore/Utilities/interface/EDGetToken.h"
0018 #include "DataFormats/CaloRecHit/interface/CaloCluster.h"
0019 #include "DataFormats/HGCRecHit/interface/HGCRecHitCollections.h"
0020 #include "SimDataFormats/Associations/interface/TICLAssociationMap.h"
0021 #include "CommonTools/RecoAlgos/interface/MultiVectorManager.h"
0022
0023 class HitToLayerClusterAssociatorProducer : public edm::global::EDProducer<> {
0024 public:
0025 explicit HitToLayerClusterAssociatorProducer(const edm::ParameterSet &);
0026 ~HitToLayerClusterAssociatorProducer() override;
0027
0028 static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
0029
0030 private:
0031 void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override;
0032
0033 edm::EDGetTokenT<std::vector<reco::CaloCluster>> LCCollectionToken_;
0034 edm::EDGetTokenT<std::unordered_map<DetId, unsigned int>> hitMapToken_;
0035 std::vector<edm::EDGetTokenT<HGCRecHitCollection>> hitsTokens_;
0036 };
0037
0038 #endif