@@ -620,8 +620,6 @@ jerror_t DEventSourceREST::Extract_DBeamPhoton(hddm_r::HDDM *record,
620
620
{
621
621
if (locTAGMiter->getJtag () != tag)
622
622
continue ;
623
-
624
- DBeamPhoton* gamma = new DBeamPhoton ();
625
623
626
624
// load the counter number (if it exists) and set the energy based on the counter
627
625
unsigned int column = 0 ;
@@ -654,6 +652,8 @@ jerror_t DEventSourceREST::Extract_DBeamPhoton(hddm_r::HDDM *record,
654
652
continue ;
655
653
}
656
654
655
+ DBeamPhoton* gamma = new DBeamPhoton ();
656
+
657
657
double Elo_tagm = tagmGeom->getElow (column);
658
658
double Ehi_tagm = tagmGeom->getEhigh (column);
659
659
double Ebeam_tagm = (Elo_tagm + Ehi_tagm)/2 .;
@@ -682,8 +682,6 @@ jerror_t DEventSourceREST::Extract_DBeamPhoton(hddm_r::HDDM *record,
682
682
if (locTAGHiter->getJtag () != tag)
683
683
continue ;
684
684
685
- DBeamPhoton* gamma = new DBeamPhoton ();
686
-
687
685
// load the counter number (if it exists) and set the energy based on the counter
688
686
unsigned int counter = 0 ;
689
687
hddm_r::TaghChannelList &locTaghChannelList = locTAGHiter->getTaghChannels ();
@@ -715,6 +713,8 @@ jerror_t DEventSourceREST::Extract_DBeamPhoton(hddm_r::HDDM *record,
715
713
continue ;
716
714
}
717
715
716
+ DBeamPhoton* gamma = new DBeamPhoton ();
717
+
718
718
double Elo_tagh = taghGeom->getElow (counter);
719
719
double Ehi_tagh = taghGeom->getEhigh (counter);
720
720
double Ebeam_tagh = (Elo_tagh + Ehi_tagh)/2 .;
0 commit comments