StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjTrgDisableTowerJP.h
1 // -*- mode: c++;-*-
2 // $Id: StjTrgDisableTowerJP.h,v 1.2 2009/04/28 02:37:32 tai Exp $
3 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4 #ifndef STJTRGDISABLETOWERJP_H
5 #define STJTRGDISABLETOWERJP_H
6 
7 #include "StjTrgDisableTower.h"
8 
9 class StjBEMC;
11 
13 
14 public:
15  StjTrgDisableTowerJP(StjTrg* src, int badTowerId, StjBEMC* bemc, StjTrgBEMCJetPatchTowerIdMap* jpTowerMap)
16  : StjTrgDisableTower(src, badTowerId)
17  , _bemc(bemc), _jpTowerMap(jpTowerMap) { }
18  StjTrgDisableTowerJP(StjTrg* src, int nbadTowerIds, int* badTowerIds, StjBEMC* bemc, StjTrgBEMCJetPatchTowerIdMap* jpTowerMap)
19  : StjTrgDisableTower(src, nbadTowerIds, badTowerIds)
20  , _bemc(bemc), _jpTowerMap(jpTowerMap) { }
21  virtual ~StjTrgDisableTowerJP() { }
22 
23  bool soft() const;
24 
25  std::vector<int> jetPatches();
26  std::vector<int> jetPatchDsmAdc();
27  std::vector<unsigned int> jetPatchAdc();
28  std::vector<double> jetPatchEnergy();
29  std::vector<double> jetPatchEt();
30 
31 private:
32 
33  StjBEMC* _bemc;
34  StjTrgBEMCJetPatchTowerIdMap* _jpTowerMap;
35 
36  void read() const;
37 
38  mutable bool _passed;
39  mutable std::vector<int> _jetPatches;
40  mutable std::vector<int> _jetPatchDsmAdc;
41  mutable std::vector<unsigned int> _jetPatchAdc;
42  mutable std::vector<double> _jetPatchEnergy;
43  mutable std::vector<double> _jetPatchEt;
44 
45  ClassDef(StjTrgDisableTowerJP, 1)
46 
47 };
48 
49 #endif // STJTRGDISABLETOWERJP_H
Definition: StjTrg.h:11