CMS 3D CMS Logo

TBPositionCalc.h
Go to the documentation of this file.
1 #ifndef TBPositionCalc_h
2 #define TBPositionCalc_h
3 
4 #include "CLHEP/Vector/ThreeVector.h"
5 #include "CLHEP/Vector/Rotation.h"
6 #include "Rtypes.h"
7 
8 #include <fstream>
9 #include <vector>
10 #include <cmath>
11 #include <map>
12 
21 
23 #include "CLHEP/Units/GlobalSystemOfUnits.h"
24 
26 public:
27  TBPositionCalc(const std::map<std::string, double>& providedParameters,
28  const std::string& mapFile,
29  const CaloSubdetectorGeometry* passedGeometry);
30 
32 
34 
35  CLHEP::Hep3Vector CalculateTBPos(const std::vector<EBDetId>& passedDetIds,
36  int myCrystal,
37  EcalRecHitCollection const* passedRecHitsMap);
38 
39  CLHEP::Hep3Vector CalculateCMSPos(const std::vector<EBDetId>& passedDetIds,
40  int myCrystal,
41  EcalRecHitCollection const* passedRecHitsMap);
42 
43  void computeRotation(int myCrystal, CLHEP::HepRotation& CMStoTB);
44 
45 private:
47  Double32_t param_X0_;
48  Double32_t param_T0_;
49  Double32_t param_W0_;
50 
52 
54 };
55 
56 #endif
MessageLogger.h
EBDetId.h
edm::SortedCollection< EcalRecHit >
EcalRecHitCollections.h
TBPositionCalc::theGeometry_
const CaloSubdetectorGeometry * theGeometry_
Definition: TBPositionCalc.h:53
TBPositionCalc::CalculateTBPos
CLHEP::Hep3Vector CalculateTBPos(const std::vector< EBDetId > &passedDetIds, int myCrystal, EcalRecHitCollection const *passedRecHitsMap)
Definition: TBPositionCalc.cc:27
TBPositionCalc::param_LogWeighted_
bool param_LogWeighted_
Definition: TBPositionCalc.h:46
TBPositionCalc::CalculateCMSPos
CLHEP::Hep3Vector CalculateCMSPos(const std::vector< EBDetId > &passedDetIds, int myCrystal, EcalRecHitCollection const *passedRecHitsMap)
Definition: TBPositionCalc.cc:59
TruncatedPyramid.h
EcalTBCrystalMap
Definition: EcalTBCrystalMap.h:17
TBPositionCalc::param_X0_
Double32_t param_X0_
Definition: TBPositionCalc.h:47
TBPositionCalc::~TBPositionCalc
~TBPositionCalc()
Definition: TBPositionCalc.cc:22
TBPositionCalc::param_W0_
Double32_t param_W0_
Definition: TBPositionCalc.h:49
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CaloSubdetectorGeometry.h
TBPositionCalc::theTestMap
EcalTBCrystalMap * theTestMap
Definition: TBPositionCalc.h:51
EcalRecHit.h
TBPositionCalc::TBPositionCalc
TBPositionCalc()
Definition: TBPositionCalc.h:31
EcalTBCrystalMap.h
CaloCellGeometry.h
Point3D.h
CaloSubdetectorGeometry
Definition: CaloSubdetectorGeometry.h:22
TBPositionCalc
Definition: TBPositionCalc.h:25
TBPositionCalc::computeRotation
void computeRotation(int myCrystal, CLHEP::HepRotation &CMStoTB)
Definition: TBPositionCalc.cc:138
TBPositionCalc::param_T0_
Double32_t param_T0_
Definition: TBPositionCalc.h:48