19 printf(
"In myMC::myMC\n");
28 printf(
"In myMC::~myMC\n");
36 printf(
"In myMC::Clear\n");
62 printf(
"In myMC::init\n");
72 myMCFiller::myMCFiller(){
74 printf(
"In myMCFiller::myMCFiller\n");
81 myMCFiller::~myMCFiller(){
83 printf(
"In myMCFiller::~myMCFiller\n");
89 void myMCFiller::Clear(Option_t* option){
91 printf(
"In myMCFiller::Clear\n");
99 void myMCFiller::init(){
101 printf(
"In myMCFiller::init\n");
109 void myMCFiller::Fill(MCEventgR* _mcevent){
117 Charge = mcevent->Charge;
118 Momentum = fabs(mcevent->Momentum);
119 MomentumSigned = Charge*Momentum/fabs(Charge);
122 for(
int i_comp=0; i_comp<3; i_comp++){
123 Coo[i_comp]=mcevent->Coo[i_comp];
124 Dir[i_comp]=mcevent->Dir[i_comp];
127 costheta=mcevent->Dir[2];
128 Theta=TMath::ACos(costheta);
129 cossqtheta=TMath::Power(costheta, 2.0);
130 sintheta=TMath::Sin(Theta);
131 Phi=-1.0*TMath::ATan2(mcevent->Dir[1], -1.0*mcevent->Dir[0]);
132 sinphi=TMath::Sin(Phi);
141 #endif //#ifdef _WITHGBATCH_