1 #ifndef MyBranch_TestTriplet_H
2 #define MyBranch_TestTriplet_H 1
6 #include<EVENT/MCParticle.h>
7 #include<EVENT/SimTrackerHit.h>
25 int isCreatedInSimulation;
27 int vertexIsNotEndpointOfParent;
28 int isDecayedInTracker;
29 int isDecayedInCalorimeter;
45 d0=0; phi0=0; omega=0; z0=0; tanL=0;
46 nhits=0; nvxdhits=0; nsithits=0; nftdhits=0; ntpchits=0; nsethits=0;
48 void BasicInitialize(MCParticle* mcp);
51 void MCPStatus::BasicInitialize(MCParticle* mcp){
53 energy = mcp->getEnergy();
54 charge = mcp->getCharge();
55 mass = mcp->getMass();
56 time = mcp->getTime();
57 px = mcp->getMomentum()[0];
58 py = mcp->getMomentum()[1];
59 pz = mcp->getMomentum()[2];
60 Pt = sqrt(pow(px,2) + pow(py,2) );
61 Pabs = sqrt(pow(px,2) + pow(py,2) + pow(pz,2));
62 vx = mcp->getVertex()[0];
63 vy = mcp->getVertex()[1];
64 vz = mcp->getVertex()[2];
65 isCreatedInSimulation = mcp->isCreatedInSimulation();
66 isBackscatter = mcp->isBackscatter();
67 vertexIsNotEndpointOfParent = mcp->vertexIsNotEndpointOfParent();
68 isDecayedInTracker = mcp->isDecayedInTracker();
69 isDecayedInCalorimeter = mcp->isDecayedInCalorimeter();
70 hasLeftDetector = mcp->hasLeftDetector();
71 isStopped = mcp->isStopped();
Definition: MyBranch_TestTriplet.h:9
Definition: MyBranch_TestTriplet.h:75