@@ -100,6 +100,8 @@ void A2CBOutput::SetBranches(){
100100 G4cout << " Storing IDs of primary particles" << G4endl;
101101 fTree ->Branch (" pcryst" ,fpcryst," fpcryst[fnhits]/I" ,basket);
102102 fTree ->Branch (" pctaps" ,fpctaps," fpctaps[fntaps]/I" ,basket);
103+ fTree ->Branch (" pveto" ,fpveto," fpveto[fvhits]/I" ,basket);
104+ fTree ->Branch (" pvtaps" ,fpvtaps," fpvtaps[fnvtaps]/I" ,basket);
103105 }
104106 fTree ->Branch (" ivtaps" ,fivtaps," fictaps[fnvtaps]/I" ,basket);
105107 fTree ->Branch (" idpart" ,fidpart," fidpart[fnpart]/I" ,basket);
@@ -175,6 +177,7 @@ void A2CBOutput::WriteHit(G4HCofThisEvent* HitsColl){
175177 A2Hit* hit=static_cast <A2Hit*>(hc->GetHit (ii));
176178 fevtaps[ii]=hit->GetEdep ()/GeV;
177179 fivtaps[ii]=hit->GetID ();
180+ fpvtaps[ii]=hit->GetParticle ();
178181 }
179182 }
180183 if (hc->GetName ()==" A2SDHitsPIDSD" ){
@@ -184,6 +187,7 @@ void A2CBOutput::WriteHit(G4HCofThisEvent* HitsColl){
184187 feveto[ii]=hit->GetEdep ()/GeV;
185188 ftveto[ii]=hit->GetTime ()/ns;
186189 fiveto[ii]=hit->GetID ();
190+ fpveto[ii]=hit->GetParticle ();
187191 }
188192 }
189193 if (hc->GetName ().contains (" A2MWPCSD" )){
0 commit comments