Difference between revisions of "ROOT Analyzer/Running"

From HallCWiki
Jump to: navigation, search
(New page: 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 g...)
 
Line 1: Line 1:
 +
[[category:12GeV Software]]
 
The current Hall C C++ analyzer code does not do anything useful except for reading in Hall C style CTP parameter files.
 
The current Hall C C++ analyzer code does not do anything useful except for reading in Hall C style CTP parameter files.
  

Revision as of 12:14, 14 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

 Double_t ProtonMass = *(Double_t *)gHcParms->Find("proton")->GetValuePointer();
 ProtonMass
 
 Int_t *integerarray = (Int_t *)gHcParms->Find("integerarray")->GetValuePointer();
 integerarray[3]