StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjTowerEnergyCorrectionForTracks.h
1 // -*- mode: c++;-*-
2 // $Id: StjTowerEnergyCorrectionForTracks.h,v 1.1 2008/11/27 07:35:25 tai Exp $
3 #ifndef STJTOWERENERGYCORRECTIONFORTRACKS_H
4 #define STJTOWERENERGYCORRECTIONFORTRACKS_H
5 
6 #include <TObject.h>
7 
8 #include "StjTowerEnergyList.h"
9 #include "StjTrackList.h"
10 
11 class StjTowerEnergyCorrectionForTracks : public TObject {
12 
13 public:
16 
17  StjTowerEnergyList operator()(const StjTowerEnergyList &energyDepositList, const StjTrackList& trackList);
18 
19  StjTowerEnergyList Do(const StjTowerEnergyList &energyDepositList, const StjTrackList& trackList);
20 
21 
22 private:
23 
24  void countTracksOnBemcTower(const StjTrack& track);
25 
26  double correctBemcTowerEnergyForTracks_(double energy, int bemcTowerId, float eta, float phi);
27 
28  static const int mNOfBemcTowers = 4800;
29 
30  int mNtracksOnTower[mNOfBemcTowers + 1]; // indexed form [1,4800] (number of tracks incident on this tower)
31 
33 
34 };
35 
36 #endif // STJTOWERENERGYCORRECTIONFORTRACKS_H