1 from __future__
import print_function
11 return repr(self.
value)
14 def __init__(self, inputGT = "", inputConnect = "", inputPfnPrefix = "", inputPfnPostfix = "", inputGTParams = []):
15 if inputGTParams == []:
17 localConnect = inputConnect
18 if localConnect ==
"":
20 localConnect = Configuration.StandardSequences.FrontierConditions_GlobalTag_cff.GlobalTag.connect.value()
24 if localGT
in aliases:
25 localGT = aliases[localGT]
26 if localGT.find(
"|") != -1
and localConnect.find(
"|") == -1:
28 connect = localConnect
29 for i
in range(1,len(localGT.split(
"|"))):
30 localConnect +=
"|"+connect
31 self.gtParams.append([localGT, localConnect, inputPfnPrefix, inputPfnPostfix])
37 raise GlobalTagBuilderException(
"Error: trying to add the same GT component type \""+other.gtParams[0][0].
split(
"_")[0]+
"\" twice. This is not supported.")
38 if len(other.gtParams) > 1:
41 tempGTParams.append(other.gtParams[0])
42 return GlobalTag(inputGTParams = tempGTParams)
47 tempGTParams[index] = other.gtParams[0]
48 return GlobalTag(inputGTParams = tempGTParams)
50 exceptionString =
"Error: replacement of GT "+other.gtParams[0][0]+
" not allowed. No matching prefix found in existing GT components. Available components are:\n" 52 exceptionString += comp[0] +
"\n" 55 """ Compares two input GTs to see if they have the same prefix. Returns the index in the internal list of GTs of the match 56 or -1 in case of no match. """ 57 if inputGTParams[0][0].
find(
"_") == -1:
58 print(
"Invalid GT name. It does not contain an _, it cannot be used for replacements.")
60 prefix = inputGTParams[0][0].
split(
"_")[0]
61 for i
in range(0, len(self.
gtParams)):
70 outputString += elem[index]
S & print(S &os, JobReport::InputFile const &f)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
def checkPrefix(self, inputGTParams)
def buildString(self, index)
def __init__(self, value)
def __init__(self, inputGT="", inputConnect="", inputPfnPrefix="", inputPfnPostfix="", inputGTParams=[])
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run