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 
37  void analyze(const edm::Handle<reco::CandidateView> & mctruth,
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 
47  // Tree variables
48  float *mcvx, *mcvy, *mcvz, *mcpt, *mceta, *mcphi;
49  int *mcpid, *mcstatus;
54  // input variables
56 
57 };
58 
59 #endif
int * mcpid
Definition: HLTMCtruth.h:49
bool _Gen
Definition: HLTMCtruth.h:55
float * mcpt
Definition: HLTMCtruth.h:48
float pthatf
Definition: HLTMCtruth.h:52
Definition: weight.py:1
float weightf
Definition: HLTMCtruth.h:52
bool _Debug
Definition: HLTMCtruth.h:55
float * mceta
Definition: HLTMCtruth.h:48
int nmcpart
Definition: HLTMCtruth.h:50
int nzmumu
Definition: HLTMCtruth.h:50
float ptEleMax
Definition: HLTMCtruth.h:53
float ptMuMax
Definition: HLTMCtruth.h:53
float * mcvy
Definition: HLTMCtruth.h:48
int npubx0
Definition: HLTMCtruth.h:51
bool _Monte
Definition: HLTMCtruth.h:55
float weightsignf
Definition: HLTMCtruth.h:52
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:48
float * mcphi
Definition: HLTMCtruth.h:48
float * mcvz
Definition: HLTMCtruth.h:48
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition: HLTMCtruth.cc:24
int nwmunu
Definition: HLTMCtruth.h:50
Definition: tree.py:1
std::vector< std::string > MyStrings
Definition: HLTMCtruth.h:22
int npuvertbx0
Definition: HLTMCtruth.h:51
int * mcstatus
Definition: HLTMCtruth.h:49