3535#include " Geometry/Records/interface/HcalRecNumberingRecord.h"
3636#include " Geometry/HcalCommonData/interface/HcalHitRelabeller.h"
3737
38-
3938/* TP Code*/
4039#include " CalibFormats/CaloTPG/interface/CaloTPGTranscoder.h"
4140#include " CalibFormats/CaloTPG/interface/CaloTPGRecord.h"
5857
5958class HcalDigiStudy : public edm ::one::EDAnalyzer<edm::one::WatchRuns, edm::one::SharedResources> {
6059public:
61- explicit HcalDigiStudy (const edm::ParameterSet &);
60+ explicit HcalDigiStudy (const edm::ParameterSet&);
6261 ~HcalDigiStudy () override = default ;
6362
6463 static void fillDescriptions (edm::ConfigurationDescriptions& descriptions);
@@ -83,10 +82,11 @@ class HcalDigiStudy : public edm::one::EDAnalyzer<edm::one::WatchRuns, edm::one:
8382 std::map<std::string, TProfile*> histP_;
8483
8584 void book1D (edm::Service<TFileService>& fs, std::string name, int n, double min, double max);
86- void book1D (edm::Service<TFileService>& fs, std::string name, const HistLim &limX);
87- void book2D (edm::Service<TFileService>& fs, std::string name, const HistLim &limX, const HistLim &limY);
88- void bookPf (edm::Service<TFileService>& fs, std::string name, const HistLim &limX, const HistLim &limY);
89- void bookPf (edm::Service<TFileService>& fs, std::string name, const HistLim &limX, const HistLim &limY, const char *option);
85+ void book1D (edm::Service<TFileService>& fs, std::string name, const HistLim& limX);
86+ void book2D (edm::Service<TFileService>& fs, std::string name, const HistLim& limX, const HistLim& limY);
87+ void bookPf (edm::Service<TFileService>& fs, std::string name, const HistLim& limX, const HistLim& limY);
88+ void bookPf (
89+ edm::Service<TFileService>& fs, std::string name, const HistLim& limX, const HistLim& limY, const char * option);
9090 void booking (edm::Service<TFileService>& fs, std::string subdetopt, int bnoise, int bmc);
9191
9292 void fill1D (std::string name, double X, double weight = 1 );
@@ -96,13 +96,13 @@ class HcalDigiStudy : public edm::one::EDAnalyzer<edm::one::WatchRuns, edm::one:
9696 std::string str (int x);
9797
9898 template <class Digi >
99- void reco (const edm::Event & iEvent,
100- const edm::EventSetup & iSetup,
101- const edm::EDGetTokenT<edm::SortedCollection<Digi> > & tok);
99+ void reco (const edm::Event& iEvent,
100+ const edm::EventSetup& iSetup,
101+ const edm::EDGetTokenT<edm::SortedCollection<Digi> >& tok);
102102 template <class dataFrameType >
103- void reco (const edm::Event & iEvent,
104- const edm::EventSetup & iSetup,
105- const edm::EDGetTokenT<HcalDataFrameContainer<dataFrameType> > & tok);
103+ void reco (const edm::Event& iEvent,
104+ const edm::EventSetup& iSetup,
105+ const edm::EDGetTokenT<HcalDataFrameContainer<dataFrameType> >& tok);
106106
107107 std::string outputFile_;
108108 std::string subdet_;
@@ -139,9 +139,9 @@ class HcalDigiStudy : public edm::one::EDAnalyzer<edm::one::WatchRuns, edm::one:
139139 edm::ESGetToken<HcalTopology, HcalRecNumberingRecord> tok_Topo_;
140140 edm::ESGetToken<HcalDbService, HcalDbRecord> tok_Cond_;
141141
142- const HcalDbService * conditions_;
143- const HcalDDDRecConstants * hcons_;
144- const HcalTopology * htopo_;
142+ const HcalDbService* conditions_;
143+ const HcalDDDRecConstants* hcons_;
144+ const HcalTopology* htopo_;
145145
146146 int nevent1;
147147 int nevent2;
@@ -215,13 +215,13 @@ void HcalDigiStudy::fillDescriptions(edm::ConfigurationDescriptions& description
215215 desc.addUntracked <std::string>(" mode" , " multi" );
216216 desc.addUntracked <std::string>(" hcalselector" , " all" );
217217 desc.addUntracked <std::string>(" mc" , " yes" );
218- desc.addUntracked <edm::InputTag>(" simHits" , edm::InputTag (" g4SimHits" ," HcalHits" ));
218+ desc.addUntracked <edm::InputTag>(" simHits" , edm::InputTag (" g4SimHits" , " HcalHits" ));
219219 desc.add <edm::InputTag>(" emulTPs" , edm::InputTag (" emulDigis" ));
220220 desc.add <edm::InputTag>(" dataTPs" , edm::InputTag (" " ));
221- desc.add <bool >(" TestNumber" , false );
222- desc.add <bool >(" hep17" , false );
223- desc.add <bool >(" HEPhase1" , false );
224- desc.add <bool >(" HBPhase1" , false );
221+ desc.add <bool >(" TestNumber" , false );
222+ desc.add <bool >(" hep17" , false );
223+ desc.add <bool >(" HEPhase1" , false );
224+ desc.add <bool >(" HBPhase1" , false );
225225 desc.add <bool >(" Plot_TP_ver" , false );
226226 descriptions.add (" hcalDigiStudy" , desc);
227227}
@@ -746,8 +746,8 @@ void HcalDigiStudy::analyze(const edm::Event& iEvent, const edm::EventSetup& iSe
746746
747747template <class Digi >
748748void HcalDigiStudy::reco (const edm::Event& iEvent,
749- const edm::EventSetup& iSetup,
750- const edm::EDGetTokenT<edm::SortedCollection<Digi> >& tok) {
749+ const edm::EventSetup& iSetup,
750+ const edm::EDGetTokenT<edm::SortedCollection<Digi> >& tok) {
751751 // HistLim =============================================================
752752
753753 std::string strtmp;
@@ -1061,8 +1061,8 @@ void HcalDigiStudy::reco(const edm::Event& iEvent,
10611061}
10621062template <class dataFrameType >
10631063void HcalDigiStudy::reco (const edm::Event& iEvent,
1064- const edm::EventSetup& iSetup,
1065- const edm::EDGetTokenT<HcalDataFrameContainer<dataFrameType> >& tok) {
1064+ const edm::EventSetup& iSetup,
1065+ const edm::EDGetTokenT<HcalDataFrameContainer<dataFrameType> >& tok) {
10661066 // HistLim =============================================================
10671067
10681068 std::string strtmp;
@@ -1456,9 +1456,11 @@ void HcalDigiStudy::bookPf(edm::Service<TFileService>& fs, std::string name, con
14561456 histP_[name] = fs->make <TProfile>(name.c_str (), name.c_str (), limX.n , limX.min , limX.max , limY.min , limY.max );
14571457}
14581458
1459- void HcalDigiStudy::bookPf (edm::Service<TFileService>& fs, std::string name, const HistLim& limX, const HistLim& limY, const char * option) {
1459+ void HcalDigiStudy::bookPf (
1460+ edm::Service<TFileService>& fs, std::string name, const HistLim& limX, const HistLim& limY, const char * option) {
14601461 if (histP_.find (name) == histP_.end ())
1461- histP_[name] = fs->make <TProfile>(name.c_str (), name.c_str (), limX.n , limX.min , limX.max , limY.min , limY.max , option);
1462+ histP_[name] =
1463+ fs->make <TProfile>(name.c_str (), name.c_str (), limX.n , limX.min , limX.max , limY.min , limY.max , option);
14621464}
14631465
14641466void HcalDigiStudy::fill1D (std::string name, double X, double weight) {
@@ -1471,7 +1473,7 @@ void HcalDigiStudy::fill2D(std::string name, double X, double Y, double weight)
14711473 hist2_[name]->Fill (X, Y, weight);
14721474}
14731475
1474- void HcalDigiStudy::fillPf (std::string name, double X, double Y) {
1476+ void HcalDigiStudy::fillPf (std::string name, double X, double Y) {
14751477 if (histP_.find (name) != histP_.end ())
14761478 histP_[name]->Fill (X, Y);
14771479}
0 commit comments