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
| #!/bin/bash | |
| sshfs_mount.sh jdb@rftpexp.rhic.bnl.gov /star/institutions/rice/ /Users/danielbrandenburg/bnl/sir $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
| string Common::toXml( TF1 * f ){ | |
| string line = ""; | |
| line += "formula=\""; | |
| line += f->GetTitle(); | |
| line += "\""; | |
| for ( int ip = 0; ip < f->GetNpar(); ip++ ){ | |
| line += " p" + ts(ip) + "=\""; |
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 python2.7 | |
| """ | |
| root's hadd gets really inefficiency for large numbers of files - it becomes much more efficienct to do it in small batches. | |
| This tool hadds some collection of files in smaller batches and gives you the result. maybe in the future ill make it parallelized | |
| """ | |
| import argparse | |
| import os | |
| import glob |
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 "Reporter.h" | |
| #include "RooPlotLib.h" | |
| map< string, double> cov_matrix( vector<string> sources, string cut ){ | |
| Reporter rp( "rp_cov_matrix.pdf", 600, 600 ); | |
| RooPlotLib rpl; | |
| TChain * c = new TChain( "rcpPicoDst" ); |
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 <fstream> | |
| #include "TGraphErrors.h" | |
| class SpectraLoader{ | |
| public: | |
| vector<double> pT; | |
| vector<double> value; | |
| vector<double> stat; | |
| vector<double> sys; |
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
| // call this immediately after calling TH1->Fit(...) | |
| // f - Fit function pointer | |
| // name - histogram name | |
| // cl - confidence level : ie 0.68 for 1 sigma, 0.95 for 2 sigma | |
| // x1 - minimum x range | |
| // x2 - maximum x range | |
| TH1 * fitCL( TF1 * f, string name, double cl, int nPoints, double x1, double x2 ){ |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" | |
| "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>condor</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/usr/local/condor/sbin/condor_master</string> |
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 loadListRange( TChain * _chain, string _listFile, int _jobIndex, int _splitBy ){ | |
| int min = _jobIndex * _splitBy; | |
| int max = (_jobIndex + 1) * _splitBy - 1; | |
| if ( 0 > _splitBy || 0 > _jobIndex ){ | |
| return; | |
| } | |
| int fileIndex = 0; |
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
| { | |
| TFile * f = new TFile( "TofStatusQA.root" ); | |
| vector<bool> tray_status; | |
| tray_status.push_back( false ); // index starts at 1 | |
| map< string, bool> module_status; |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- A root node is required --> | |
| <!-- It can be anything <root></root>, it just has to exist --> | |
| <config> | |
| <input> | |
| <dst treeName="tof" maxFiles="2" nEvents="10000" url="/Users/danielbrandenburg/bnl/local/"/> | |
| </input> | |