"""
@brief Pass 5 event classes.  See
http://confluence.slac.stanford.edu/display/DC2/Summary+of+response+function+sets

@author <NAME> <<EMAIL>>
"""
#
# $Header: /nfs/slac/g/glast/ground/cvs/fitsGen/python/Pass5_Classifier.py,v 1.3 2008/02/04 23:52:30 jchiang Exp $
#
from EventClassifier import EventClassifier

meritVariables = """
EvtRun    EvtEnergyCorr 
GltWord   FilterStatus_HI 
Tkr1FirstLayer  
CTBBestEnergyProb CTBCORE CTBBestEnergy CTBBestEnergyRatio CTBClassLevel
""".split()

#
# Note that the prefilter cuts applied by ROOT (the TCuts par file
# option), should contain the cuts that are common to all event
# classes.  For this version of Pass5, these are just those associated
# with the P5_v0_transient class.  Alternative analysis classes can be
# obtained via judicious use of fcopy and selecting on CTBCLASSLEVEL.
#

commonCuts = '&&'.join(('1',))

#
# These divide into front vs back
#
eventClassCuts = ['&&'.join((commonCuts, '(Tkr1FirstLayer>5.5)')),
                  '&&'.join((commonCuts, '(Tkr1FirstLayer<5.5)'))]
#eventClassCuts = ['&&'.join(('1',))]

eventClassifier = EventClassifier(eventClassCuts)

"""
@brief Pass 5 event classes.  See
http://confluence.slac.stanford.edu/display/DC2/Summary+of+response+function+sets

@author <NAME> <<EMAIL>>
"""
#
# $Header: /nfs/slac/g/glast/ground/cvs/fitsGen/python/Pass5_Classifier.py,v 1.3 2008/02/04 23:52:30 jchiang Exp $
#
from EventClassifier import EventClassifier

meritVariables = """
EvtRun    EvtEnergyCorr 
GltWord   FilterStatus_HI 
Tkr1FirstLayer  
CTBBestEnergyProb CTBCORE CTBBestEnergy CTBBestEnergyRatio CTBClassLevel
""".split()

#
# Note that the prefilter cuts applied by ROOT (the TCuts par file
# option), should contain the cuts that are common to all event
# classes.  For this version of Pass5, these are just those associated
# with the P5_v0_transient class.  Alternative analysis classes can be
# obtained via judicious use of fcopy and selecting on CTBCLASSLEVEL.
#

commonCuts = '&&'.join(('1',))

#
# These divide into front vs back
#
eventClassCuts = ['&&'.join((commonCuts, '(Tkr1FirstLayer>5.5)')),
                  '&&'.join((commonCuts, '(Tkr1FirstLayer<5.5)'))]
#eventClassCuts = ['&&'.join(('1',))]

eventClassifier = EventClassifier(eventClassCuts)

@brief Pass 5 event classes.  See http://confluence.slac.stanford.edu/display/DC2/Summary+of+response+function+sets  @author <NAME> <<EMAIL>> # # $Header: /nfs/slac/g/glast/ground/cvs/fitsGen/python/Pass5_Classifier.py,v 1.3 2008/02/04 23:52:30 jchiang Exp $ # EvtRun    EvtEnergyCorr  GltWord   FilterStatus_HI  Tkr1FirstLayer   CTBBestEnergyProb CTBCORE CTBBestEnergy CTBBestEnergyRatio CTBClassLevel # # Note that the prefilter cuts applied by ROOT (the TCuts par file # option), should contain the cuts that are common to all event # classes.  For this version of Pass5, these are just those associated # with the P5_v0_transient class.  Alternative analysis classes can be # obtained via judicious use of fcopy and selecting on CTBCLASSLEVEL. # # # These divide into front vs back # #eventClassCuts = ['&&'.join(('1',))]