Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 /* 26 /* 27 * =========================================== 27 * ============================================================================= 28 * 28 * 29 * Filename: CexmcEventSObject.hh 29 * Filename: CexmcEventSObject.hh 30 * 30 * 31 * Description: event data serialization h 31 * Description: event data serialization helper 32 * 32 * 33 * Version: 1.0 33 * Version: 1.0 34 * Created: 30.12.2009 16:54:30 34 * Created: 30.12.2009 16:54:30 35 * Revision: none 35 * Revision: none 36 * Compiler: gcc 36 * Compiler: gcc 37 * 37 * 38 * Author: Alexey Radkov (), 38 * Author: Alexey Radkov (), 39 * Company: PNPI 39 * Company: PNPI 40 * 40 * 41 * =========================================== 41 * ============================================================================= 42 */ 42 */ 43 43 44 #ifndef CEXMC_EVENT_SOBJECT_HH 44 #ifndef CEXMC_EVENT_SOBJECT_HH 45 #define CEXMC_EVENT_SOBJECT_HH 45 #define CEXMC_EVENT_SOBJECT_HH 46 46 47 #ifdef CEXMC_USE_PERSISTENCY 47 #ifdef CEXMC_USE_PERSISTENCY 48 48 49 #include <boost/serialization/vector.hpp> 49 #include <boost/serialization/vector.hpp> 50 #include "CexmcSimpleTrackPointInfoStore.hh" 50 #include "CexmcSimpleTrackPointInfoStore.hh" 51 #include "CexmcSimpleProductionModelDataStore. 51 #include "CexmcSimpleProductionModelDataStore.hh" 52 #include "CexmcCommon.hh" 52 #include "CexmcCommon.hh" 53 53 54 54 55 struct CexmcEventSObject 55 struct CexmcEventSObject 56 { 56 { 57 G4int e 57 G4int eventId; 58 58 59 G4bool e 59 G4bool edDigitizerMonitorHasTriggered; 60 60 61 G4double m 61 G4double monitorED; 62 62 63 G4double v 63 G4double vetoCounterEDLeft; 64 64 65 G4double v 65 G4double vetoCounterEDRight; 66 66 67 G4double c 67 G4double calorimeterEDLeft; 68 68 69 G4double c 69 G4double calorimeterEDRight; 70 70 71 CexmcEnergyDepositCalorimeterCollection c 71 CexmcEnergyDepositCalorimeterCollection calorimeterEDLeftCollection; 72 72 73 CexmcEnergyDepositCalorimeterCollection c 73 CexmcEnergyDepositCalorimeterCollection calorimeterEDRightCollection; 74 74 75 CexmcSimpleTrackPointInfoStore m 75 CexmcSimpleTrackPointInfoStore monitorTP; 76 76 77 CexmcSimpleTrackPointInfoStore t 77 CexmcSimpleTrackPointInfoStore targetTPBeamParticle; 78 78 79 CexmcSimpleTrackPointInfoStore t 79 CexmcSimpleTrackPointInfoStore targetTPOutputParticle; 80 80 81 CexmcSimpleTrackPointInfoStore t 81 CexmcSimpleTrackPointInfoStore targetTPNucleusParticle; 82 82 83 CexmcSimpleTrackPointInfoStore targetTPOu 83 CexmcSimpleTrackPointInfoStore targetTPOutputParticleDecayProductParticle1; 84 84 85 CexmcSimpleTrackPointInfoStore targetTPOu 85 CexmcSimpleTrackPointInfoStore targetTPOutputParticleDecayProductParticle2; 86 86 87 CexmcSimpleTrackPointInfoStore v 87 CexmcSimpleTrackPointInfoStore vetoCounterTPLeft; 88 88 89 CexmcSimpleTrackPointInfoStore v 89 CexmcSimpleTrackPointInfoStore vetoCounterTPRight; 90 90 91 CexmcSimpleTrackPointInfoStore c 91 CexmcSimpleTrackPointInfoStore calorimeterTPLeft; 92 92 93 CexmcSimpleTrackPointInfoStore c 93 CexmcSimpleTrackPointInfoStore calorimeterTPRight; 94 94 95 CexmcSimpleProductionModelDataStore p 95 CexmcSimpleProductionModelDataStore productionModelData; 96 96 97 template < typename Archive > 97 template < typename Archive > 98 void serialize( Archive & archive, const 98 void serialize( Archive & archive, const unsigned int version ); 99 }; 99 }; 100 100 101 101 102 template < typename Archive > 102 template < typename Archive > 103 void CexmcEventSObject::serialize( Archive & 103 void CexmcEventSObject::serialize( Archive & archive, const unsigned int ) 104 { 104 { 105 archive & eventId; 105 archive & eventId; 106 archive & edDigitizerMonitorHasTriggered; 106 archive & edDigitizerMonitorHasTriggered; 107 archive & monitorED; 107 archive & monitorED; 108 archive & vetoCounterEDLeft; 108 archive & vetoCounterEDLeft; 109 archive & vetoCounterEDRight; 109 archive & vetoCounterEDRight; 110 archive & calorimeterEDLeft; 110 archive & calorimeterEDLeft; 111 archive & calorimeterEDRight; 111 archive & calorimeterEDRight; 112 archive & calorimeterEDLeftCollection; 112 archive & calorimeterEDLeftCollection; 113 archive & calorimeterEDRightCollection; 113 archive & calorimeterEDRightCollection; 114 archive & monitorTP; 114 archive & monitorTP; 115 archive & targetTPBeamParticle; 115 archive & targetTPBeamParticle; 116 archive & targetTPOutputParticle; 116 archive & targetTPOutputParticle; 117 archive & targetTPNucleusParticle; 117 archive & targetTPNucleusParticle; 118 archive & targetTPOutputParticleDecayProdu 118 archive & targetTPOutputParticleDecayProductParticle1; 119 archive & targetTPOutputParticleDecayProdu 119 archive & targetTPOutputParticleDecayProductParticle2; 120 archive & vetoCounterTPLeft; 120 archive & vetoCounterTPLeft; 121 archive & vetoCounterTPRight; 121 archive & vetoCounterTPRight; 122 archive & calorimeterTPLeft; 122 archive & calorimeterTPLeft; 123 archive & calorimeterTPRight; 123 archive & calorimeterTPRight; 124 archive & productionModelData; 124 archive & productionModelData; 125 } 125 } 126 126 127 #endif 127 #endif 128 128 129 #endif 129 #endif 130 130 131 131