Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
MuonAnalysis
MomentumScaleCalibration
bin
MuScleFitTreeProvenance.cc
Go to the documentation of this file.
1
#ifndef MuScleFitTreeProvenance_cc
2
#define MuScleFitTreeProvenance_cc
3
4
#include <iostream>
5
6
#include <TH1F.h>
7
#include <TROOT.h>
8
#include <TFile.h>
9
#include <TSystem.h>
10
11
#include "
FWCore/FWLite/interface/AutoLibraryLoader.h
"
12
#include "
PhysicsTools/FWLite/interface/TFileService.h
"
13
#include "
MuonAnalysis/MomentumScaleCalibration/interface/MuScleFitProvenance.h
"
14
15
int
main
(
int
argc
,
char
*
argv
[])
16
{
17
if
( argc != 2 ) {
18
std::cout
<<
"Please provide the name of the file with file: or rfio: as needed"
<< std::endl;
19
return
1;
20
}
21
std::string
fileName
(argv[1]);
22
if
( fileName.find(
"file:"
) != 0 && fileName.find(
"rfio:"
) != 0 ) {
23
std::cout
<<
"Please provide the name of the file with file: or rfio: as needed"
<< std::endl;
24
return
1;
25
}
26
27
std::cout
<<
"Reading provenance information from the tree:"
<< std::endl;
28
29
// open input file (can be located on castor)
30
TFile* inFile = TFile::Open(fileName.c_str());
31
32
MuScleFitProvenance
* provenance = (
MuScleFitProvenance
*)(inFile->Get(
"MuScleFitProvenance"
));
33
std::cout
<<
"MuonType = "
<< provenance->muonType << std::endl;
34
35
return
0;
36
}
37
38
#endif
AutoLibraryLoader.h
MuScleFitProvenance.h
convertXMLtoSQLite_cfg.fileName
tuple fileName
Definition:
convertXMLtoSQLite_cfg.py:12
main
int main(int argc, char **argv)
Definition:
aligncond_split_iov.cc:169
MuScleFitProvenance
Definition:
MuScleFitProvenance.h:10
TFileService.h
dirstructure.argv
argv
Definition:
dirstructure.py:20
dir2webdir.argc
tuple argc
Definition:
dir2webdir.py:41
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:121
Generated for CMSSW Reference Manual by
1.8.5