Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-10-16 05:06:39

0001 // Author: Felice Pantaleo, felice.pantaleo@cern.ch 07/2024
0002 
0003 #ifndef SimCalorimetry_HGCalAssociatorProducers_SimClusterToCaloParticleAssociatorProducer_h
0004 #define SimCalorimetry_HGCalAssociatorProducers_SimClusterToCaloParticleAssociatorProducer_h
0005 
0006 #include "FWCore/Framework/interface/global/EDProducer.h"
0007 #include "FWCore/Framework/interface/Event.h"
0008 #include "FWCore/Framework/interface/MakerMacros.h"
0009 #include "FWCore/Framework/interface/ESHandle.h"
0010 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0011 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0012 #include "FWCore/Utilities/interface/EDGetToken.h"
0013 #include "SimDataFormats/CaloAnalysis/interface/CaloParticle.h"
0014 #include "SimDataFormats/CaloAnalysis/interface/SimCluster.h"
0015 #include "SimDataFormats/Associations/interface/TICLAssociationMap.h"
0016 
0017 class SimClusterToCaloParticleAssociatorProducer : public edm::global::EDProducer<> {
0018 public:
0019   explicit SimClusterToCaloParticleAssociatorProducer(const edm::ParameterSet &);
0020   ~SimClusterToCaloParticleAssociatorProducer() override;
0021 
0022   static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
0023 
0024 private:
0025   void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override;
0026 
0027   edm::EDGetTokenT<std::vector<SimCluster>> simClusterToken_;
0028   edm::EDGetTokenT<std::vector<CaloParticle>> caloParticleToken_;
0029 };
0030 
0031 #endif