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
| #define pythia_cxx | |
| #include "pythia.h" | |
| #include <TH2.h> | |
| #include <TStyle.h> | |
| #include <TCanvas.h> | |
| void pythia::Loop() | |
| { | |
| // In a ROOT session, you can do: | |
| // root> .L pythia.C |
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
| #include "StEvent/StTriggerData2016.h" | |
| // "event" is a class object storing the data into an nTuple | |
| void StVpdPicoDstMaker::analyzeEvent(){ | |
| StMuEvent *muEvent = muDst->event(); | |
| const StTriggerData2016 *td = (StTriggerData2016*)muEvent->triggerData(); |
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
| #ifndef SIGNAL_MAKER_H | |
| #define SIGNAL_MAKER_H | |
| #include "HistoAnalyzer.h" | |
| #include "vendor/loguru.h" | |
| class SignalMaker : public HistoAnalyzer { | |
| protected: |
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 print_tray( int tray ){ | |
| cout << endl << tray << " 0" << endl; | |
| } | |
| void export_params(){ |
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 ); |
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
| 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
| <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
| 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
| 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 |