Last change
on this file since 1206 was 1125, checked in by Pavel Demin, 11 years ago |
add module Weighter
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id Revision Date
|
File size:
746 bytes
|
Rev | Line | |
---|
[1125] | 1 | #ifndef Weighter_h
|
---|
| 2 | #define Weighter_h
|
---|
| 3 |
|
---|
| 4 | /** \class Weighter
|
---|
| 5 | *
|
---|
| 6 | * Apply a weight depending on PDG code.
|
---|
| 7 | *
|
---|
| 8 | * $Date: 2013-05-26 22:36:00 +0000 (Sun, 26 May 2013) $
|
---|
| 9 | * $Revision: 1125 $
|
---|
| 10 | *
|
---|
| 11 | *
|
---|
| 12 | * \author P. Demin - UCL, Louvain-la-Neuve
|
---|
| 13 | *
|
---|
| 14 | */
|
---|
| 15 |
|
---|
| 16 | #include "classes/DelphesModule.h"
|
---|
| 17 |
|
---|
| 18 | #include <set>
|
---|
| 19 | #include <map>
|
---|
| 20 |
|
---|
| 21 | class TObjArray;
|
---|
| 22 |
|
---|
| 23 | class Weighter: public DelphesModule
|
---|
| 24 | {
|
---|
| 25 | public:
|
---|
| 26 |
|
---|
| 27 | Weighter();
|
---|
| 28 | ~Weighter();
|
---|
| 29 |
|
---|
| 30 | void Init();
|
---|
| 31 | void Process();
|
---|
| 32 | void Finish();
|
---|
| 33 |
|
---|
| 34 | private:
|
---|
| 35 | struct TIndexStruct
|
---|
| 36 | {
|
---|
| 37 | Int_t codes[4];
|
---|
| 38 | bool operator< (const TIndexStruct &value) const;
|
---|
| 39 | };
|
---|
| 40 |
|
---|
| 41 | std::set<Int_t> fWeightSet, fCodeSet;
|
---|
| 42 | std::map<TIndexStruct, Double_t> fWeightMap;
|
---|
| 43 |
|
---|
| 44 | TIterator *fItInputArray; //!
|
---|
| 45 |
|
---|
| 46 | const TObjArray *fInputArray; //!
|
---|
| 47 |
|
---|
| 48 | TObjArray *fOutputArray; //!
|
---|
| 49 |
|
---|
| 50 | ClassDef(Weighter, 1)
|
---|
| 51 | };
|
---|
| 52 |
|
---|
| 53 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.