Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:27:42

0001 #ifndef CaloTowerCreator_CaloTowerCreatorForTauHLT_h
0002 #define CaloTowerCreator_CaloTowerCreatorForTauHLT_h
0003 
0004 /** \class CaloTowerCreatorForTauHLT

0005  *

0006  * Framework module that produces a collection

0007  * of calo towers in the region of interest for Tau HLT reconnstruction,

0008  * depending on tau type trigger:  

0009  *                   Tau1 - take location of 1st L1 Tau

0010  *                   Tau2 - take location of 2nd L1 Tau; if does not exists,

0011  *                          take location of 1st Calo Tower

0012  *                   ETau - take L1 Tau candidate which is not collinear

0013  *                          to HLT (or L1) electron candidate.  

0014  *

0015  * \author A. Nikitenko. IC.   based on L. Lista and J. Mans

0016  *

0017  */
0018 
0019 #include "FWCore/Framework/interface/global/EDProducer.h"
0020 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0021 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0022 #include "DataFormats/CaloTowers/interface/CaloTower.h"
0023 #include "DataFormats/CaloTowers/interface/CaloTowerDefs.h"
0024 #include "DataFormats/L1Trigger/interface/L1JetParticle.h"
0025 #include "DataFormats/L1Trigger/interface/L1JetParticleFwd.h"
0026 #include <string>
0027 
0028 namespace edm {
0029   class ParameterSet;
0030 }
0031 
0032 class CaloTowerCreatorForTauHLT : public edm::global::EDProducer<> {
0033 public:
0034   /// constructor from parameter set

0035   CaloTowerCreatorForTauHLT(const edm::ParameterSet&);
0036   /// destructor

0037   ~CaloTowerCreatorForTauHLT() override = default;
0038   ///

0039   static void fillDescriptions(edm::ConfigurationDescriptions& desc);
0040 
0041 private:
0042   /// process one event

0043   void produce(edm::StreamID sid, edm::Event& evt, const edm::EventSetup& stp) const override;
0044 
0045   /// verbosity

0046   const int mVerbose;
0047   /// label of source collection

0048   const edm::EDGetTokenT<CaloTowerCollection> mtowers_token;
0049   /// use only towers in cone mCone around L1 candidate for regional jet reco

0050   const double mCone, mCone2;
0051   /// label of tau trigger type analysis

0052   const edm::EDGetTokenT<l1extra::L1JetParticleCollection> mTauTrigger_token;
0053   /// ET threshold

0054   const double mEtThreshold;
0055   /// E threshold

0056   const double mEThreshold;
0057   //

0058   const int mTauId;
0059 };
0060 
0061 #endif