6options = baseConfig.parser.parse_args()
10infile = options.inFilename
11outfile = options.outFilename
13print(
'Input file: %s' % infile)
14print(
'Output file: %s' % outfile)
22p.add_library(
"libprocessors")
34vtxana.parameters[
"debug"] = 1
35vtxana.parameters[
"anaName"] =
"vtxana"
36vtxana.parameters[
"cluColl"] =
"RecoEcalClusters"
37vtxana.parameters[
"trkColl"] =
"KalmanFullTracks"
38vtxana.parameters[
"vtxColl"] =
"UnconstrainedV0Candidates_KF"
40vtxana.parameters[
"hitColl"] =
"SiClustersOnTrack"
41vtxana.parameters[
"mcColl"] =
"MCParticle"
43vtxana.parameters[
"fspartColl"] =
"ParticlesOnVertices_KF"
44vtxana.parameters[
"trkSelectionjson"] = os.environ[
'HPSTR_BASE']+
'/analysis/selections/tridents/trackSelection-4pt5gev.json'
45vtxana.parameters[
"vtxSelectionjson"] = os.environ[
'HPSTR_BASE']+
'/analysis/selections/tridents/tridentSelection-4pt5gev.json'
47vtxana.parameters[
"histoCfg"] = os.environ[
'HPSTR_BASE']+
"/analysis/plotconfigs/tridents/triAnalysis-4pt5gev.json"
48vtxana.parameters[
"beamE"] = 4.5
49vtxana.parameters[
"isData"] = options.isData
62if (options.isData==1):
64 print(
"Running on data file: Setting CalTimeOffset %d" % CalTimeOffset)
66elif (options.isData==0):
68 print (
"Running on MC file: Setting CalTimeOffset %d" % CalTimeOffset)
70vtxana.parameters[
"CalTimeOffset"]=CalTimeOffset
74RegionPath=os.environ[
'HPSTR_BASE']+
"/analysis/selections/tridents/"
78vtxana.parameters[
"regionDefinitions"] = [RegionPath+
'/tridentAllLayerCombos.json',
79 RegionPath+
'/tridentAllLayerCombos-PositronCluster.json',
80 RegionPath+
'/tridentAllLayerCombos-PosClust-NoEleClust.json',
81 RegionPath+
'/tridentAllLayerCombos-BothClusters.json',
82 RegionPath+
'/tridentAllLayerCombos-RadCut.json',
83 RegionPath+
'/tridentAllLayerCombos-PositronCluster-RadCut.json',
84 RegionPath+
'/tridentAllLayerCombos-PosClust-NoEleClust-RadCut.json',
85 RegionPath+
'/tridentAllLayerCombos-BothClusters-RadCut.json',
86 RegionPath+
'/tridentAllLayerCombos-GammaStTruth-RadCut.json',
87 RegionPath+
'/tridentAllLayerCombos-GammaStTruth-PositronCluster-RadCut.json',
88 RegionPath+
'/tridentAllLayerCombos-GammaStTruth-BothClusters-RadCut.json',
89 RegionPath+
'/tridentL1L1.json',
90 RegionPath+
'/tridentL1L1-PositronCluster.json',
91 RegionPath+
'/tridentL1L1-BothClusters.json',
92 RegionPath+
'/tridentL1L1-PositronCluster-RadCut.json',
93 RegionPath+
'/tridentL1L1-BothClusters-RadCut.json']
103vtxana.parameters[
"regionWABDefinitions"]=[RegionPath+
'/wabL1ElectronCluster.json']
108p.output_files = [outfile]