ATLAS Offline Software
MuonInsideOutValidation.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "TChain.h"
6 #include "TString.h"
7 #include "TFile.h"
8 #include "TSystem.h"
9 #include <string>
10 #include <iostream>
11 #include <TApplication.h>
12 
14 
15 
16 int main( int argc, char *argv[] ) {
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 }
43 
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
Muon::MuonInsideOutAnalysis
Definition: MuonInsideOutAnalysis.h:18
Muon::MuonInsideOutAnalysis::analyse
void analyse(TTree &tree)
analyse tree
Definition: MuonInsideOutAnalysis.cxx:23
LArCellNtuple.argv
argv
Definition: LArCellNtuple.py:152
main
int main(int argc, char *argv[])
Definition: MuonInsideOutValidation.cxx:16
DQHistogramMergeRegExp.argc
argc
Definition: DQHistogramMergeRegExp.py:20
merge.output
output
Definition: merge.py:17
TestSUSYToolsAlg.outName
string outName
Definition: TestSUSYToolsAlg.py:173
MuonInsideOutAnalysis.h
python.AppMgr.theApp
theApp
Definition: AppMgr.py:771
str
Definition: BTagTrackIpAccessor.cxx:11