CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalTB02Analysis.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_HcalTestBeam_HcalTB02Analysis_H
2 #define SimG4CMS_HcalTestBeam_HcalTB02Analysis_H
3 // -*- C++ -*-
4 //
5 // Package: HcalTestBeam
6 // Class : HcalTB02Analysis
7 //
14 //
15 // Original Author: Sunanda Banerjee
16 // Created: Thu May 18 10:14:34 CEST 2006
17 // $Id: HcalTB02Analysis.h,v 1.2 2006/11/13 10:32:14 sunanda Exp $
18 //
19 
20 // system include files
21 #include <iostream>
22 #include <memory>
23 #include <map>
24 #include <vector>
25 #include <string>
26 
27 // user include files
33 
36 
37 #include "G4Step.hh"
38 #include "G4Track.hh"
39 #include "G4ThreeVector.hh"
40 
41 #include <boost/cstdint.hpp>
42 
44  public Observer<const BeginOfEvent *>,
45  public Observer<const EndOfEvent *> {
46 
47 public:
48 
50  virtual ~HcalTB02Analysis();
51 
52  virtual void produce(edm::Event&, const edm::EventSetup&);
53 
54 private:
55 
56  HcalTB02Analysis(const HcalTB02Analysis&); // stop default
58 
59  // observer methods
60  void update(const BeginOfEvent * evt);
61  void update(const EndOfEvent * evt);
62 
64  void clear();
65  void finish();
66 
67 private:
68 
69  // Private Tuples
71 
72  // to read from parameter set
73  bool hcalOnly;
75  std::vector<std::string> names;
76 
77  //To be saved
78  std::map<int,float> energyInScints, energyInCrystals;
79  std::map<int,float> primaries;
84  int maxTime;
89  };
90 
91 #endif
std::string fileNameTuple
const HcalTB02Analysis & operator=(const HcalTB02Analysis &)
void fillEvent(HcalTB02HistoClass &)
virtual ~HcalTB02Analysis()
std::map< int, float > energyInCrystals
HcalTB02Analysis(const edm::ParameterSet &p)
HcalTB02Histo * histo
std::map< int, float > primaries
std::map< int, float > energyInScints
void update(const BeginOfEvent *evt)
This routine will be called when the appropriate signal arrives.
virtual void produce(edm::Event &, const edm::EventSetup &)
std::vector< std::string > names