9 typedef ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<double> >
LorentzV;
13 edm::LogInfo(
"SUSY_HLT_alphaT") <<
"Constructor SUSY_HLT_alphaT::SUSY_HLT_alphaT " << std::endl;
34 edm::LogInfo(
"SUSY_HLT_alphaT") <<
"Destructor SUSY_HLT_alphaT::~SUSY_HLT_alphaT " << std::endl;
43 edm::LogError(
"SUSY_HLT_alphaT") <<
"Initialization of HLTConfigProvider failed!!";
47 bool pathFound =
false;
49 for(
size_t j = 0; j <allTrigNames.size(); ++j) {
56 LogDebug (
"SUSY_HLT_alphaT") <<
"Path not found" <<
"\n";
63 edm::LogInfo(
"SUSY_HLT_alphaT") <<
"SUSY_HLT_alphaT::beginRun" << std::endl;
68 edm::LogInfo(
"SUSY_HLT_alphaT") <<
"SUSY_HLT_alphaT::bookHistograms" << std::endl;
77 edm::LogInfo(
"SUSY_HLT_alphaT") <<
"SUSY_HLT_alphaT::analyze" << std::endl;
85 edm::LogWarning (
"SUSY_HLT_alphaT") <<
"invalid collection: TriggerResults" <<
"\n";
91 edm::LogWarning (
"SUSY_HLT_alphaT") <<
"invalid collection: TriggerSummary" <<
"\n";
100 if ( !pfJetCollection.
isValid() ){
101 edm::LogWarning (
"SUSY_HLT_alphaT") <<
"invalid collection: PFJets" <<
"\n";
119 std::vector<LorentzV> hltPfJets;
120 if( !(filterIndex >= triggerSummary->
sizeFilters()) ){
123 for(
size_t j = 0; j < keys.size(); ++j ){
128 hltPfHt += foundObject.
pt();
130 hltPfJets.push_back(JetLVec);
156 if(!hltPfJets.empty()){
157 double hltPfAlphaT =
AlphaT(hltPfJets,
true).
value();
170 bool hasFired =
false;
171 bool hasFiredAuxiliaryForHadronicLeg =
false;
173 unsigned int numTriggers = trigNames.
size();
174 for(
unsigned int hltIndex=0; hltIndex<numTriggers; ++hltIndex ){
180 if(hasFiredAuxiliaryForHadronicLeg) {
183 std::vector<LorentzV>
pfJets;
184 for (reco::PFJetCollection::const_iterator i_pfjet = pfJetCollection->begin(); i_pfjet != pfJetCollection->end(); ++i_pfjet){
186 if (fabs(i_pfjet->eta()) >
etaThrJet_)
continue;
187 pfHT += i_pfjet->pt();
188 LorentzV JetLVec(i_pfjet->pt(),i_pfjet->eta(),i_pfjet->phi(),i_pfjet->mass());
189 pfJets.push_back(JetLVec);
228 edm::LogInfo(
"SUSY_HLT_alphaT") <<
"SUSY_HLT_alphaT::endRun" << std::endl;
242 h_triggerPfHt = ibooker_.
book1D(
"triggerPfHt",
"Trigger PF Ht; HT (GeV)", 60, 0.0, 1500.0);
255 h_pfHtTurnOn_num = ibooker_.
book1D(
"pfHtTurnOn_num",
"PF HT Turn On Numerator; HT (GeV)", 30, 0.0, 1500.0 );
256 h_pfHtTurnOn_den = ibooker_.
book1D(
"pfHtTurnOn_den",
"PF HT Turn On Denominator; HT (GeV)", 30, 0.0, 1500.0 );
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
edm::InputTag triggerFilter_
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
bool wasrun() const
Was at least one path run?
MonitorElement * h_triggerPfHt
trigger::size_type sizeFilters() const
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
bool accept() const
Has at least one path accepted the event?
const std::vector< std::string > & triggerNames() const
names of trigger paths
const Keys & filterKeys(trigger::size_type index) const
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
MonitorElement * h_triggerPfAlphaT_triggerPfHt
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > LorentzV
Strings::size_type size() const
~SUSY_HLT_alphaT() override
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Single trigger physics object (e.g., an isolated muon)
void bookHistos(DQMStore::IBooker &)
MonitorElement * h_pfAlphaTTurnOn_num
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
const TriggerObjectCollection & getObjects() const
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * book1D(Args &&...args)
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > LorentzV
HLTConfigProvider fHltConfig
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
static const char *const trigNames[]
void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override
void setCurrentFolder(const std::string &fullpath)
std::string triggerPathAuxiliaryForHadronic_
MonitorElement * book2D(Args &&...args)
std::string const & triggerName(unsigned int index) const
std::vector< size_type > Keys
MonitorElement * h_pfHtTurnOn_den
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
MonitorElement * h_triggerPfAlphaT
MonitorElement * h_pfAlphaTTurnOn_den
MonitorElement * h_pfHtTurnOn_num
edm::EDGetTokenT< reco::PFJetCollection > thePfJetCollection_
edm::InputTag triggerPreFilter_
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
SUSY_HLT_alphaT(const edm::ParameterSet &ps)
double pfAlphaTThrTurnon_