CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HPDNoiseMaker.h
Go to the documentation of this file.
1 #ifndef HPDLibrary_HPDNoiseMaker_h
2 #define HPDLibrary_HPDNoiseMaker_h
3 
4 // --------------------------------------------------------
5 // Engine to store HPD noise events in the library
6 // Project: HPD noise library
7 // Author: F.Ratnikov UMd, Jan. 15, 2008
8 // $Id: HPDNoiseMaker.h,v 1.3 2008/07/21 18:30:03 tyetkin Exp $
9 // --------------------------------------------------------
10 
11 #include <string>
12 #include <vector>
13 
14 class HPDNoiseData;
16 class TFile;
17 class TTree;
18 
20  public:
21  HPDNoiseMaker (const std::string& fFileName);
22  ~HPDNoiseMaker ();
23 
25  int addHpd (const std::string& fName);
27  void setRate (const std::string& fName, float fDischargeRate, float fIonFeedbackFirstPeakRate, float fIonFeedbackSecondPeakRate, float fElectronEmissionRate);
29  void newHpdEvent (const std::string& mName, const HPDNoiseData& mData);
31  void newHpdEvent (size_t i, const HPDNoiseData& mData);
33  unsigned long totalEntries (const std::string& mName) const;
34 
35  private:
38 
39  TFile* mFile;
40  std::vector <TTree*> mTrees;
41  std::vector <std::string> mNames;
43 };
44 
45 #endif
int i
Definition: DBlmapReader.cc:9
HPDNoiseDataCatalog * mCatalog
Definition: HPDNoiseMaker.h:42
std::vector< std::string > mNames
Definition: HPDNoiseMaker.h:41
HPDNoiseMaker(const std::string &fFileName)
std::vector< TTree * > mTrees
Definition: HPDNoiseMaker.h:40
unsigned long totalEntries(const std::string &mName) const
get number of stored events by HPD index
void newHpdEvent(const std::string &mName, const HPDNoiseData &mData)
add new HPD noise event by HPD name
HPDNoiseMaker & operator=(const HPDNoiseMaker &)
void setRate(const std::string &fName, float fDischargeRate, float fIonFeedbackFirstPeakRate, float fIonFeedbackSecondPeakRate, float fElectronEmissionRate)
set noise rate for the instance by using different processes
int addHpd(const std::string &fName)
define new HPD instance