ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/PileupInfo.h
Revision: 1.4
Committed: Sat Oct 22 15:05:05 2011 UTC (13 years, 6 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_025a
Changes since 1.3: +11 -8 lines
Log Message:
add poisson mean to pileupinfo

File Contents

# User Rev Content
1 mzanetti 1.1 //--------------------------------------------------------------------------------------------------
2 bendavid 1.4 // $Id: PileupInfo.h,v 1.3 2011/03/25 16:51:56 bendavid Exp $
3 mzanetti 1.1 //
4     // Met
5     //
6     // Class to store missing transverse energy information.
7     // This is the base class for various specific kinds of missing energy (CaloMet, PFMet, etc.),
8     // but can also be used directly.
9     //
10     // Authors: M. Zanetti
11     //--------------------------------------------------------------------------------------------------
12    
13     #ifndef MITANA_DATATREE_PILEUPINFO_H
14     #define MITANA_DATATREE_PILEUPINFO_H
15    
16     #include "MitAna/DataTree/interface/DataBase.h"
17     #include "MitAna/DataTree/interface/Particle.h"
18    
19     namespace mithep
20     {
21     class PileupInfo : public DataBase
22     {
23     public:
24     PileupInfo():
25 mzanetti 1.2 bunchCrossing(0),
26 bendavid 1.4 num_PU_vertices(0),
27     num_PU_mean(0)
28 mzanetti 1.1 { };
29    
30 mzanetti 1.2 const Int_t GetBunchCrossing() const { return bunchCrossing; }
31 mzanetti 1.1 const UInt_t GetPU_NumInteractions() const { return num_PU_vertices; }
32 bendavid 1.4 const Float_t GetPU_NumMean() const { return num_PU_mean; }
33 mzanetti 1.1 const FArrDouble32 &GetPU_zPositions() const { return zPositions; }
34     const FArrDouble32 &GetPU_sumpT_lowpT() const { return sumpT_lowpT; }
35     const FArrDouble32 &GetPU_sumpT_highpT() const { return sumpT_highpT; }
36     const FArrUInt &GetPU_ntrks_lowpT() const { return ntrks_lowpT; }
37     const FArrUInt &GetPU_ntrks_highpT() const { return ntrks_highpT; }
38    
39     virtual PileupInfo *MakeCopy() const { return new PileupInfo(*this); }
40 mzanetti 1.2
41 bendavid 1.4 void SetBunchCrossing(Int_t i) { bunchCrossing = i; }
42     void SetPU_NumInteractions(UInt_t i) { num_PU_vertices = i; }
43     void SetPU_NumMean(Float_t x) { num_PU_mean = x; }
44 mzanetti 1.1 void PushPU_zPositions(Double32_t x) { zPositions.Add(x); }
45     void PushPU_sumpT_lowpT(Double32_t x) { sumpT_lowpT.Add(x); }
46     void PushPU_sumpT_highpT(Double32_t x) { sumpT_highpT.Add(x); }
47 bendavid 1.4 void PushPU_ntrks_lowpT(UInt_t i) { ntrks_lowpT.Add(i); }
48     void PushPU_ntrks_highpT(UInt_t i) { ntrks_highpT.Add(i); }
49 mzanetti 1.1
50     protected:
51 mzanetti 1.2 Int_t bunchCrossing; //bunch crossing
52 mzanetti 1.1 UInt_t num_PU_vertices; //number of PU vertices
53     FArrDouble32 zPositions; //||array positions along z
54     FArrDouble32 sumpT_lowpT; //||array sumpT for lowpT tracks
55     FArrDouble32 sumpT_highpT; //||array sumpT for highT tracks
56     FArrUInt ntrks_lowpT; //||array lowpT tracks
57     FArrUInt ntrks_highpT; //||array highpT tracks
58 bendavid 1.4 Float_t num_PU_mean; //poisson mean from which npu was thrown
59 mzanetti 1.1
60 bendavid 1.4 ClassDef(PileupInfo, 3) // Pileup Information class
61 mzanetti 1.1 };
62     }
63    
64     #endif