Difference between revisions of "ROOT Analyzer/Running"
From HallCWiki
Jump to navigationJump to searchm (Analyzer/Running moved to ROOT Analyzer/Running) |
|||
Line 16: | Line 16: | ||
Some examples of accessing individual variables | Some examples of accessing individual variables | ||
− | Double_t ProtonMass = *(Double_t *)gHcParms->Find("proton")->GetValuePointer(); | + | analyzer [3] Double_t ProtonMass = *(Double_t *)gHcParms->Find("proton")->GetValuePointer(); |
− | ProtonMass | + | analyzer [4] ProtonMass |
− | + | (Double_t)9.38272000000000048e+02 | |
− | Int_t *integerarray = (Int_t *)gHcParms->Find("integerarray")->GetValuePointer(); | + | |
− | integerarray[3] | + | analyzer [5] Int_t *integerarray = (Int_t *)gHcParms->Find("integerarray")->GetValuePointer(); |
+ | analyzer [6] integerarray[3] | ||
+ | (Int_t)4 |
Revision as of 15:26, 16 March 2012
The current Hall C C++ analyzer code does not do anything useful except for reading in Hall C style CTP parameter files.
To run the analyzer, type
./hcana
Once it starts up, type
gHcParms->Load("hctest.input")
To dump the parameters read
gHcParms->PrintFull()
Some examples of accessing individual variables
analyzer [3] Double_t ProtonMass = *(Double_t *)gHcParms->Find("proton")->GetValuePointer(); analyzer [4] ProtonMass (Double_t)9.38272000000000048e+02
analyzer [5] Int_t *integerarray = (Int_t *)gHcParms->Find("integerarray")->GetValuePointer(); analyzer [6] integerarray[3] (Int_t)4