test
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 // --------------------------------------------------------
9 
10 #include <string>
11 #include <vector>
12 
13 class HPDNoiseData;
15 class TFile;
16 class TTree;
17 
19  public:
20  HPDNoiseMaker (const std::string& fFileName);
21  ~HPDNoiseMaker ();
22 
24  int addHpd (const std::string& fName);
26  void setRate (const std::string& fName, float fDischargeRate, float fIonFeedbackFirstPeakRate, float fIonFeedbackSecondPeakRate, float fElectronEmissionRate);
28  void newHpdEvent (const std::string& mName, const HPDNoiseData& mData);
30  void newHpdEvent (size_t i, const HPDNoiseData& mData);
32  unsigned long totalEntries (const std::string& mName) const;
33 
34  private:
37 
38  TFile* mFile;
39  std::vector <TTree*> mTrees;
40  std::vector <std::string> mNames;
42 };
43 
44 #endif
int i
Definition: DBlmapReader.cc:9
HPDNoiseDataCatalog * mCatalog
Definition: HPDNoiseMaker.h:41
std::vector< std::string > mNames
Definition: HPDNoiseMaker.h:40
HPDNoiseMaker(const std::string &fFileName)
std::vector< TTree * > mTrees
Definition: HPDNoiseMaker.h:39
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