Skip to content

Commit

Permalink
Apply code-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Dildick committed Aug 8, 2019
1 parent b4ea79f commit 9cc8ac2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions L1Trigger/ME0Trigger/interface/ME0TriggerBuilder.h
Expand Up @@ -29,7 +29,7 @@ class ME0TriggerBuilder {
~ME0TriggerBuilder();

/** Build Triggers from pads or clusters in each chamber and fill them into output collections. */
template<class T>
template <class T>
void build(const T* me0Pads, ME0TriggerDigiCollection& oc_trig);

/** set geometry for the matching needs */
Expand All @@ -54,7 +54,7 @@ class ME0TriggerBuilder {
std::unique_ptr<ME0Motherboard> tmb_[MAX_ENDCAPS][MAX_CHAMBERS];
};

template<class T>
template <class T>
void ME0TriggerBuilder::build(const T* me0Pads, ME0TriggerDigiCollection& oc_trig) {
for (int endc = 0; endc < 2; endc++) {
for (int cham = 0; cham < 18; cham++) {
Expand Down
6 changes: 4 additions & 2 deletions L1Trigger/ME0Trigger/plugins/ME0TriggerProducer.cc
Expand Up @@ -40,8 +40,10 @@ void ME0TriggerProducer::produce(edm::StreamID, edm::Event& ev, const edm::Event

// Fill output collections if valid input collection is available.
if (me0PadDigiClusters.isValid()) {
if (useClusters_) trigBuilder->build<ME0PadDigiClusterCollection>(me0PadClusters, *oc_trig);
else trigBuilder->build<ME0PadDigiCollection>(me0Pads, *oc_trig);
if (useClusters_)
trigBuilder->build<ME0PadDigiClusterCollection>(me0PadClusters, *oc_trig);
else
trigBuilder->build<ME0PadDigiCollection>(me0Pads, *oc_trig);
}

// Put collections in event.
Expand Down

0 comments on commit 9cc8ac2

Please sign in to comment.