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
HLTMCtruth::mcstatus
int * mcstatus
Definition: HLTMCtruth.h:48
PileupSummaryInfo.h
HLTMCtruth::weightf
float weightf
Definition: HLTMCtruth.h:51
HLTMCtruth::_Debug
bool _Debug
Definition: HLTMCtruth.h:54
HLTBitAnalyser_cfi.mctruth
mctruth
GEN objects.
Definition: HLTBitAnalyser_cfi.py:17
HLTMCtruth::_Gen
bool _Gen
Definition: HLTMCtruth.h:54
tree
Definition: tree.py:1
TrackCandidateProducer_cfi.simTracks
simTracks
Definition: TrackCandidateProducer_cfi.py:15
HLTMCtruth::mcpid
int * mcpid
Definition: HLTMCtruth.h:48
HLTMCtruth::nzmumu
int nzmumu
Definition: HLTMCtruth.h:49
HLTMCtruth::mcpt
float * mcpt
Definition: HLTMCtruth.h:47
HLTMCtruth::ptMuMax
float ptMuMax
Definition: HLTMCtruth.h:52
edm::Handle
Definition: AssociativeIterator.h:50
HLTMCtruth::nbb
int nbb
Definition: HLTMCtruth.h:49
CaloMETCollection.h
HLTMCtruth::ptEleMax
float ptEleMax
Definition: HLTMCtruth.h:52
HLTMCtruth::nzee
int nzee
Definition: HLTMCtruth.h:49
HLTMCtruth::mceta
float * mceta
Definition: HLTMCtruth.h:47
SimVertex.h
HLTMCtruth::nel3
int nel3
Definition: HLTMCtruth.h:49
HLTMCtruth::_Monte
bool _Monte
Definition: HLTMCtruth.h:54
HLTMCtruth::nmcpart
int nmcpart
Definition: HLTMCtruth.h:49
edm::ParameterSet
Definition: ParameterSet.h:47
HLTMCtruth::npubx0
int npubx0
Definition: HLTMCtruth.h:50
HLTMCtruth::mcvx
float * mcvx
Definition: HLTMCtruth.h:47
HLTMCtruth::mcvy
float * mcvy
Definition: HLTMCtruth.h:47
HLTMCtruth::nwenu
int nwenu
Definition: HLTMCtruth.h:49
HLTMCtruth
Definition: HLTMCtruth.h:30
HLTMCtruth::setup
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition: HLTMCtruth.cc:23
HLTMCtruth::weightsignf
float weightsignf
Definition: HLTMCtruth.h:51
HLTMCtruth::nmu3
int nmu3
Definition: HLTMCtruth.h:49
HLTMCtruth::analyze
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
HLTMCtruth::npuvertbx0
int npuvertbx0
Definition: HLTMCtruth.h:50
HLTMCtruth::mcvz
float * mcvz
Definition: HLTMCtruth.h:47
Candidate.h
HGCalValidator_cfi.simVertices
simVertices
Definition: HGCalValidator_cfi.py:57
SimTrack.h
ParameterSet.h
HepMCProduct.h
HLTMCtruth::nwmunu
int nwmunu
Definition: HLTMCtruth.h:49
MyStrings
std::vector< std::string > MyStrings
Definition: HLTMCtruth.h:22
HLTMCtruth::mcphi
float * mcphi
Definition: HLTMCtruth.h:47
weight
Definition: weight.py:1
HLTMCtruth::HLTMCtruth
HLTMCtruth()
Definition: HLTMCtruth.cc:15
HLTMCtruth::nab
int nab
Definition: HLTMCtruth.h:49
HLTMCtruth::pthatf
float pthatf
Definition: HLTMCtruth.h:51