Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:40

0001 #ifndef SimDataFormats_HFShowerLibraryEventInfo_h
0002 #define SimDataFormats_HFShowerLibraryEventInfo_h
0003 
0004 #include <vector>
0005 
0006 class HFShowerLibraryEventInfo {
0007 public:
0008   HFShowerLibraryEventInfo() {}
0009   HFShowerLibraryEventInfo(int events,
0010                            int bins,
0011                            int eventsPerBin,
0012                            float libraryVersion,
0013                            float physListVersion,
0014                            const std::vector<double> &en);
0015 
0016   // total number of events
0017   int totalEvents() const { return fEvents; }
0018   // number of bins
0019   int numberOfBins() const { return fBins; }
0020   // number of events per bin
0021   int eventsPerBin() const { return fEventsPerBin; }
0022   // hf shower library version
0023   float showerLibraryVersion() const { return fHFShowerLibVers; }
0024   // physics list version
0025   float physListVersion() const { return fPhyListVers; }
0026   // energy bins
0027   std::vector<double> energyBins() const { return fEnergies; }
0028 
0029 private:
0030   int fEvents, fBins, fEventsPerBin;
0031   float fHFShowerLibVers, fPhyListVers;
0032   std::vector<double> fEnergies;
0033 };
0034 typedef std::vector<HFShowerLibraryEventInfo> HFShowerLibraryEventInfoCollection;
0035 #endif