Пример #1
0
import HpstrConf
import os
import sys
import baseConfig as base

options = base.parser.parse_args()

# Use the input file to set the output file name
inFilename  = options.inFilename
outFilename = options.outFilename

print('Input file:  %s' % inFilename)
print('Output file: %s' % outFilename)

p = HpstrConf.Process()

p.run_mode = 1
#p.max_events = 1000

# Library containing processors
p.add_library("libprocessors")

###############################
#          Processors         #
###############################
anaTrks = HpstrConf.Processor('anaTrks', 'TrackHitAnaProcessor')

###############################
#   Processor Configuration   #
###############################
anaTrks.parameters["debug"] = 0
Пример #2
0
    metavar="bkg_model")
(options, args) = parser.parse_args()

# Use the input file to set the output file name
histo_file = options.inFilename
mass_hypo = options.mass_hypo / 1000.0
poly_order = options.poly_order
win_factor = options.win_factor
toy_file = '%s/bhToys_m%iw%ip%ir%is%i.root' % (
    options.outDir, options.mass_hypo, win_factor, poly_order,
    int(options.res_scale * 100), options.toy_sig_samples)

print('Histo file: %s' % histo_file)
print('Toy file: %s' % toy_file)

p = HpstrConf.Process()

p.run_mode = 2
#p.max_events = 1000

# Library containing processors
p.add_library("libprocessors")

###############################
#          Processors         #
###############################

bhtoys = HpstrConf.Processor('bhtoys', 'BhToysHistoProcessor')

###############################
#   Processor Configuration   #
Пример #3
0
import HpstrConf
import sys

import baseConfig as base
from baseConfig import bfield

options = base.parser.parse_args()

# Use the input file to set the output file name
lcio_file = options.inFilename
root_file = options.outFilename

print('LCIO file: %s' % lcio_file)
print('Root file: %s' % root_file)

p = HpstrConf.Process()

#p.max_events = 1000
p.run_mode = 0

# Library containing processors
p.add_library("libprocessors")

###############################
#          Processors         #
###############################
header = HpstrConf.Processor('header', 'EventProcessor')
track = HpstrConf.Processor('track', 'TrackingProcessor')
trackgbl = HpstrConf.Processor('trackgbl', 'TrackingProcessor')
trackrefitgbl = HpstrConf.Processor('trackrefitgbl', 'TrackingProcessor')
svthits = HpstrConf.Processor('svthits', 'Tracker3DHitProcessor')
Пример #4
0
import HpstrConf
import baseConfig as base

options = base.parser.parse_args()

# Use the input file to set the output file name
lcio_file = options.inFilename
root_file = [options.outFilename]

print('LCIO file: %s' % lcio_file)
print('Root file: %s' % root_file)

p = HpstrConf.Process()

p.run_mode = 0

# Library containing processors
p.add_library("libprocessors")

###############################
#          Processors         #
###############################
header = HpstrConf.Processor('header', 'EventProcessor')
track = HpstrConf.Processor('track', 'TrackingProcessor')
svthits = HpstrConf.Processor('svthits', 'Tracker3DHitProcessor')
rawsvt = HpstrConf.Processor('rawsvt', 'SvtRawDataProcessor')
ecal = HpstrConf.Processor('ecal', 'ECalDataProcessor')
fsp = HpstrConf.Processor('fsp', 'FinalStateParticleProcessor')
vtx = HpstrConf.Processor('vtx', 'VertexProcessor')
c_vtx = HpstrConf.Processor('c_vtx', 'VertexProcessor')
mcpart = HpstrConf.Processor('mcpart', 'MCParticleProcessor')
Пример #5
0
import HpstrConf
import sys,os

# Use the input file to set the output file name
infilename = sys.argv[1].strip()
outfilename = sys.argv[2].strip()

print 'LCIO file: %s' % infilename
print 'Root file: %s' % outfilename

p = HpstrConf.Process()

# Library containing processors
p.libraries.append("libprocessors.so")

#Processors

clusters = HpstrConf.Processor('clusters','ClusterOnTrackAnaProcessor')
clusters.parameters["BaselineFits"] = "/nfs/hps3/svtTests/jlabSystem/baselines/fits/"
clusters.parameters["BaselineRun"]  = "010705"

p.sequence = [clusters]

p.input_files    = [infilename]

p.output_files  = [outfilename]

#p.max_events   = 1000
p.printProcess()

Пример #6
0
import HpstrConf
import sys
import os
import baseConfig as base

options = base.parser.parse_args()

# Use the input file to set the output file name
infile = options.inFilename
outfile = options.outFilename

print('Input file: {}'.format(infile))
print('Output file: {}'.format(outfile))

p = HpstrConf.Process()

p.run_mode = 1
#p.max_events = 1000

# Library containing processors
p.add_library("libprocessors")

###############################
#          Processors         #
###############################

bhana = HpstrConf.Processor('bhana', 'VertexAnaProcessor')

###############################
#   Processor Configuration   #
###############################
Пример #7
0
import HpstrConf
import sys

import baseConfig as base

options = base.parser.parse_args()

# Use the input file to set the output file name
lcio_file = options.inFilename
root_file = options.outFilename

print('LCIO file: %s' % lcio_file)
print('Root file: %s' % root_file)

p = HpstrConf.Process()

p.run_mode = 0
p.max_events = options.nevents

# Library containing processors
p.add_library("libprocessors")

###############################
#          Processors         #
###############################

mcpart = HpstrConf.Processor('mcpart', 'MCParticleProcessor')
mcthits = HpstrConf.Processor('mcthits', 'MCTrackerHitProcessor')
mcehits = HpstrConf.Processor('mcehits', 'MCEcalHitProcessor')

###############################
Пример #8
0
import HpstrConf
import sys

# Use the input file to set the output file name
lcio_file = sys.argv[1].strip()
root_file = '%s.root' % lcio_file[:-6]
root_file = 'testRun.root'

print 'LCIO file: %s' % lcio_file
print 'Root file: %s' % root_file

p = HpstrConf.Process()

# Library containing processors
p.libraries.append("libprocessors.so")

###############################
#          Processors         #
###############################

header = HpstrConf.Processor('header', 'EventProcessor')
rawsvt = HpstrConf.Processor('svt', 'SvtRawDataProcessor')

# Sequence which the processors will run.
p.sequence = [header, rawsvt]

p.input_files = [lcio_file]
p.output_files = [root_file]

#p.max_events = 1000
Пример #9
0
import HpstrConf
import sys
import os
import baseConfig as base

options = base.parser.parse_args()

# Use the input file to set the output file name
infile = options.inFilename
outfile = options.outFilename

print('Input file: %s' % infile)
print('Output file: %s' % outfile)

p = HpstrConf.Process()

p.run_mode = 1
#p.max_events = 1000

# Library containing processors
p.add_library("libprocessors")

###############################
#          Processors         #
###############################
trkana = HpstrConf.Processor('trkana', 'TrackingAnaProcessor')
trkgblana = HpstrConf.Processor('trkgblana', 'TrackingAnaProcessor')

trkana.parameters["debug"] = 0
trkana.parameters["trkCollName"] = "KalmanFullTracks"
trkana.parameters["histCfg"] = os.environ[
Пример #10
0
                         dest="tracking",
                         help="Which tracking to use to make plots",
                         metavar="tracking",
                         default="KF")
options = base.parser.parse_args()

# Use the input file to set the output file name
infile = options.inFilename
outfile = options.outFilename

outfile = outfile.split(".root")[0] + "_" + options.tracking + ".root"

print('Input file: %s' % infile)
print('Output file: %s' % outfile)

p = HpstrConf.Process()

p.run_mode = 1
#p.max_events = 1000

# Library containing processors
p.add_library("libprocessors")

###############################
#          Processors         #
###############################

recoana_kf = HpstrConf.Processor('vtxana_kf', 'VertexAnaProcessor')
recoana_gbl = HpstrConf.Processor('vtxana_gbl', 'VertexAnaProcessor')
mcana = HpstrConf.Processor('mcpartana', 'MCAnaProcessor')
###############################
Пример #11
0
baseConfig.parser.add_argument("-w",
                               "--tracking",
                               dest="tracking",
                               default="KF")
#(options, args) = parser.parse_args()
args = baseConfig.parser.parse_args()

# Use the input file to set the output file name
histo_file = args.inFilename[0]
out_file = args.outFilename[0]

print('Histo file: %s' % histo_file)
print('Out file: %s' % out_file)

p = HpstrConf.Process()

p.run_mode = 2
#p.max_events = 1000

# Library containing processors
p.add_library("libprocessors")

###############################
#          Processors         #
###############################

vtxPostProc = HpstrConf.Processor('vtxPostProc', 'VtxHistoProcessor')

###############################
#   Processor Configuration   #
Пример #12
0
import HpstrConf
import sys

# Use the input file to set the output file name
lcio_file = sys.argv[1].strip()
root_file = '%s_tracks.root' % lcio_file[:-6]
#root_file = 'testRun.root'

print 'LCIO file: %s' % lcio_file
print 'Root file: %s' % root_file

p = HpstrConf.Process()

p.run_mode = 0
#p.max_events = 1000

# Library containing processors
p.add_library("libprocessors")

###############################
#          Processors         #
###############################

header = HpstrConf.Processor('header', 'EventProcessor')
tracks = HpstrConf.Processor('tracks', 'TrackingProcessor')

###############################
#   Processor Configuration   #
###############################
#Event
header.parameters["debug"] = 0
Пример #13
0
import sys

import baseConfig

parser = baseConfig.parser
# used to be (args, options) =, or something close to that.
options = parser.parse_args()
# Use the input file to set the output file name

input_file = options.inFilename
output_file = options.outFilename

print('Input ROOT file: %s' % input_file)
print('Output ROOT file: %s' % output_file)

p = HpstrConf.Process()

p.run_mode = 1
#p.max_events = 1000

# Library containing processors
p.add_library("libprocessors")

###############################
#          Processors         #
###############################
ts  = HpstrConf.Processor('trg', 'TriggerAnaProcessor')

###############################
#   Processor Configuration   #
###############################
Пример #14
0
baseConfig.parser.add_option("-w","--tracking", type="string", dest="tracking",
                  help="Which tracking to use to make plots", metavar="tracking", default="KF")
(options,args) = baseConfig.parser.parse_args()


# Use the input file to set the output file name
infile = options.inFilename
outfile = options.outFilename

outfile = outfile.split(".root")[0]+"_"+options.tracking+".root"

print 'Input file: %s' % infile
print 'Output file: %s' % outfile

p = HpstrConf.Process()

p.run_mode = 1
#p.max_events = 1000

# Library containing processors
p.libraries.append("libprocessors.so")

###############################
#          Processors         #
###############################

recoana_kf = HpstrConf.Processor('vtxana_kf', 'VertexAnaProcessor')
recoana_gbl = HpstrConf.Processor('vtxana_gbl', 'VertexAnaProcessor')

###############################
Пример #15
0
import sys

import baseConfig

parser = baseConfig.parser
# used to be (args, options) =, or something close to that.
options = parser.parse_args()
# Use the input file to set the output file name

input_file = options.inFilename
output_file = options.outFilename

print('Input ROOT file: %s' % input_file)
print('Output ROOT file: %s' % output_file)

p = HpstrConf.Process()

p.run_mode = 1
#p.max_events = 1000

# Library containing processors
p.add_library("libprocessors")

###############################
#          Processors         #
###############################

invm  = HpstrConf.Processor('invm', 'InvarMassAnaProcessor')

###############################
#   Processor Configuration   #
Пример #16
0
import HpstrConf
import sys
import os
import baseConfig as base

options = base.parser.parse_args()

# Use the input file to set the output file name
infile = options.inFilename
outfile = options.outFilename

print('Input file: %s' % infile)
print('Output file: %s' % outfile)

p = HpstrConf.Process()

p.run_mode = 1
#p.max_events = 1000

# Library containing processors
p.add_library("libprocessors")

###############################
#          Processors         #
###############################

mcana = HpstrConf.Processor('mcana', 'MCAnaProcessor')

###############################
#   Processor Configuration   #
###############################
Пример #17
0
import HpstrConf
import sys
import os
import baseConfig as base

options = base.parser.parse_args()

# Use the input file to set the output file name
infile = options.inFilename
outfile = options.outFilename

print('Input file: %s' % infile)
print('Output file: %s' % outfile)

p = HpstrConf.Process()

p.run_mode = 1
#p.max_events = 1000

# Library containing processors
p.add_library("libprocessors")

###############################
#          Processors         #
###############################

vtxana = HpstrConf.Processor('vtxana', 'VertexAnaProcessor')

###############################
#   Processor Configuration   #
###############################
Пример #18
0
import HpstrConf
import sys

# Use the input file to set the output file name
lcio_file = sys.argv[1].strip()
root_file = '%s.root' % lcio_file[:-6]

print 'LCIO file: %s' % lcio_file
print 'Root file: %s' % root_file

p = HpstrConf.Process()

# Library containing processors
p.libraries.append("libprocessors.so")

###############################
#          Processors         #
###############################

header = HpstrConf.Processor('header', 'EventProcessor')
svt = HpstrConf.Processor('svt', 'SvtDataProcessor')

ecal = HpstrConf.Processor('ecal', 'ECalDataProcessor')

particle = HpstrConf.Processor("particle", "ParticleProcessor")
particle.parameters["Collections"] = [
    'FinalStateParticles', 'BeamspotConstrainedMollerCandidates',
    'BeamspotConstrainedV0Candidates', 'TargetConstrainedMollerCandidates',
    'TargetConstrainedV0Candidates', 'UnconstrainedMollerCandidates',
    'UnconstrainedV0Candidates', 'UnconstrainedVcCandidates', 'OtherElectrons'
]
Пример #19
0
		help="Number of toys to generate.", metavar="num_toys", default=1000)
parser.add_option("-U", "--num_toy_iterations", type="int", dest="toy_num_iters",
		help="Number of iterations to run.", metavar="toy_num_iters", default=100)
(options, args) = parser.parse_args()

# Use the input file to set the output file name
histo_file = options.inFilename
mass_hypo = options.mass_hypo/1000.0
poly_order = options.poly_order
win_factor = options.win_factor
out_file = '%s/bhResSys_m%iw%ip%i.root' % (options.outDir, options.mass_hypo, win_factor, poly_order)

print('Input File: %s' % histo_file)
print('Output File: %s' % out_file)

p = HpstrConf.Process()

p.run_mode = 2

# Library containing processors
p.add_library("libprocessors")

###############################
#          Processors         #
###############################

bhressys = HpstrConf.Processor('bhtoys', 'BhMassResSystematicsProcessor')

###############################
#   Processor Configuration   #
###############################
Пример #20
0
import HpstrConf
import sys
import os
import baseConfig as base

options = base.parser.parse_args()

# Use the input file to set the output file name
infile = options.inFilename
outfile = options.outFilename

print('Input file: %s' % infile)
print('Output file: %s' % outfile)

p = HpstrConf.Process()

p.run_mode = 1
#p.max_events = 1000

# Library containing processors
p.add_library("libprocessors")

###############################
#          Processors         #
###############################

recoana = HpstrConf.Processor('recoana', 'RecoHitAnaProcessor')

###############################
#   Processor Configuration   #
###############################
Пример #21
0
import HpstrConf
import sys
import os
import baseConfig as base

options = base.parser.parse_args()

# Use the input file to set the output file name
infile = options.inFilename
outfile = options.outFilename

print('Input file: %s' % infile)
print('Output file: %s' % outfile)

p = HpstrConf.Process()

p.run_mode = 1
#p.max_events = 1000

# Library containing processors
p.add_library("libprocessors")

###############################
#          Processors         #
###############################

apvana = HpstrConf.Processor('apvana', 'Apv25RoXtalkAnaProcessor')

###############################
#   Processor Configuration   #
###############################