Skip to content

Commit

Permalink
Code Checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Aug 1, 2019
1 parent 7ed207b commit 58402a5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 30 deletions.
20 changes: 9 additions & 11 deletions SimG4CMS/HcalTestBeam/plugins/HcalTB02Analysis.cc
Expand Up @@ -56,30 +56,28 @@ namespace CLHEP {
class HepRandomEngine;
}

class HcalTB02Analysis : public SimProducer,
public Observer<const BeginOfEvent *>,
public Observer<const EndOfEvent *> {
class HcalTB02Analysis : public SimProducer, public Observer<const BeginOfEvent*>, public Observer<const EndOfEvent*> {
public:
HcalTB02Analysis(const edm::ParameterSet &p);
HcalTB02Analysis(const edm::ParameterSet& p);
~HcalTB02Analysis() override;

void produce(edm::Event &, const edm::EventSetup &) override;
void produce(edm::Event&, const edm::EventSetup&) override;

private:
HcalTB02Analysis(const HcalTB02Analysis &) = delete; // stop default
const HcalTB02Analysis &operator=(const HcalTB02Analysis &) = delete;
HcalTB02Analysis(const HcalTB02Analysis&) = delete; // stop default
const HcalTB02Analysis& operator=(const HcalTB02Analysis&) = delete;

// observer methods
void update(const BeginOfEvent *evt) override;
void update(const EndOfEvent *evt) override;
void update(const BeginOfEvent* evt) override;
void update(const EndOfEvent* evt) override;

void fillEvent(HcalTB02HistoClass &);
void fillEvent(HcalTB02HistoClass&);
void clear();
void finish();

private:
// Private Tuples
HcalTB02Histo *histo;
HcalTB02Histo* histo;

// to read from parameter set
bool hcalOnly;
Expand Down
38 changes: 19 additions & 19 deletions SimG4CMS/HcalTestBeam/plugins/HcalTB04Analysis.cc
Expand Up @@ -68,43 +68,43 @@ namespace CLHEP {
}

class HcalTB04Analysis : public SimProducer,
public Observer<const BeginOfRun *>,
public Observer<const BeginOfEvent *>,
public Observer<const EndOfEvent *>,
public Observer<const G4Step *> {
public Observer<const BeginOfRun*>,
public Observer<const BeginOfEvent*>,
public Observer<const EndOfEvent*>,
public Observer<const G4Step*> {
public:
HcalTB04Analysis(const edm::ParameterSet &p);
HcalTB04Analysis(const edm::ParameterSet& p);
~HcalTB04Analysis() override;

void produce(edm::Event &, const edm::EventSetup &) override;
void produce(edm::Event&, const edm::EventSetup&) override;

private:
HcalTB04Analysis(const HcalTB04Analysis &) = delete; // stop default
const HcalTB04Analysis &operator=(const HcalTB04Analysis &) = delete;
HcalTB04Analysis(const HcalTB04Analysis&) = delete; // stop default
const HcalTB04Analysis& operator=(const HcalTB04Analysis&) = delete;

void init();

// observer methods
void update(const BeginOfRun *run) override;
void update(const BeginOfEvent *evt) override;
void update(const G4Step *step) override;
void update(const EndOfEvent *evt) override;
void update(const BeginOfRun* run) override;
void update(const BeginOfEvent* evt) override;
void update(const G4Step* step) override;
void update(const EndOfEvent* evt) override;

//User methods
void fillBuffer(const EndOfEvent *evt);
void qieAnalysis(CLHEP::HepRandomEngine *);
void xtalAnalysis(CLHEP::HepRandomEngine *);
void fillBuffer(const EndOfEvent* evt);
void qieAnalysis(CLHEP::HepRandomEngine*);
void xtalAnalysis(CLHEP::HepRandomEngine*);
void finalAnalysis();
void fillEvent(PHcalTB04Info &);
void fillEvent(PHcalTB04Info&);

void clear();
int unitID(uint32_t id);
double scale(int det, int layer);
double timeOfFlight(int det, int layer, double eta);

private:
HcalQie *myQie;
HcalTB04Histo *histo;
HcalQie* myQie;
HcalTB04Histo* histo;

// to read from parameter set
bool hcalOnly;
Expand All @@ -113,7 +113,7 @@ class HcalTB04Analysis : public SimProducer,
int iceta, icphi;
double scaleHB0, scaleHB16, scaleHO, scaleHE0;
std::vector<std::string> names;
G4RotationMatrix *beamline_RM;
G4RotationMatrix* beamline_RM;

// Constants for the run
int count;
Expand Down

0 comments on commit 58402a5

Please sign in to comment.