Skip to content

Commit

Permalink
Clang-Format
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsbuild committed Jun 26, 2019
1 parent a854b61 commit c5778b1
Show file tree
Hide file tree
Showing 61 changed files with 2,877 additions and 3,240 deletions.
12 changes: 4 additions & 8 deletions DPGAnalysis/Skims/interface/BeamSplash.h
Expand Up @@ -24,29 +24,25 @@
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"


//
// class declaration
//


class BeamSplash : public edm::EDFilter {
public:
explicit BeamSplash( const edm::ParameterSet & );
explicit BeamSplash(const edm::ParameterSet &);
~BeamSplash() override;

private:
bool filter ( edm::Event &, const edm::EventSetup&) override;
bool filter(edm::Event &, const edm::EventSetup &) override;

edm::InputTag EBRecHitCollection_;
edm::InputTag EERecHitCollection_;
edm::InputTag HBHERecHitCollection_;
double EnergyCutTot;
double EnergyCutEcal;
double EnergyCutHcal;
bool applyfilter;


};

#endif
33 changes: 14 additions & 19 deletions DPGAnalysis/Skims/interface/CSCSkim.h
Expand Up @@ -69,38 +69,33 @@
#include "TString.h"
#include "TTree.h"


class CSCSkim : public edm::EDFilter {
public:
public:
// Constructor
explicit CSCSkim(const edm::ParameterSet& pset);
explicit CSCSkim(const edm::ParameterSet &pset);

// Destructor
~CSCSkim() override;

// Analysis routines
void beginJob() override;
bool filter(edm::Event& event, const edm::EventSetup& eventSetup) override;
bool filter(edm::Event &event, const edm::EventSetup &eventSetup) override;
void endJob() override;

protected:

private:

protected:
private:
// main skimming routine
bool doCSCSkimming(edm::Handle<CSCRecHit2DCollection> cscRecHits,
edm::Handle<CSCSegmentCollection> cscSegments);
bool doCSCSkimming(edm::Handle<CSCRecHit2DCollection> cscRecHits, edm::Handle<CSCSegmentCollection> cscSegments);

// extra skimming routine for alignment studies
bool doOverlapSkimming(edm::Handle<CSCSegmentCollection> cscSegments);

// skimming routine for messy events
bool doMessyEventSkimming(edm::Handle<CSCRecHit2DCollection> cscRecHits,
bool doMessyEventSkimming(edm::Handle<CSCRecHit2DCollection> cscRecHits,
edm::Handle<CSCSegmentCollection> cscSegments);

// select events with DIGIs in a certain chamber
bool doCertainChamberSelection(edm::Handle<CSCWireDigiCollection> wires,
edm::Handle<CSCStripDigiCollection> strips);
bool doCertainChamberSelection(edm::Handle<CSCWireDigiCollection> wires, edm::Handle<CSCStripDigiCollection> strips);

// select events which might probe the DT-CSC overlap region
bool doDTOverlap(edm::Handle<CSCSegmentCollection> cscSegments);
Expand All @@ -112,10 +107,12 @@ class CSCSkim : public edm::EDFilter {
bool doLongSATrack(edm::Handle<reco::TrackCollection> saTracks);

// select events suitable for magnetic field studies - they have a track in the tracker
bool doBFieldStudySelection(edm::Handle<reco::TrackCollection> saTracks, edm::Handle<reco::TrackCollection> Tracks, edm::Handle<reco::MuonCollection> gMuons);
bool doBFieldStudySelection(edm::Handle<reco::TrackCollection> saTracks,
edm::Handle<reco::TrackCollection> Tracks,
edm::Handle<reco::MuonCollection> gMuons);

// some useful functions
int chamberSerial(int kE, int kS, int kR, int kCh);
int chamberSerial(int kE, int kS, int kR, int kCh);

// counters
int nEventsAnalyzed;
Expand Down Expand Up @@ -176,7 +173,6 @@ class CSCSkim : public edm::EDFilter {
float redChiSqMax;
int nValidHitsMin;


// histograms for skimming module
TH1F *hxnRecHits;
TH1F *hxnSegments;
Expand All @@ -190,6 +186,5 @@ class CSCSkim : public edm::EDFilter {
TH1F *mevnSegments1;

TH1F *xxP, *xxnValidHits, *xxnCSCHits, *xxredChiSq, *xxnTrackerHits;

};
#endif
13 changes: 7 additions & 6 deletions DPGAnalysis/Skims/interface/DetStatus.h
Expand Up @@ -4,18 +4,19 @@
#include "FWCore/Framework/interface/EDFilter.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DataFormats/Scalers/interface/DcsStatus.h"

class DetStatus : public edm::EDFilter {
public:
DetStatus( const edm::ParameterSet & );
~DetStatus() override;
private:
public:
DetStatus(const edm::ParameterSet&);
~DetStatus() override;

private:
bool filter(edm::Event&, edm::EventSetup const&) override;

bool verbose_;
bool applyfilter_;
bool AndOr_;
std::vector<std::string> DetNames_;
std::vector<std::string> DetNames_;
unsigned int DetMap_;
edm::EDGetTokenT<DcsStatusCollection> scalersToken_;
};
Expand Down
12 changes: 4 additions & 8 deletions DPGAnalysis/Skims/interface/ECALActivity.h
Expand Up @@ -24,20 +24,18 @@
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"


//
// class declaration
//


class ECALActivity : public edm::EDFilter {
public:
explicit ECALActivity( const edm::ParameterSet & );
explicit ECALActivity(const edm::ParameterSet &);
~ECALActivity() override;

private:
bool filter ( edm::Event &, const edm::EventSetup&) override;
bool filter(edm::Event &, const edm::EventSetup &) override;

edm::InputTag EBRecHitCollection_;
edm::InputTag EERecHitCollection_;

Expand All @@ -48,8 +46,6 @@ class ECALActivity : public edm::EDFilter {
int ETOTnum;
double ETOTthresh;
bool applyfilter;


};

#endif
9 changes: 4 additions & 5 deletions DPGAnalysis/Skims/interface/EcalSkim.h
Expand Up @@ -43,17 +43,16 @@ class TFile;

class EcalSkim : public edm::EDFilter {
public:
explicit EcalSkim( const edm::ParameterSet & );
explicit EcalSkim(const edm::ParameterSet &);
~EcalSkim() override;

private:
bool filter ( edm::Event &, const edm::EventSetup&) override;
bool filter(edm::Event &, const edm::EventSetup &) override;

edm::InputTag BarrelClusterCollection;
edm::InputTag EndcapClusterCollection;
double EnergyCutEB;
double EnergyCutEE;

};

#endif
30 changes: 15 additions & 15 deletions DPGAnalysis/Skims/interface/EcalTangentFilter.h
Expand Up @@ -20,19 +20,19 @@
//

class EcalTangentFilter : public edm::EDFilter {
public:
explicit EcalTangentFilter(const edm::ParameterSet&);
~EcalTangentFilter() override;

private:
void beginJob() override;
bool filter(edm::Event&, const edm::EventSetup&) override;
void endJob() override;
// ----------member data ---------------------------
int fNgood, fNtot, fEvt;
std::string fMuLabel;
double fMuonD0Min;
double fMuonD0Max;
bool fVerbose;
public:
explicit EcalTangentFilter(const edm::ParameterSet&);
~EcalTangentFilter() override;

private:
void beginJob() override;
bool filter(edm::Event&, const edm::EventSetup&) override;
void endJob() override;

// ----------member data ---------------------------
int fNgood, fNtot, fEvt;
std::string fMuLabel;
double fMuonD0Min;
double fMuonD0Max;
bool fVerbose;
};
9 changes: 4 additions & 5 deletions DPGAnalysis/Skims/interface/FilterOutScraping.h
Expand Up @@ -30,15 +30,14 @@
// class declaration
//


class FilterOutScraping : public edm::EDFilter {
public:
explicit FilterOutScraping( const edm::ParameterSet & );
explicit FilterOutScraping(const edm::ParameterSet &);
~FilterOutScraping() override;

private:
bool filter ( edm::Event &, const edm::EventSetup&) override;
bool filter(edm::Event &, const edm::EventSetup &) override;

bool applyfilter;
bool debugOn;
double thresh;
Expand Down
32 changes: 15 additions & 17 deletions DPGAnalysis/Skims/interface/FilterScrapingPixelProbability.h
Expand Up @@ -4,18 +4,17 @@
//
// Original Author: Gavril Giurgiu (JHU)
//
// This filter attempts to separate scraping events from collision
// events.
// This filter attempts to separate scraping events from collision
// events.
//
// It loops over all tracks in the event and
// counts the number of barel pixel hits which have low probability.
// The filter is applied on the fraction of hits with low
// probability. The default "low probability" is 0 (less than
// 10^{-15}). For this choice of low probability the optimal
// cut is somewhere between 0.3 and 0.5. Default is 0.4.
// It loops over all tracks in the event and
// counts the number of barel pixel hits which have low probability.
// The filter is applied on the fraction of hits with low
// probability. The default "low probability" is 0 (less than
// 10^{-15}). For this choice of low probability the optimal
// cut is somewhere between 0.3 and 0.5. Default is 0.4.
//


#ifndef FilterScrapingPixelProbability_H
#define FilterScrapingPixelProbability_H

Expand All @@ -40,21 +39,20 @@
#include "DataFormats/TrackerRecHit2D/interface/SiPixelRecHit.h"
#include "DataFormats/SiPixelDetId/interface/PixelSubdetector.h"

class FilterScrapingPixelProbability : public edm::EDFilter
{
class FilterScrapingPixelProbability : public edm::EDFilter {
public:
explicit FilterScrapingPixelProbability( const edm::ParameterSet & );
explicit FilterScrapingPixelProbability(const edm::ParameterSet &);
~FilterScrapingPixelProbability() override;

private:
bool filter ( edm::Event &, const edm::EventSetup&) override;
bool filter(edm::Event &, const edm::EventSetup &) override;

bool apply_filter;
bool select_collision;
bool select_pkam;
bool select_other;
double low_probability; // Default is 0 which means less than ~10^{-15}.
double low_probability_fraction_cut; // Default is 0.4.
double low_probability; // Default is 0 which means less than ~10^{-15}.
double low_probability_fraction_cut; // Default is 0.4.

edm::InputTag tracks_;
};
Expand Down
10 changes: 4 additions & 6 deletions DPGAnalysis/Skims/interface/HLTInspect.h
Expand Up @@ -24,20 +24,18 @@
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"


//
// class declaration
//


class HLTInspect : public edm::EDAnalyzer {
public:
explicit HLTInspect( const edm::ParameterSet & );
explicit HLTInspect(const edm::ParameterSet&);
~HLTInspect() override;

private:
void analyze(const edm::Event& e, const edm::EventSetup& c) override;
std::vector<std::string> hlNames_; // name of each HLT algorithm
void analyze(const edm::Event& e, const edm::EventSetup& c) override;
std::vector<std::string> hlNames_; // name of each HLT algorithm
edm::InputTag hlTriggerResults_;
bool init_;
};
Expand Down
29 changes: 13 additions & 16 deletions DPGAnalysis/Skims/interface/HLTMuonPtFilter.h
Expand Up @@ -25,23 +25,20 @@ class Propagator;
/* Class HLTMuonPtFilter Interface */

class HLTMuonPtFilter : public HLTFilter {
public:
/// Constructor
HLTMuonPtFilter(const edm::ParameterSet&);

public:

/// Constructor
HLTMuonPtFilter(const edm::ParameterSet&) ;

/// Destructorquer
~HLTMuonPtFilter() override ;

/* Operations */
bool hltFilter(edm::Event&, const edm::EventSetup&, trigger::TriggerFilterObjectWithRefs & filterproduct) const override;

private:
std::string theSTAMuonLabel; // label of muons
double theMinPt; // minimum pt required
/// Destructorquer
~HLTMuonPtFilter() override;

/* Operations */
bool hltFilter(edm::Event&,
const edm::EventSetup&,
trigger::TriggerFilterObjectWithRefs& filterproduct) const override;

private:
std::string theSTAMuonLabel; // label of muons
double theMinPt; // minimum pt required
};
#endif // Muon_HLTMuonPtFilter_h

#endif // Muon_HLTMuonPtFilter_h

0 comments on commit c5778b1

Please sign in to comment.