ATLAS Offline Software
Loading...
Searching...
No Matches
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
16int 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;
36 Muon::MuonInsideOutAnalysis analysis(output);
37 analysis.analyse(*ntupleToRead);
38 std::cout << " done, closing file " << std::endl;
39
40 output->Write();
41 output->Close();
42}
43
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
void analyse(TTree &tree)
analyse tree
int main()
Definition hello.cxx:18