Created
April 24, 2014 13:44
-
-
Save betatim/11255136 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # All sorts of stuff for setting up the Forward tracking | |
| # itneresting stuff towards the bottom | |
| FstForward = PrForwardTracking("FstForward") | |
| FstForward.InputName = self.getProp("RootInTES") + "Track/VeloUTFst" | |
| FstForward.OutputName = self.getProp("RootInTES") + "Track/Forward" | |
| FstForward.addTool(PrForwardTool) | |
| FstForward.PrForwardTool.AddUTHitsToolName = "" | |
| # Now with the momentum estimate FstForward.PrForwardTool.UseMomentumEstimate = True | |
| # MinPt determines the size of the search window, set # this to the lowest pT you want to be able to find | |
| FstForward.PrForwardTool.MinPt = self.getProp("ForwardMinPt") | |
| # Remove tracks with an UT estimated pT below this value, | |
| # because the UT resolution is not perfect set this to a | |
| # value less than the lowest pT you want to be able to # find, eg: MinPt = 500 and PreselectionPT = 400MeV | |
| FstForward.PrForwardTool.PreselectionPT = self.getProp("ForwardMinPt") * 0.8 | |
| FstForward.PrForwardTool.Preselection = True | |
| FstForward.PrForwardTool.UseWrongSignWindow = True | |
| # This is where it gets interesting | |
| # Not sure if we need the next line as this is the default | |
| # anyway | |
| FstForward.PrForwardTool.HitManagerName = "PrFTHitManager" | |
| # Don't forget to import PrFTHitManager first | |
| # then jsut creating an instance of it seems | |
| # to do the trick | |
| ft_hitmanager = PrFTHitManager() | |
| ft_hitmanager.XSmearing = 0.09 #90micron extra | |
| # see that it worked, but produces a lot of output | |
| #ft_hitmanager.OutputLevel = 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment