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/FWLiteEnabler.h
"
12
#include "
PhysicsTools/FWLite/interface/TFileService.h
"
13
#include "
MuonAnalysis/MomentumScaleCalibration/interface/MuScleFitProvenance.h
"
14
15
int
main
(
int
argc
,
char
*
argv
[]) {
16
if
(
argc
!= 2) {
17
std::cout
<<
"Please provide the name of the file with file: or rfio: as needed"
<< std::endl;
18
return
1;
19
}
20
std::string
fileName
(
argv
[1]);
21
if
(
fileName
.find(
"file:"
) != 0 &&
fileName
.find(
"rfio:"
) != 0) {
22
std::cout
<<
"Please provide the name of the file with file: or rfio: as needed"
<< std::endl;
23
return
1;
24
}
25
26
std::cout
<<
"Reading provenance information from the tree:"
<< std::endl;
27
28
// open input file (can be located on castor)
29
TFile* inFile = TFile::Open(
fileName
.c_str());
30
31
MuScleFitProvenance
* provenance = (
MuScleFitProvenance
*)(inFile->Get(
"MuScleFitProvenance"
));
32
std::cout
<<
"MuonType = "
<< provenance->muonType << std::endl;
33
34
return
0;
35
}
36
37
#endif
TFileService.h
MuScleFitProvenance
Definition:
MuScleFitProvenance.h:10
cmsBatch.argv
argv
Definition:
cmsBatch.py:279
dir2webdir.argc
argc
Definition:
dir2webdir.py:39
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
MillePedeFileConverter_cfg.fileName
fileName
Definition:
MillePedeFileConverter_cfg.py:32
main
int main(int argc, char *argv[])
Definition:
MuScleFitTreeProvenance.cc:15
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
MuScleFitProvenance.h
FWLiteEnabler.h
Generated for CMSSW Reference Manual by
1.8.16