Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1578 from aburgm/rechit
Rechit
- Loading branch information
Showing
139 changed files
with
20,754 additions
and
1,927 deletions.
There are no files selected for viewing
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
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
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
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
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
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,30 @@ | ||
#ifndef TauAnalysis_MCEmbeddingTools_DetNaming_h | ||
#define TauAnalysis_MCEmbeddingTools_DetNaming_h | ||
|
||
#include <vector> | ||
#include <string> | ||
#include <map> | ||
#include "DataFormats/DetId/interface/DetId.h" | ||
#include "DataFormats/EcalDetId/interface/EcalSubdetector.h" | ||
#include "DataFormats/HcalDetId/interface/HcalSubdetector.h" | ||
|
||
#include <boost/foreach.hpp> | ||
|
||
class DetNaming | ||
{ | ||
public: | ||
DetNaming(); | ||
~DetNaming() {} | ||
|
||
std::string getKey(const DetId&); | ||
std::vector<std::string> getAllKeys(); | ||
|
||
private: | ||
typedef std::map<int, std::string > TMyMainMap; | ||
typedef std::map<int, std::map<int, std::string> > TMySubMap; | ||
TMyMainMap detMap_; | ||
TMySubMap subDetMap_; | ||
}; | ||
|
||
|
||
#endif |
59 changes: 59 additions & 0 deletions
59
TauAnalysis/MCEmbeddingTools/interface/GenMuonRadiationAlgorithm.h
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,59 @@ | ||
#ifndef TauAnalysis_MCEmbeddingTools_GenMuonRadiationAlgorithm_h | ||
#define TauAnalysis_MCEmbeddingTools_GenMuonRadiationAlgorithm_h | ||
|
||
/** \class GenMuonRadiationAlgorithm | ||
* | ||
* Auxiliary class to correct for muon --> muon + photon final state radiation (FSR) in selected Z --> mu+ mu- events. | ||
* The FSR is estimated on event-by-event basis via a Monte Carlo technique: | ||
* for each reconstructed muon, PHOTOS is used to obtain a random amount of radiated photon energy. | ||
* The radiated photon energy is then added to the energy of the reconstructed muon | ||
* and the energy of generator level tau leptons is set to the sum. | ||
* | ||
* NOTE: FSR increases with the energy of the muon. | ||
* So, in principle the energy of muon + photon (energy of muon before FSR), | ||
* not the energy of the reconstructed muon (energy of muon after FSR) would need to be used as input to PHOTOS. | ||
* As the amount of radiated photon energy is typically small (< 1 GeV on average), | ||
* taking the energy of the reconstructed muon is a good approximation. | ||
* | ||
* \author Christian Veelken, LLR | ||
* | ||
* \version $Revision: 1.6 $ | ||
* | ||
* $Id: GenMuonRadiationAlgorithm.h,v 1.6 2013/01/27 13:53:44 veelken Exp $ | ||
* | ||
*/ | ||
|
||
#include "DataFormats/Candidate/interface/Candidate.h" | ||
#include "GeneratorInterface/Pythia6Interface/interface/Pythia6Service.h" | ||
#include "GeneratorInterface/ExternalDecays/interface/PhotosInterface.h" | ||
|
||
#include<string> | ||
|
||
class myPythia6ServiceWithCallback; | ||
|
||
class GenMuonRadiationAlgorithm | ||
{ | ||
public: | ||
explicit GenMuonRadiationAlgorithm(const edm::ParameterSet&); | ||
~GenMuonRadiationAlgorithm(); | ||
|
||
reco::Candidate::LorentzVector compFSR(const reco::Candidate::LorentzVector&, int, const reco::Candidate::LorentzVector&, int&); | ||
|
||
private: | ||
double beamEnergy_; | ||
|
||
enum { kPYTHIA, kPHOTOS }; | ||
int mode_; | ||
|
||
gen::PhotosInterface* photos_; | ||
static bool photos_isInitialized_; | ||
|
||
myPythia6ServiceWithCallback* pythia_; | ||
static bool pythia_isInitialized_; | ||
|
||
int verbosity_; | ||
}; | ||
|
||
#endif | ||
|
||
|
46 changes: 46 additions & 0 deletions
46
TauAnalysis/MCEmbeddingTools/interface/L1ExtraMixerPluginBase.h
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,46 @@ | ||
#ifndef TauAnalysis_MCEmbeddingTools_L1ExtraMixerPluginBase_h | ||
#define TauAnalysis_MCEmbeddingTools_L1ExtraMixerPluginBase_h | ||
|
||
/** \class L1ExtraMEtMixerPluginBase | ||
* | ||
* Abstract base-class for L1ExtraMixerPlugins | ||
* | ||
* \author Christian Veelken, LLR | ||
* | ||
* \version $Revision: 1.2 $ | ||
* | ||
* $Id: L1ExtraMixerPluginBase.h,v 1.2 2012/10/14 12:22:48 veelken Exp $ | ||
* | ||
*/ | ||
|
||
#include "FWCore/Framework/interface/EDProducer.h" | ||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
#include "FWCore/Utilities/interface/InputTag.h" | ||
|
||
#include "FWCore/Utilities/interface/Exception.h" | ||
|
||
#include <string> | ||
|
||
class L1ExtraMixerPluginBase : public edm::EDProducer | ||
{ | ||
public: | ||
explicit L1ExtraMixerPluginBase(const edm::ParameterSet&); | ||
~L1ExtraMixerPluginBase() {} | ||
|
||
virtual void registerProducts(edm::EDProducer&) = 0; | ||
|
||
virtual void produce(edm::Event&, const edm::EventSetup&) = 0; | ||
|
||
protected: | ||
edm::InputTag src1_; | ||
edm::InputTag src2_; | ||
|
||
std::string instanceLabel_; | ||
}; | ||
|
||
#include "FWCore/PluginManager/interface/PluginFactory.h" | ||
|
||
typedef edmplugin::PluginFactory<L1ExtraMixerPluginBase* (const edm::ParameterSet&)> L1ExtraMixerPluginFactory; | ||
|
||
#endif |
54 changes: 0 additions & 54 deletions
54
TauAnalysis/MCEmbeddingTools/interface/MCParticleReplacer.h
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.