|
|
Go to the documentation of this file.
12 if (newNames.empty()) {
13 for (
unsigned int j = 0;
j < triggers.
size();
j++) {
14 newNames.push_back(
names.triggerName(
j));
21 for (
unsigned int j = 0;
j < newNames.size();
j++) {
23 std::size_t vfound =
name.rfind(
"_v");
24 if (vfound != std::string::npos && (
name.compare(0, 3,
"HLT") == 0 ||
name.compare(0, 2,
"L1") == 0)) {
25 name.replace(vfound,
name.size() - vfound,
"");
32 for (
unsigned int j = 0;
j < newNames.size();
j++) {
34 std::size_t vfound =
name.rfind(
"_v");
35 if (vfound != std::string::npos && (
name.compare(0, 3,
"HLT") == 0 ||
name.compare(0, 2,
"L1") == 0)) {
36 name.replace(vfound,
name.size() - vfound,
"");
39 if (
name.compare(0, 3,
"HLT") == 0 ||
name.compare(0, 4,
"Flag") == 0 ||
name.compare(0, 2,
"L1") == 0) {
49 uint8_t backFillValue = 0;
52 nb.
branch =
tree.Branch(brname.c_str(), &backFillValue, (brname +
"/O").c_str());
67 if (
pset->existsAs<std::vector<std::string> >(
"@trigger_paths",
true)) {
72 throw cms::Exception(
"LogicError") <<
"edm::EventBase::triggerNames_ Encountered vector\n"
73 "of trigger names and a TriggerResults object with\n"
74 "different sizes. This should be impossible.\n"
75 "Please send information to reproduce this problem to\n"
76 "the edm developers.\n";
95 fillColumn<uint8_t>(pair, triggers);
100 auto const branches =
tree.GetListOfBranches();
101 for (
int i = 0;
i < branches->GetEntries();
i++) {
104 <<
"Found a branch with name " <<
std::string(branches->At(
i)->GetName()) <<
" already present with title "
106 <<
" to the new branch.\n";
static Registry * instance()
bool verifyBranchUniqueName(TTree &, std::string) const
const std::vector< std::string > & getTriggerNames() const
Obsolete.
std::vector< NamedBranchPtr > m_triggerBranches
edm::TriggerNames triggerNames(const edm::TriggerResults triggerResults)
static const std::string triggerResults
Log< level::Warning, false > LogWarning
const std::string names[nVars_]
unsigned int size() const
Get number of paths stored.
void updateTriggerNames(TTree &tree, const edm::TriggerNames &names, const edm::TriggerResults &ta)
void fill(const edm::EventForOutput &iEvent, TTree &tree)
std::string m_processName
bool getMapped(key_type const &k, value_type &result) const