CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTMCtruth.h
Go to the documentation of this file.
1 #ifndef HLTMCTRUTH_H
2 #define HLTMCTRUTH_H
3 
4 #include "TH1.h"
5 #include "TH2.h"
6 #include "TFile.h"
7 #include "TNamed.h"
8 #include <vector>
9 #include <map>
10 #include "TROOT.h"
11 #include "TChain.h"
12 
19 
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 edm::Handle<std::vector<SimTrack> > & simTracks,
40  const edm::Handle<std::vector<SimVertex> > & simVertices,
41  const edm::Handle<std::vector< PileupSummaryInfo > > & PupInfo,
42  TTree* tree);
43 
44 private:
45 
46  // Tree variables
47  float *mcvx, *mcvy, *mcvz, *mcpt, *mceta, *mcphi;
48  int *mcpid, *mcstatus;
51  float pthatf;
53  // input variables
54  bool _Monte,_Debug;
55 
56 };
57 
58 #endif
int * mcpid
Definition: HLTMCtruth.h:48
float * mcpt
Definition: HLTMCtruth.h:47
float pthatf
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
std::vector< std::string > MyStrings
EgammaCoreTools.
Definition: HLTAlCa.h:39
void analyze(const edm::Handle< reco::CandidateView > &mctruth, const double &pthat, 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:70
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
int npuvertbx0
Definition: HLTMCtruth.h:50
int * mcstatus
Definition: HLTMCtruth.h:48