ATLAS Offline Software
Functions
MuonInsideOutValidation.cxx File Reference
#include "TChain.h"
#include "TString.h"
#include "TFile.h"
#include "TSystem.h"
#include <string>
#include <iostream>
#include <TApplication.h>
#include "MuonRecValidationNtuples/MuonInsideOutAnalysis.h"
Include dependency graph for MuonInsideOutValidation.cxx:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 16 of file MuonInsideOutValidation.cxx.

16  {
17 
18  TApplication theApp("App", &argc, argv);
19 
20  int data = 0;
21  if( argc > 1 ) {
22  TString str = argv[1];
23  data = str.Atoi();
24  }
25 
26  std::cout << " opening dataset " << data << std::endl;
27  TChain* ntupleToRead = new TChain("data") ;
28  if( data == 1 ) {
29  ntupleToRead->Add("MuonRecoValidation_*.root");
30  }else{
31  ntupleToRead->Add("MuonRecoValidation.root");
32  }
33  TString outName = "MuonRecoAnalysis.root";
34  TFile* output = new TFile(outName,"RECREATE");
35  //std::cout << " creating analysis " << outName << std::endl;
37  analysis.analyse(*ntupleToRead);
38  std::cout << " done, closing file " << std::endl;
39 
40  output->Write();
41  output->Close();
42 }
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
Muon::MuonInsideOutAnalysis
Definition: MuonInsideOutAnalysis.h:18
LArCellNtuple.argv
argv
Definition: LArCellNtuple.py:152
DQHistogramMergeRegExp.argc
argc
Definition: DQHistogramMergeRegExp.py:20
merge.output
output
Definition: merge.py:17
TestSUSYToolsAlg.outName
string outName
Definition: TestSUSYToolsAlg.py:173
python.AppMgr.theApp
theApp
Definition: AppMgr.py:771
str
Definition: BTagTrackIpAccessor.cxx:11