ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbbAnalysis/VHbbDataFormats/interface/VHbbEventAuxInfo.h
Revision: 1.13
Committed: Wed Mar 28 08:37:04 2012 UTC (13 years, 1 month ago) by sethzenz
Content type: text/plain
Branch: MAIN
CVS Tags: V21TauCand_0, V21emuCand, EdmV21Apr06, EdmV21Apr10, EdmV21Apr04, EdmV21Apr03, EdmV21Apr2, EdmV21Mar30
Branch point for: V21TauCand, V21emuCandidate
Changes since 1.12: +1 -0 lines
Log Message:
tau truth info

File Contents

# User Rev Content
1 tboccali 1.1 #ifndef VHbbEventAuxInfo__H
2     #define VHbbEventAuxInfo__H
3    
4     #include <TLorentzVector.h>
5     #include <TVector2.h>
6 tboccali 1.12 #include "Math/SMatrix.h"
7 tboccali 1.1 #include <vector>
8 tboccali 1.9 #include<map>
9 tboccali 1.1 class VHbbEventAuxInfo{
10     public:
11    
12    
13     class PrimaryVertexInfo {
14     public:
15 tboccali 1.5 PrimaryVertexInfo() : nVertices (-99){}
16 tboccali 1.1 TVector3 firstPVInPT2,firstPVInProb;
17 tboccali 1.12 ROOT::Math::SMatrix<double, 3, 3, ROOT::Math::MatRepSym<double, 3> > efirstPVInPT2,efirstPVInProb;
18 tboccali 1.5 int nVertices;
19 tboccali 1.1 };
20    
21     class PUInfo{
22     public:
23 degrutto 1.11 PUInfo(): rho(-99), rho25(-99) {}
24 tboccali 1.1 public:
25 degrutto 1.11 float rho, rho25;
26 tboccali 1.9 std::map<int,unsigned int> pus;
27 tboccali 1.1 };
28    
29    
30 tboccali 1.2 class ParticleMCInfo {
31     public:
32 tboccali 1.4 ParticleMCInfo(): status(-99), momid(-99), gmomid(-99), charge(-99){}
33 tboccali 1.2 public:
34     int status;
35     int momid;
36     int gmomid;
37 tboccali 1.4 float charge;
38 tboccali 1.3 TLorentzVector p4;
39 tboccali 1.2 // int ndau;
40     std::vector<int> dauid;
41     std::vector<TLorentzVector> dauFourMomentum;
42     };
43    
44 arizzi 1.7 double genBBDeltaR() const
45 arizzi 1.6 {
46 arizzi 1.7 if(mcB.size() > 0 && mcBbar.size() > 0)
47 arizzi 1.6 return mcB[0].p4.DeltaR(mcBbar[0].p4);
48 arizzi 1.7 else return -99;
49     }
50     double genCCDeltaR() const
51     {
52     if(mcC.size() >=2)
53     return mcC[0].p4.DeltaR(mcC[1].p4);
54     else return -99;
55 arizzi 1.6 }
56    
57 tboccali 1.1 public:
58     PUInfo puInfo;
59 arizzi 1.10 float weightMCProd;
60 tboccali 1.8 PrimaryVertexInfo pvInfo;
61 tboccali 1.2 std::vector<ParticleMCInfo> mcH;
62     std::vector<ParticleMCInfo> mcW;
63     std::vector<ParticleMCInfo> mcZ;
64 tboccali 1.1
65 tboccali 1.2 std::vector<ParticleMCInfo> mcBbar;
66     std::vector<ParticleMCInfo> mcB;
67     std::vector<ParticleMCInfo> mcC;
68 tboccali 1.1
69 sethzenz 1.13 std::vector<ParticleMCInfo> mcTau;
70 tboccali 1.1 };
71     #endif