# secondaryOutput: Name of secondary output (if needed; singleton string)

# register an additional option
opt.register(
    "dataset",
    "", # default value
    VarParsing.multiplicity.singleton,
    VarParsing.varType.string, # string, int, or float
    "Please choose a dataset token. For examples see config file."
)
opt.register(
    "hltPaths",
    [],
    VarParsing.multiplicity.list,
    VarParsing.varType.string,
    "Please choose a hltPath token. For examples see config file."
)
opt.register(
    "outputName",
    "susyEvents.root",
    VarParsing.multiplicity.singleton,
    VarParsing.varType.string,
    "Please choose an output file name."
)

opt.parseArguments()

process = configure(dataset = opt.dataset, sourceNames = opt.inputFiles, hltPaths = opt.hltPaths, maxEvents = opt.maxEvents, outputName = opt.outputName)

process.susyNtuplizer.photonCollectionTags = ['photons']
from SUSYPhotonAnalysis.SusyNtuplizer.runOverAOD import configure

sourceNames = [
    'root://xrootd.unl.edu//store/data/Run2012A/Photon/AOD/22Jan2013-v1/20000/FEF664CA-ED68-E211-A3FA-003048678B08.root'
]

hltPaths = [
    'HLT_Photon36_CaloId10_Iso50_Photon22_CaloId10_Iso50_v*',
    'HLT_Photon36_CaloId10_Iso50_Photon22_R9Id85_v*',
    'HLT_Photon36_R9Id85_Photon22_CaloId10_Iso50_v*',
    'HLT_Photon36_R9Id85_Photon22_R9Id85_v*',
    'HLT_Photon36_R9Id85_OR_CaloId10_Iso50_Photon22_R9Id85_OR_CaloId10_Iso50_v*'
]

process = configure( '53x22Jan2013', sourceNames, hltPaths, runNoPUMVAMetSequence=False)