-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rearrange all plugins to the plugins directory in Calibration/HcalAlC…
…aRecoProducers
- Loading branch information
Showing
15 changed files
with
275 additions
and
308 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
Calibration/HcalAlCaRecoProducers/interface/AlCaEcalHcalReadoutsProducer.h
This file was deleted.
Oops, something went wrong.
72 changes: 0 additions & 72 deletions
72
Calibration/HcalAlCaRecoProducers/interface/AlCaHcalNoiseProducer.h
This file was deleted.
Oops, something went wrong.
File renamed without changes.
92 changes: 92 additions & 0 deletions
92
Calibration/HcalAlCaRecoProducers/plugins/AlCaEcalHcalReadoutsProducer.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
// -*- C++ -*- | ||
|
||
// system include files | ||
#include <memory> | ||
#include <string> | ||
// user include files | ||
#include "FWCore/Framework/interface/Frameworkfwd.h" | ||
#include "FWCore/Framework/interface/global/EDProducer.h" | ||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/Framework/interface/EventSetup.h" | ||
#include "FWCore/MessageLogger/interface/MessageLogger.h" | ||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
|
||
#include "DataFormats/Common/interface/Ref.h" | ||
#include "DataFormats/CaloTowers/interface/CaloTowerCollection.h" | ||
#include "DataFormats/DetId/interface/DetId.h" | ||
|
||
#include "Geometry/Records/interface/IdealGeometryRecord.h" | ||
#include "Geometry/CaloGeometry/interface/CaloGeometry.h" | ||
#include "DataFormats/GeometryVector/interface/GlobalPoint.h" | ||
#include "DataFormats/CaloTowers/interface/CaloTowerDetId.h" | ||
#include "DataFormats/HcalRecHit/interface/HcalRecHitCollections.h" | ||
#include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h" | ||
|
||
// | ||
// class decleration | ||
// | ||
|
||
class AlCaEcalHcalReadoutsProducer : public edm::global::EDProducer<> { | ||
public: | ||
explicit AlCaEcalHcalReadoutsProducer(const edm::ParameterSet &); | ||
|
||
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override; | ||
|
||
private: | ||
// ----------member data --------------------------- | ||
|
||
edm::EDGetTokenT<HBHERecHitCollection> tok_hbhe_; | ||
edm::EDGetTokenT<HORecHitCollection> tok_ho_; | ||
edm::EDGetTokenT<HFRecHitCollection> tok_hf_; | ||
|
||
edm::EDPutTokenT<HBHERecHitCollection> put_hbhe_; | ||
edm::EDPutTokenT<HORecHitCollection> put_ho_; | ||
edm::EDPutTokenT<HFRecHitCollection> put_hf_; | ||
}; | ||
|
||
AlCaEcalHcalReadoutsProducer::AlCaEcalHcalReadoutsProducer(const edm::ParameterSet& iConfig) { | ||
tok_ho_ = consumes<HORecHitCollection>(iConfig.getParameter<edm::InputTag>("hoInput")); | ||
tok_hf_ = consumes<HFRecHitCollection>(iConfig.getParameter<edm::InputTag>("hfInput")); | ||
tok_hbhe_ = consumes<HBHERecHitCollection>(iConfig.getParameter<edm::InputTag>("hbheInput")); | ||
|
||
//register your products | ||
put_hbhe_ = produces<HBHERecHitCollection>("HBHERecHitCollection"); | ||
put_ho_ = produces<HORecHitCollection>("HORecHitCollection"); | ||
put_hf_ = produces<HFRecHitCollection>("HFRecHitCollection"); | ||
} | ||
|
||
// ------------ method called to produce the data ------------ | ||
void AlCaEcalHcalReadoutsProducer::produce(edm::StreamID, edm::Event& iEvent, const edm::EventSetup& iSetup) const { | ||
using namespace edm; | ||
using namespace std; | ||
|
||
edm::Handle<HBHERecHitCollection> hbhe; | ||
edm::Handle<HORecHitCollection> ho; | ||
edm::Handle<HFRecHitCollection> hf; | ||
|
||
iEvent.getByToken(tok_hbhe_, hbhe); | ||
if (!hbhe.isValid()) { | ||
LogDebug("") << "AlCaEcalHcalReadoutProducer: Error! can't get hbhe product!" << std::endl; | ||
return; | ||
} | ||
|
||
iEvent.getByToken(tok_ho_, ho); | ||
if (!ho.isValid()) { | ||
LogDebug("") << "AlCaEcalHcalReadoutProducer: Error! can't get ho product!" << std::endl; | ||
} | ||
|
||
iEvent.getByToken(tok_hf_, hf); | ||
if (!hf.isValid()) { | ||
LogDebug("") << "AlCaEcalHcalReadoutProducer: Error! can't get hf product!" << std::endl; | ||
} | ||
|
||
//Put selected information in the event | ||
iEvent.emplace(put_hbhe_, *hbhe); | ||
iEvent.emplace(put_ho_, *ho); | ||
iEvent.emplace(put_hf_, *hf); | ||
} | ||
|
||
#include "FWCore/PluginManager/interface/ModuleDef.h" | ||
#include "FWCore/Framework/interface/MakerMacros.h" | ||
|
||
DEFINE_FWK_MODULE(AlCaEcalHcalReadoutsProducer); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,33 @@ | ||
<use name="Calibration/IsolatedParticles"/> | ||
<use name="CommonTools/UtilAlgos"/> | ||
<use name="CondFormats/DataRecord"/> | ||
<use name="CondFormats/HcalObjects"/> | ||
<use name="DataFormats/CaloTowers"/> | ||
<use name="DataFormats/DetId"/> | ||
<use name="DataFormats/EcalDetId"/> | ||
<use name="DataFormats/EcalRecHit"/> | ||
<use name="DataFormats/EgammaReco"/> | ||
<use name="DataFormats/FEDRawData"/> | ||
<use name="DataFormats/HcalCalibObjects"/> | ||
<use name="DataFormats/HcalIsolatedTrack"/> | ||
<use name="DataFormats/HcalRecHit"/> | ||
<use name="DataFormats/JetReco"/> | ||
<use name="DataFormats/Luminosity"/> | ||
<use name="DataFormats/METReco"/> | ||
<use name="DataFormats/RecoCandidate"/> | ||
<use name="DataFormats/Scalers"/> | ||
<use name="FWCore/Framework"/> | ||
<use name="FWCore/MessageLogger"/> | ||
<use name="FWCore/ParameterSet"/> | ||
<use name="HLTrigger/HLTcore"/> | ||
<use name="Calibration/IsolatedParticles"/> | ||
<use name="DataFormats/JetReco"/> | ||
<use name="RecoLocalCalo/EcalRecAlgos"/> | ||
<use name="RecoLocalCalo/HcalRecAlgos"/> | ||
<use name="TrackPropagation/SteppingHelixPropagator"/> | ||
<use name="rootphysics"/> | ||
<use name="boost"/> | ||
<use name="hls"/> | ||
<use name="clhep"/> | ||
<use name="root"/> | ||
<library file="*.cc" name="CalibrationHcalAlCaRecoProducersPlugins"> | ||
<flags EDM_PLUGIN="1"/> | ||
</library> |
Oops, something went wrong.