StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StarGenStats.h
1 #ifndef __StarGenStats_h__
2 #define __StarGenStats_h__
3 
19 #include "TNamed.h"
20 
21 class StarGenStats : public TNamed
22 {
23  public:
24 
25  StarGenStats(const Char_t *name="stats", const Char_t *title="" );
26  /*
27  StarGenStats( const StarGenStats &other );
28  */
29 
30  ~StarGenStats(){ /* nada */ };
31 
32  Int_t nTried; //*< Number of event generator trials
33  Int_t nSelected; //*< Number of event generator selected events
34  Int_t nAccepted; //*< Number of event generator accepted events
35 
36  Double_t sigmaGen; //*< Estimated event generator cross section
37  Double_t sigmaErr; //*< Estimated event generator cross section error
38  Double_t sumWeightGen; //*< Sum of event generator weights, equal to nAccepted if generator is unbiased. pythia 8's info.weightSum()
39 
40  //
41  // Luminosity is a derived quantity... nAccepted = luminosity * sigmaGen
42  //
43  Double_t luminosity(){ return sumWeightGen / sigmaGen; } //*< Event generator luminosity
44  Double_t luminosityErr(){ return (sigmaErr/sigmaGen)*luminosity(); }
45 
46  //
47  // Filter statistics
48  //
49  Int_t nFilterSeen; //*< Number of events seen by event filter
50  Int_t nFilterAccept; //*< Number of events accepted by event filter
51 
52  Double_t filterAcceptance(){ return Double_t(nFilterAccept)/Double_t(nFilterSeen); }
53  Double_t filterRejection() { return 1.0 - filterAcceptance(); }
54 
55 
56  ClassDef(StarGenStats,1);
57 
58 };
59 
60 #endif
End of run statistics for event generators.
Definition: StarGenStats.h:21