[1199] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | // This code implementation is the intellectual property of |
---|
| 29 | // the RD44 GEANT4 collaboration. |
---|
| 30 | // |
---|
| 31 | // By copying, distributing or modifying the Program (or any work |
---|
| 32 | // based on the Program) you indicate your acceptance of this statement, |
---|
| 33 | // and all its terms. |
---|
| 34 | // |
---|
| 35 | // $Id: NTSTEventAction.hh,v 1.3 2006/06/29 18:25:28 gunter Exp $ |
---|
| 36 | // GEANT4 tag $Name: HEAD $ |
---|
| 37 | // |
---|
| 38 | // |
---|
| 39 | |
---|
| 40 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
| 41 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
| 42 | |
---|
| 43 | #ifndef NTSTEventAction_h |
---|
| 44 | #define NTSTEventAction_h 1 |
---|
| 45 | |
---|
| 46 | #include "G4UserEventAction.hh" |
---|
| 47 | #include "globals.hh" |
---|
| 48 | |
---|
| 49 | class G4Timer; |
---|
| 50 | class G4Event; |
---|
| 51 | class NTSTEventActionMessenger; |
---|
| 52 | |
---|
| 53 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
| 54 | |
---|
| 55 | class NTSTEventAction : public G4UserEventAction |
---|
| 56 | { |
---|
| 57 | public: |
---|
| 58 | NTSTEventAction(); |
---|
| 59 | ~NTSTEventAction(); |
---|
| 60 | |
---|
| 61 | public: |
---|
| 62 | void BeginOfEventAction(const G4Event* aEvent); |
---|
| 63 | void EndOfEventAction(const G4Event* aEvent); |
---|
| 64 | |
---|
| 65 | void SetDrawFlag(G4String val) {drawFlag = val;}; |
---|
| 66 | |
---|
| 67 | private: |
---|
| 68 | G4Timer* EventTime; |
---|
| 69 | double MeanUserEventTime; |
---|
| 70 | double RmsUserEventTime; |
---|
| 71 | double MeanRealEventTime; |
---|
| 72 | double RmsRealEventTime; |
---|
| 73 | double NumberOfEvents; |
---|
| 74 | double MeanVertices; |
---|
| 75 | double RmsVertices; |
---|
| 76 | double MeanTracks; |
---|
| 77 | double RmsTracks; |
---|
| 78 | G4int calorimeterCollID; // Hits collection ID |
---|
| 79 | |
---|
| 80 | G4String drawFlag; // control the drawing of event |
---|
| 81 | NTSTEventActionMessenger* eventMessenger; |
---|
| 82 | }; |
---|
| 83 | |
---|
| 84 | #endif |
---|
| 85 | |
---|
| 86 | |
---|
| 87 | |
---|