/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
SimG4CMS/Forward/interface/CastorShowerLibrary.h
62 строки
2 KB
Christopher Jones
Fix incorrect cast in CastorShowerLibrary
04 янв 2021, 19:18
04 янв 2021, 19:18
635ec88
Код
Авторство
О чём код?
#ifndef SimG4CMS_CastorShowerLibrary_h #define SimG4CMS_CastorShowerLibrary_h /////////////////////////////////////////////////////////////////////////////// // File: CastorShowerLibrary.h // Description: Gets information from a shower library // Adapted from HFShowerLibrary class // // Wagner Carvalho (wcarvalh@cern.ch) // /////////////////////////////////////////////////////////////////////////////// #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "SimDataFormats/CaloHit/interface/CastorShowerLibraryInfo.h" #include "SimDataFormats/CaloHit/interface/CastorShowerEvent.h" #include "G4ParticleTable.hh" #include "G4ThreeVector.hh" #include <string> #include <memory> class G4Step; class TFile; class TBranch; class CastorShowerLibrary { public: //Constructor and Destructor CastorShowerLibrary(const std::string &name, edm::ParameterSet const &p); ~CastorShowerLibrary(); public: CastorShowerEvent getShowerHits(const G4Step *, bool &); int FindEnergyBin(double); int FindEtaBin(double); int FindPhiBin(double); protected: void initFile(edm::ParameterSet const &); CastorShowerEvent getRecord(int, int); void loadEventInfo(TBranch *); // if eta or phi is not given, take into account only the binning in energy CastorShowerEvent select(int, double, double = 0, double = 9); private: TFile *hf; TBranch *emBranch, *hadBranch; // pointer to CastorShowerEvent-type branch bool verbose; unsigned int nMomBin, totEvents, evtPerBin; std::vector<double> pmom; // new variables (bins in eta and phi) unsigned int nBinsE, nBinsEta, nBinsPhi; unsigned int nEvtPerBinE, nEvtPerBinEta, nEvtPerBinPhi; std::vector<double> SLenergies; std::vector<double> SLetas; std::vector<double> SLphis; }; #endif