ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/TreeMod/src/HLTMod.cc
(Generate patch)

Comparing UserCode/MitAna/TreeMod/src/HLTMod.cc (file contents):
Revision 1.21 by bendavid, Sun May 15 20:40:30 2011 UTC vs.
Revision 1.22 by bendavid, Fri Nov 18 00:02:02 2011 UTC

# Line 119 | Line 119 | void HLTMod::BeginRun()
119          TObjString *s = dynamic_cast<TObjString*>(arr->At(j));
120          if (!s)
121            continue;
122 <        const char *sptr = s->GetString().Data();
122 >        TString st = s->GetString();
123 >        bool wildcard = false;
124 >        if (st.EndsWith("*")) {
125 >          st.ReplaceAll("*","");
126 >          wildcard = true;
127 >        }
128 >        const char *sptr = st.Data();
129          Bool_t invert = kFALSE;
130          if (sptr[0] == '!') {
131            invert = kTRUE; //inverted bit set
132            ++sptr;
133          }
134 <        const TriggerName *tn = fTriggers->Get(sptr);
134 >        const TriggerName *tn = 0;
135 >        if (wildcard) {
136 >          tn = fTriggers->GetWildcard(sptr);
137 >        }
138 >        else {
139 >          tn = fTriggers->Get(sptr);
140 >        }
141          if (!tn) {
142            Warning("BeginRun", "Trigger %s not found.", sptr);
143            continue;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines