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 
18 
20 
21 typedef std::vector<std::string> MyStrings;
22 
29 class HLTMCtruth {
30 public:
31  HLTMCtruth();
32 
33  void setup(const edm::ParameterSet& pSet, TTree* tree);
34 
36  void analyze(const edm::Handle<reco::CandidateView> & mctruth,
37  const double & pthat,
38  const edm::Handle<std::vector<SimTrack> > & simTracks,
39  const edm::Handle<std::vector<SimVertex> > & simVertices,
40  TTree* tree);
41 
42 private:
43 
44  // Tree variables
45  float *mcvx, *mcvy, *mcvz, *mcpt, *mceta, *mcphi;
46  int *mcpid, *mcstatus;
48  float pthatf;
50  // input variables
51  bool _Monte,_Debug;
52 
53 };
54 
55 #endif
int * mcpid
Definition: HLTMCtruth.h:46
float * mcpt
Definition: HLTMCtruth.h:45
float pthatf
Definition: HLTMCtruth.h:48
bool _Debug
Definition: HLTMCtruth.h:51
float * mceta
Definition: HLTMCtruth.h:45
int nmcpart
Definition: HLTMCtruth.h:47
int nzmumu
Definition: HLTMCtruth.h:47
float ptEleMax
Definition: HLTMCtruth.h:49
float ptMuMax
Definition: HLTMCtruth.h:49
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, TTree *tree)
Definition: HLTMCtruth.cc:69
float * mcvy
Definition: HLTMCtruth.h:45
bool _Monte
Definition: HLTMCtruth.h:51
std::vector< std::string > MyStrings
EgammaCoreTools.
Definition: HLTAlCa.h:39
float * mcvx
Definition: HLTMCtruth.h:45
float * mcphi
Definition: HLTMCtruth.h:45
float * mcvz
Definition: HLTMCtruth.h:45
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition: HLTMCtruth.cc:23
int nwmunu
Definition: HLTMCtruth.h:47
int * mcstatus
Definition: HLTMCtruth.h:46