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
| #!/usr/bin/env python | |
| import numpy | |
| import sys | |
| if len(sys.argv) < 4: | |
| print( "Usage: linspace start stop step [, endpoint, ndecimals]" ) | |
| exit() | |
| if not sys.stdin.isatty(): |
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
| #!/usr/bin/env python | |
| import numpy | |
| import sys | |
| if len(sys.argv) < 4: | |
| print( "Usage: arange start stop step [, ndecimals]" ) | |
| exit() | |
| if not sys.stdin.isatty(): |
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
| /*! | |
| * | |
| * Twitter Bootstrap | |
| * | |
| */ | |
| /*! | |
| * Bootstrap v3.3.7 (http://getbootstrap.com) | |
| * Copyright 2011-2016 Twitter, Inc. | |
| * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |
| */ |
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
| set theList to paragraphs of text of (do shell script "pmset -g batt") | |
| set percent to word 6 of theList's item 2 | |
| set charge to word 7 of theList's item 2 | |
| if (charge = "charging") then | |
| set iconC to "⚡️" | |
| else | |
| set iconC to "" | |
| end if |
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
| if application "Spotify" is running then | |
| tell application "Spotify" | |
| if player state is playing then | |
| return (get artist of current track) & " – " & (get name of current track) | |
| else | |
| return "" | |
| end if | |
| end tell | |
| end if |
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
| if application "Spotify" is running then | |
| tell application "Spotify" | |
| if player state is playing then return "pause" | |
| end tell | |
| end if | |
| if application "iTunes" is running then | |
| tell application "iTunes" | |
| if player state is playing then return "pause" | |
| end tell |
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
| <job name="MuDst2FemtoDst_Run15_pp200" simulateSubmission ="false" maxFilesPerProcess="10" filesPerHour="50" > | |
| <stdout URL="file:/star/data03/pwg/jdb/scratch/log/log_$JOBID.log" /> | |
| <stderr URL="file:/star/data03/pwg/jdb/scratch/log/err_$JOBID.err" /> | |
| <output fromScratch="*FemtoDst.root" toURL="file:/star/data03/pwg/jdb/scratch/" /> | |
| <input URL="catalog:star.bnl.gov?trgsetupname=AuAu200_production_2011,filetype=daq_reco_MuDst,filename~st_upc,storage=local" nFiles="50000" /> | |
| <command> |
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
| GetEnv = True |
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
| void scale(){ | |
| TFile *f = new TFile( "cc2ee_dimuonAcc_2014BR.root" ); | |
| TH1 * hnParent = (TH1*)f->Get( "nParent" ); | |
| TH2 * hMcAcc = (TH2*)f->Get( "hMCAcc1MvsPtcc2ee" ); | |
| double Ncc = hnParent->GetBinContent(1); |
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
| TChain *c = NULL; | |
| double meanNcollAt( float mlow, float mhigh ){ | |
| TH1D * hncoll = new TH1D( "hncoll", "", 1000, 0, 1000 ); | |
| TString cut = TString::Format("mult > %f && mult <= %f", mlow, mhigh ); | |
| c->Draw( "ncoll>>hncoll", cut ); |