-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spin tune moter and noise study by zchang (#2)
* spin tune moter and noise study by zchang * spin tune moter and noise study by zchang * modified to LinkDef.h and root-helper/utils/binary.h(cc) for spin tune study * modified with default streamer provided by ROOT * add afterburner code * first version for run22 offline monitoring * first version for run22 offline monitoring * first version for run22 offline monitoring * test * test * first version for run22 offline monitoring * new crontab scripts * test * test * add fit function to graph instead of histogram * ready for run22 pC offline analysis * run22 pC * updates * updates to cnipol webpages, added spin pattern, fixed bug with masym so that it will run with only one measurement in the input * load ags polarization from FDAcombined
- Loading branch information
Showing
94 changed files
with
6,652 additions
and
307 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
[submodule "contrib/root-helper"] | ||
path = contrib/root-helper | ||
url = git://github.com/rhicspin/root-helper.git | ||
url = git@github.com:zlchang/root-helper.git | ||
[submodule "contrib/opencdev"] | ||
path = contrib/opencdev | ||
url = git://github.com/rhicspin/opencdev.git | ||
url = git@github.com:zlchang/opencdev.git | ||
[submodule "contrib/mysqlpp"] | ||
path = contrib/mysqlpp | ||
url = git://github.com/veprbl/mysqlpp.git | ||
branch = cmake | ||
url = [email protected]:zlchang/mysqlpp.git | ||
[submodule "contrib/polarim-online"] | ||
path = contrib/polarim-online | ||
url = https://github.com/rhicspin/polarim-online.git | ||
url = git@github.com:zlchang/polarim-online.git |
This file contains 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
This file contains 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
This file contains 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
Submodule root-helper
updated
3 files
+1 −0 | utils/CMakeLists.txt | |
+18 −0 | utils/binary.cc | |
+4 −0 | utils/binary.h |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// fit one set of spin U/D detector hits for aymmetry etc. | ||
// | ||
// input: nup[6] - # Up hits in [det = 0-5] | ||
// nup[6] - # Dn hits in [det = 0-5] | ||
// fixpar - integer, bit(s) 0-2 = 1 => fix paramater(2) 0-2 to value in par[0-2] | ||
// | ||
// output: par[3] - results [0]=asymmetry magnitude, [1]=spin tilt (rad.), [2]=lumi asym. | ||
// epar[3] - error | ||
// chi2 - minimized chi-square | ||
// | ||
// | ||
|
||
#include <iostream> | ||
#include <fstream> | ||
|
||
using namespace std; | ||
|
||
namespace afterburner{ | ||
// function prototypes: | ||
void myFcn(int & /*nPar*/, double * /*grad*/ , double &fval, double *par, int /*iflag */ ); | ||
//void myFcn(Int_t & /*nPar*/, Double_t * /*grad*/ , Double_t &fval, Double_t *par, Int_t /*iflag */ ); | ||
pair<double,double> asym_err(double lambda, double nup, double ndn); | ||
void fit1asym(double nup[] , double ndn[] , double par[], double epar[] , double &chi2, int fixpar = 0); | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.