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;
76 edm::LogInfo(
"SUSY_HLT_alphaT") <<
"SUSY_HLT_alphaT::beginLuminosityBlock" << std::endl;
82 edm::LogInfo(
"SUSY_HLT_alphaT") <<
"SUSY_HLT_alphaT::analyze" << std::endl;
90 edm::LogWarning (
"SUSY_HLT_alphaT") <<
"invalid collection: TriggerResults" <<
"\n";
96 edm::LogWarning (
"SUSY_HLT_alphaT") <<
"invalid collection: TriggerSummary" <<
"\n";
105 if ( !pfJetCollection.
isValid() ){
106 edm::LogWarning (
"SUSY_HLT_alphaT") <<
"invalid collection: PFJets" <<
"\n";
124 std::vector<LorentzV> hltPfJets;
125 if( !(filterIndex >= triggerSummary->
sizeFilters()) ){
128 for(
size_t j = 0; j < keys.size(); ++j ){
133 hltPfHt += foundObject.
pt();
135 hltPfJets.push_back(JetLVec);
161 if(!hltPfJets.empty()){
162 double hltPfAlphaT =
AlphaT(hltPfJets,
true).
value();
175 bool hasFired =
false;
176 bool hasFiredAuxiliaryForHadronicLeg =
false;
178 unsigned int numTriggers = trigNames.
size();
179 for(
unsigned int hltIndex=0; hltIndex<numTriggers; ++hltIndex ){
185 if(hasFiredAuxiliaryForHadronicLeg) {
188 std::vector<LorentzV>
pfJets;
189 for (reco::PFJetCollection::const_iterator i_pfjet = pfJetCollection->begin(); i_pfjet != pfJetCollection->end(); ++i_pfjet){
191 if (fabs(i_pfjet->eta()) >
etaThrJet_)
continue;
192 pfHT += i_pfjet->pt();
193 LorentzV JetLVec(i_pfjet->pt(),i_pfjet->eta(),i_pfjet->phi(),i_pfjet->mass());
194 pfJets.push_back(JetLVec);
231 edm::LogInfo(
"SUSY_HLT_alphaT") <<
"SUSY_HLT_alphaT::endLuminosityBlock" << std::endl;
237 edm::LogInfo(
"SUSY_HLT_alphaT") <<
"SUSY_HLT_alphaT::endRun" << std::endl;
251 h_triggerPfHt = ibooker_.
book1D(
"triggerPfHt",
"Trigger PF Ht; HT (GeV)", 60, 0.0, 1500.0);
264 h_pfHtTurnOn_num = ibooker_.
book1D(
"pfHtTurnOn_num",
"PF HT Turn On Numerator; HT (GeV)", 30, 0.0, 1500.0 );
265 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?
void endLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &eSetup) override
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)
void beginLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &eSetup) override
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_