CMS 3D CMS Logo

HLTMCtruth.h
Go to the documentation of this file.
1 #ifndef HLTMCTRUTH_H
2 #define HLTMCTRUTH_H
3 
4 #include <map>
5 #include <vector>
6 
7 #include <TChain.h>
8 #include <TFile.h>
9 #include <TH1.h>
10 #include <TH2.h>
11 #include <TNamed.h>
12 #include <TROOT.h>
13 
21 
22 typedef std::vector<std::string> MyStrings;
23 
30 class HLTMCtruth {
31 public:
32  HLTMCtruth();
33 
34  void setup(const edm::ParameterSet& pSet, TTree* tree);
35 
38  const double& pthat,
39  const double& weight,
40  const edm::Handle<std::vector<SimTrack> >& simTracks,
41  const edm::Handle<std::vector<SimVertex> >& simVertices,
42  const edm::Handle<std::vector<PileupSummaryInfo> >& PupInfo,
43  TTree* tree);
44 
45 private:
46  // Tree variables
47  float *mcvx, *mcvy, *mcvz, *mcpt, *mceta, *mcphi;
48  int *mcpid, *mcstatus;
52  float ptEleMax, ptMuMax;
53  // input variables
54  bool _Monte, _Debug, _Gen;
55 };
56 
57 #endif
int * mcpid
Definition: HLTMCtruth.h:48
bool _Gen
Definition: HLTMCtruth.h:54
float * mcpt
Definition: HLTMCtruth.h:47
float pthatf
Definition: HLTMCtruth.h:51
Definition: weight.py:1
float weightf
Definition: HLTMCtruth.h:51
bool _Debug
Definition: HLTMCtruth.h:54
float * mceta
Definition: HLTMCtruth.h:47
int nmcpart
Definition: HLTMCtruth.h:49
int nzmumu
Definition: HLTMCtruth.h:49
float ptEleMax
Definition: HLTMCtruth.h:52
float ptMuMax
Definition: HLTMCtruth.h:52
float * mcvy
Definition: HLTMCtruth.h:47
int npubx0
Definition: HLTMCtruth.h:50
bool _Monte
Definition: HLTMCtruth.h:54
float weightsignf
Definition: HLTMCtruth.h:51
void analyze(const edm::Handle< reco::CandidateView > &mctruth, const double &pthat, const double &weight, const edm::Handle< std::vector< SimTrack > > &simTracks, const edm::Handle< std::vector< SimVertex > > &simVertices, const edm::Handle< std::vector< PileupSummaryInfo > > &PupInfo, TTree *tree)
Definition: HLTMCtruth.cc:74
float * mcvx
Definition: HLTMCtruth.h:47
float * mcphi
Definition: HLTMCtruth.h:47
float * mcvz
Definition: HLTMCtruth.h:47
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition: HLTMCtruth.cc:23
int nwmunu
Definition: HLTMCtruth.h:49
Definition: tree.py:1
std::vector< std::string > MyStrings
Definition: HLTMCtruth.h:22
int npuvertbx0
Definition: HLTMCtruth.h:50
int * mcstatus
Definition: HLTMCtruth.h:48