ImprovedOutputFile
Timing
dual_readout
llp
Last change
on this file since a6db2d6 was b5e3bbd, checked in by pavel <pavel@…>, 11 years ago |
add module Weighter
|
-
Property mode
set to
100644
|
File size:
746 bytes
|
Rev | Line | |
---|
[b5e3bbd] | 1 | #ifndef Weighter_h
|
---|
| 2 | #define Weighter_h
|
---|
| 3 |
|
---|
| 4 | /** \class Weighter
|
---|
| 5 | *
|
---|
| 6 | * Apply a weight depending on PDG code.
|
---|
| 7 | *
|
---|
| 8 | * $Date$
|
---|
| 9 | * $Revision$
|
---|
| 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.