$Date: November 2006 $Revision:
- Author
- P. Bargassa - Rice U.
$Date: April 2016 $Revision:
- Author
- G. Karapostoli - ULB
Definition at line 53 of file HLTInfo.h.
Analyze the Data
Definition at line 84 of file HLTInfo.cc.
References _Debug, accept(), algoBitToName, L1GtUtils::AlgorithmTrigger, DMR_cfg::cerr, gather_cfg::cout, dummyBranches_, options_cfi::eventSetup, HltEvtCnt, hltPrescaleProvider_, HLTBitAnalyser_cfi::hltresults, iEvent, L1EvtCnt, l1flag, l1Prescl, HLTBitAnalyser_cfi::l1results, l1tUtmTriggerMenuToken_, prototype_2023_v1_0_0::menu, L1GtUtils::prescaleFactor(), L1GtUtils::prescaleFactorSetIndex(), mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, trigflag, L1TEGammaOffline_cfi::triggerNames, cscTnPEfficiencyTask_cfi::trigName, and trigPrescl.
Referenced by HLTBitAnalyzer::analyze().
95 std::cout <<
"%HLTInfo -- No trigger name given in TriggerResults of the input " << std::endl;
102 for (
int itrig = 0; itrig != ntrigs; ++itrig) {
110 TString
trigName(dummyBranche.data());
111 bool addThisBranch =
true;
112 for (
int itrig = 0; itrig != ntrigs; ++itrig) {
115 addThisBranch =
false;
135 for (
int itrig = 0; itrig != ntrigs; ++itrig) {
149 std::cout <<
"%HLTInfo -- Number of HLT Triggers: " << ntrigs << std::endl;
155 std::cout <<
"%HLTInfo -- No Trigger Result" << std::endl;
187 if (iErrorCode == 0) {
189 std::cout <<
"%Prescale set index: " << pfSetIndexAlgorithmTrigger << std::endl;
191 std::cout <<
"%Could not extract Prescale set index from event record. Error code: " << iErrorCode << std::endl;
198 std::cout <<
"%L1Results -- No trigger name given in TriggerResults of the input " << std::endl;
206 for (
auto const& keyval :
menu->getAlgorithmMap()) {
208 unsigned int index = keyval.second.getIndex();
215 TString l1trigName =
static_cast<const char*
>(
algoBitToName[itrig]);
218 HltTree->Branch(l1trigName,
l1flag + itrig, l1trigName +
"/I");
219 HltTree->Branch(l1trigName +
"_Prescl",
l1Prescl + itrig, l1trigName +
"_Prescl/I");
229 for (
unsigned int itrig = 0; itrig <
result.maxPhysicsTriggers; ++itrig) {
232 bool myflag =
result.getAlgoDecisionFinal(itrig);
249 std::cout <<
"%L1Info -- Done with routine" << std::endl;
254 std::cout <<
"%L1Results -- No Trigger Result" << std::endl;
const int prescaleFactorSetIndex(const edm::Event &iEvent, const TriggerCategory &trigCategory, int &errorCode) const
std::vector< std::string > dummyBranches_
edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > l1tUtmTriggerMenuToken_
const int prescaleFactor(const edm::Event &iEvent, const std::string &nameAlgoTechTrig, int &errorCode) const
return prescale factor for a given algorithm or technical trigger
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
std::unique_ptr< HLTPrescaleProvider > hltPrescaleProvider_
Definition at line 47 of file HLTInfo.cc.
References _Debug, algoBitToName, dummyBranches_, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNames(), edm::ParameterSet::getUntrackedParameter(), HltEvtCnt, hltpeta, hltppt, L1EvtCnt, l1flag, l1flag5Bx, l1Prescl, l1techflag, l1techPrescl, processName_, AlCaHLTBitMon_QueryRunRegistry::string, techBitToName, trigflag, and trigPrescl.
Referenced by HLTBitAnalyzer::HLTBitAnalyzer().
53 for (
auto& parameterName : parameterNames) {
54 if (parameterName ==
"Debug")
55 _Debug = myHltParams.getParameter<
bool>(parameterName);
61 const int kMaxTrigFlag = 10000;
66 const int kMaxL1Flag = 10000;
67 l1flag =
new int[kMaxL1Flag];
75 const int kMaxHLTPart = 10000;
76 hltppt =
new float[kMaxHLTPart];
77 hltpeta =
new float[kMaxHLTPart];
std::vector< std::string > dummyBranches_
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< std::string > getParameterNames() const