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 //
18 
19 // system include files
20 #include <iostream>
21 #include <memory>
22 #include <map>
23 #include <vector>
24 #include <string>
25 
26 // user include files
32 
35 
36 #include "G4Step.hh"
37 #include "G4Track.hh"
38 #include "G4ThreeVector.hh"
39 
40 #include <boost/cstdint.hpp>
41 
43  public Observer<const BeginOfEvent *>,
44  public Observer<const EndOfEvent *> {
45 
46 public:
47 
49  virtual ~HcalTB02Analysis();
50 
51  virtual void produce(edm::Event&, const edm::EventSetup&);
52 
53 private:
54 
55  HcalTB02Analysis(const HcalTB02Analysis&); // stop default
57 
58  // observer methods
59  void update(const BeginOfEvent * evt);
60  void update(const EndOfEvent * evt);
61 
63  void clear();
64  void finish();
65 
66 private:
67 
68  // Private Tuples
70 
71  // to read from parameter set
72  bool hcalOnly;
74  std::vector<std::string> names;
75 
76  //To be saved
77  std::map<int,float> energyInScints, energyInCrystals;
78  std::map<int,float> primaries;
83  int maxTime;
88  };
89 
90 #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