1 |
puigh |
1.1 |
#ifndef ProdTutorial_CUmcparticle_h
|
2 |
|
|
#define ProdTutorial_CUmcparticle_h
|
3 |
|
|
|
4 |
|
|
#include <vector>
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
// a simple class
|
8 |
|
|
struct CUmcparticle
|
9 |
|
|
{
|
10 |
puigh |
1.2 |
explicit CUmcparticle(double v, int c):energy(v),et(v),pt(v),px(v),py(v),pz(v),phi(v),eta(v),theta(v),mass(v),vx(v),vy(v),vz(v),motherET(v),motherPT(v),motherPhi(v),motherEta(v),grandMotherET(v),grandMotherPT(v),grandMotherPhi(v),grandMotherEta(v),charge(c),id(c),status(c),motherId(c),grandMotherId(c),grandMotherCharge(c) { }
|
11 |
|
|
CUmcparticle():energy(-99),et(-99),pt(-99),px(-99),py(-99),pz(-99),phi(-99),eta(-99),theta(-99),mass(-99),vx(-99),vy(-99),vz(-99),motherET(-99),motherPT(-99),motherPhi(-99),motherEta(-99),grandMotherET(-99),grandMotherPT(-99),grandMotherPhi(-99),grandMotherEta(-99),charge(-99),id(-99),status(-99),motherId(-99),motherCharge(-99),grandMotherId(-99),grandMotherCharge(-99) { }
|
12 |
puigh |
1.1 |
double energy,et,pt,px,py,pz,phi,eta,theta,mass,vx,vy,vz,motherET,motherPT,motherPhi,motherEta,grandMotherET,grandMotherPT,grandMotherPhi,grandMotherEta,ggrandMotherET,ggrandMotherPT,ggrandMotherPhi,ggrandMotherEta;
|
13 |
puigh |
1.2 |
int charge,id,status,motherId,motherCharge,grandMotherId,grandMotherCharge;
|
14 |
puigh |
1.1 |
};
|
15 |
|
|
|
16 |
|
|
// this is our new product, it is simply a
|
17 |
|
|
// collection of CUmcparticle held in an std::vector
|
18 |
|
|
typedef std::vector<CUmcparticle> CUmcparticleCollection;
|
19 |
|
|
|
20 |
|
|
#endif
|