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
void computeRotation(int myCrystal, CLHEP::HepRotation &CMStoTB)
Double32_t param_X0_
CLHEP::Hep3Vector CalculateTBPos(const std::vector< EBDetId > &passedDetIds, int myCrystal, EcalRecHitCollection const *passedRecHitsMap)
Double32_t param_W0_
const CaloSubdetectorGeometry * theGeometry_
EcalTBCrystalMap * theTestMap
CLHEP::Hep3Vector CalculateCMSPos(const std::vector< EBDetId > &passedDetIds, int myCrystal, EcalRecHitCollection const *passedRecHitsMap)
Double32_t param_T0_