Skip to content
r3dunlop edited this page Sep 23, 2014 · 12 revisions

HOME > RUNNING GRSISORT > USER FILES

The two files used for creating user defined histograms from the fragment tree are:

  1. UserInitObj.h, which initializes the histograms
  2. UserFillObj.h, which gives the rules on how to fill the histograms
#UserInitObj.h The **UserInitObj.h** file is where we *initialize* the histograms to be created during the fragment sort. A sample of initializing histograms is as follows: ```c++ GetOutputList()->Add(new TH1D("Charge_0x0000","Charge_0x0000",8000,0,4000)); GetOutputList()->Add(new TH1D("Charge_0x0001","Charge_0x0001",8000,0,4000));

GetOutputList()->Add(new TH2D("hp_charge","Channel vs Charge",64,0,64,4000,0,4000));




<a name="userfill" />
#UserFillObj.h
Clone this wiki locally