14 #include "Math/GenVector/VectorUtil.h" 23 m_verbose (p.getUntrackedParameter<
int> (
"verbose" , 0) ),
25 m_cone (p.getParameter<double> (
"UseTowersInCone" ) ),
26 m_tauTrigger_token (consumes<
trigger::TriggerFilterObjectWithRefs> (p.getParameter<
InputTag> (
"TauTrigger" ))),
27 m_EtThreshold (p.getParameter<double> (
"minimumEt" ) ),
28 m_EThreshold (p.getParameter<double> (
"minimumE" ) )
30 produces<CaloTowerCollection>();
45 auto cands = std::make_unique<CaloTowerCollection>();
46 cands->reserve( caloTowers->
size() );
51 for(
auto const& tauCandRef: tauCandRefVec){
53 for(
auto const& cal: *caloTowers ){
55 bool isAccepted =
false;
57 edm::LogInfo(
"JetDebugInfo") <<
"CaloTowerFromL1TSeededCreatorForTauHLT::produce-> tower et/eta/phi/e: " 66 double delta2 =
deltaR2((tauCandRef->p4()).Vect(),
p);
67 if(delta2 < m_cone2) {
69 cands->push_back( cal );
74 if (isAccepted)
edm::LogInfo(
"JetDebugInfo") <<
"accepted \n";
92 aDesc.
add<
double> (
"UseTowersInCone", 0.8 )->setComment(
"Radius of cone around seed" );
93 aDesc.
add<
double> (
"minimumE" , 0.8 )->setComment(
"Minimum tower energy" );
94 aDesc.
add<
double> (
"minimumEt" , 0.5 )->setComment(
"Minimum tower ET" );
95 aDesc.
addUntracked<
int> (
"verbose" , 0 )->setComment(
"Verbosity level; 0=silent" );
97 desc.
add (
"CaloTowerFromL1TSeededCreatorForTauHLT", aDesc);
98 desc.
setComment (
"Produce tower collection around L1 particle seed.");
const edm::EDGetTokenT< CaloTowerCollection > m_towers_token
label of source collection
void produce(edm::StreamID sid, edm::Event &evt, const edm::EventSetup &stp) const override
process one event
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void getObjects(Vids &ids, VRphoton &refs) const
various physics-level getters:
const double m_cone
use only towers in cone mCone around L1 candidate for regional jet reco
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
static void fillDescriptions(edm::ConfigurationDescriptions &desc)
const double m_EThreshold
E threshold.
CaloTowerFromL1TSeededCreatorForTauHLT(const edm::ParameterSet &)
constructor from parameter set
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void setComment(std::string const &value)
const int m_verbose
verbosity
PtEtaPhiELorentzVectorD PtEtaPhiELorentzVector
Lorentz vector with cartesian internal representation.
const double m_EtThreshold
imitator of L1 seeds
~CaloTowerFromL1TSeededCreatorForTauHLT()
destructor
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > m_tauTrigger_token
label of tau trigger type analysis
void add(std::string const &label, ParameterSetDescription const &psetDescription)
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
std::vector< TauRef > TauVectorRef