/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

CoincidenceTight.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 #
00003 #  The CoincidenceTight Alg is dependent on
00004 #  - Muon Spallation UserData
00005 #  - AdSimple and AdScaled Recon
00006 #  - CalibStats UserData
00007 #
00008 #  Usage:
00009 #  - with recon file:
00010 #  nuwa.py -A "1.2*s" -n -1  -m"ADCoincTagging.CoincidenceTight" -o out.root recon.root
00011 #  - with raw file:
00012 #  nuwa.py -A "1.2*s" -n -1 --dbconf=offline_db -m Quickstart.Calibrate  -m Quickstart.CalculateCalibStats -m Quickstart.Reconstruct -m Quickstart.AdScaled -m MuonTagging.MuonTagLoose -m MuonTagging.SpallData -m ADCoincTagging.CoincidenceTight -o output.root  rawd2r.root
00013 #
00014 #  chao@bnl.gov 2011-12-07
00015 
00016 import GaudiKernel.SystemOfUnits as units
00017 import getopt
00018 
00019 def configure( argv=[] ):
00020     """ Tag AD coincidence events with tighter cuts and store more user data"""
00021     from Gaudi.Configuration import ApplicationMgr
00022     app = ApplicationMgr()
00023      
00024     from ADCoincTagging.ADCoincTaggingConf import CoincidenceTight
00025     myAlg = CoincidenceTight("CoincidenceTight")
00026     
00027     opts,args = getopt.getopt(argv,"w:", ['MaxGapWindow'])
00028     for opt, arg in opts:
00029         if opt in ('-w', '--MaxGapWindow'):
00030             myAlg.MaxGapWindow = float(arg) * units.second
00031         else:
00032             assert False, "unhandled option: %s, %s" % (opt, arg)
00033     
00034     app.TopAlg.append(myAlg) 
00035     
00036     return
00037 
00038 def run(app):
00039     pass
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:10:46 for ADCoincTagging by doxygen 1.7.4