119 cout<<
"error="<<error<<
" from TDOMParser\n";
120 cout<<
"==============================================================\n";
121 cout<<
"Maybe the file testUnfold7binning.xml is missing?\n";
122 cout<<
"The content of the file is included in the comments section\n";
123 cout<<
"of this macro \"testUnfold7b.C\"\n";
124 cout<<
"==============================================================\n";
139 cout<<
"could not read 'detector' binning\n";
144 cout<<
"could not read 'generator' binning\n";
173 cout<<
"could not read 'data' tree\n";
186 cout<<
"loop over data events\n";
188#define VAR_REC (ptRec[2])
189#define VAR_GEN (ptGen[2])
234 cout<<
"could not read 'signal' tree\n";
242 signalTree->SetBranchAddress(
"weight",&weight);
245 cout<<
"loop over MC signal events\n";
275 cout<<
"could not read 'background' tree\n";
278 bgrTree->ResetBranchAddresses();
282 bgrTree->SetBranchAddress(
"weight",&weight);
283 bgrTree->SetBranchStatus(
"*",1);
285 cout<<
"loop over MC background events\n";
int Int_t
Signed integer 4 bytes (int)
float Float_t
Float 4 bytes (float)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TSystem * gSystem
virtual TXMLDocument * GetXMLDocument() const
Returns the TXMLDocument.
Int_t ParseFile(const char *filename) override
Parse the XML file where filename is the XML file name.
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
TH1 is the base class of all histogram classes in ROOT.
static void SetDefaultSumw2(Bool_t sumw2=kTRUE)
When this static function is called with sumw2=kTRUE, all new histograms will automatically activate ...
Service class for 2-D histogram classes.
virtual const char * UnixPathName(const char *unixpathname)
Convert from a local pathname to a Unix pathname.
virtual TString GetDirName(const char *pathname)
Return the directory name in pathname.
A TTree represents a columnar dataset.
static TUnfoldBinningXML * ImportXML(const TXMLDocument *document, const char *name)
import a binning scheme from an XML file
Binning schemes for use with the unfolding algorithm TUnfoldDensity.
static TH2D * CreateHistogramOfMigrations(TUnfoldBinning const *xAxis, TUnfoldBinning const *yAxis, char const *histogramName, Bool_t originalXAxisBinning=kFALSE, Bool_t originalYAxisBinning=kFALSE, char const *histogramTitle=nullptr)
create a TH2D histogram capable to hold the bins of the two input binning schemes on the x and y axes...
TXMLDocument contains a pointer to an xmlDoc structure, after the parser returns a tree built during ...