Fork me on GitHub

source: git/modules/Weighter.h@ 210c033

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 210c033 was b5e3bbd, checked in by pavel <pavel@…>, 12 years ago

add module Weighter

  • Property mode set to 100644
File size: 746 bytes
RevLine 
[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
21class TObjArray;
22
23class Weighter: public DelphesModule
24{
25public:
26
27 Weighter();
28 ~Weighter();
29
30 void Init();
31 void Process();
32 void Finish();
33
34private:
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.