103 int ntrigs = hltresults->
size();
104 if (ntrigs==0){
std::cout <<
"%HLTInfo -- No trigger name given in TriggerResults of the input " << std::endl;}
110 for (
int itrig = 0; itrig != ntrigs; ++itrig) {
111 TString trigName = triggerNames.
triggerName(itrig);
112 HltTree->Branch(trigName,
trigflag+itrig,trigName+
"/I");
113 HltTree->Branch(trigName+
"_Prescl",
trigPrescl+itrig,trigName+
"_Prescl/I");
117 for (
unsigned int idum = 0; idum <
dummyBranches_.size(); ++idum) {
119 bool addThisBranch = 1;
120 for (
int itrig = 0; itrig != ntrigs; ++itrig) {
121 TString realTrigName = triggerNames.
triggerName(itrig);
122 if(trigName == realTrigName) addThisBranch = 0;
125 HltTree->Branch(trigName,
trigflag+itdum,trigName+
"/I");
126 HltTree->Branch(trigName+
"_Prescl",
trigPrescl+itdum,trigName+
"_Prescl/I");
142 for (
int itrig = 0; itrig != ntrigs; ++itrig){
155 if (
_Debug)
std::cout <<
"%HLTInfo -- Number of HLT Triggers: " << ntrigs << std::endl;
156 std::cout <<
"%HLTInfo -- HLTTrigger(" << itrig <<
"): " << trigName <<
" = " << accept << std::endl;
160 else {
if (
_Debug)
std::cout <<
"%HLTInfo -- No Trigger Result" << std::endl;}
193 iEvent, trigCategory, iErrorCode);
194 if (iErrorCode == 0) {
195 if (
_Debug)
std::cout <<
"%Prescale set index: " << pfSetIndexAlgorithmTrigger << std::endl;
197 std::cout <<
"%Could not extract Prescale set index from event record. Error code: " << iErrorCode << std::endl;
203 int ntrigs = l1results->
size();
204 if (ntrigs==0){
std::cout <<
"%L1Results -- No trigger name given in TriggerResults of the input " << std::endl;}
213 std::string const & trigName = keyval.second.getName();
214 unsigned int index = keyval.second.getIndex();
215 if (
_Debug)
std::cerr <<
"bit: " << index <<
"\tname: " << trigName << std::endl;
220 TString l1trigName =
static_cast<const char *
>(
algoBitToName[itrig]);
223 HltTree->Branch(l1trigName,
l1flag+itrig,l1trigName+
"/I");
224 HltTree->Branch(l1trigName+
"_Prescl",
l1Prescl+itrig,l1trigName+
"_Prescl/I");
238 if (myflag ) {
l1flag[itrig] = 1; }
239 else {
l1flag[itrig] =0 ; }
255 else {
if (
_Debug)
std::cout <<
"%L1Results -- No Trigger Result" << std::endl;}
std::vector< std::string > dummyBranches_
unsigned size(int bx) const
std::vector< bool > const & getAlgoDecisionFinal() const
const int prescaleFactorSetIndex(const edm::Event &iEvent, const TriggerCategory &trigCategory, int &errorCode) const
bool accept() const
Has at least one path accepted the event?
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
static const unsigned int maxPhysicsTriggers
unsigned int size() const
Get number of paths stored.
std::string const & triggerName(unsigned int index) const
char data[epos_bytes_allocation]
std::unique_ptr< HLTPrescaleProvider > hltPrescaleProvider_
const T & at(int bx, unsigned i) const
const int prescaleFactor(const edm::Event &iEvent, const std::string &nameAlgoTechTrig, int &errorCode) const
return prescale factor for a given algorithm or technical trigger