ATLAS Offline Software
Loading...
Searching...
No Matches
printCont.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef FPTRACKER_PRINTCONTAINER_H
6#define FPTRACKER_PRINTCONTAINER_H
7#include <iostream>
8namespace FPTracker{
9template<class Container>
10 void printCont(const Container& arr, int perline, int nele){
11 int linecount = 0;
12 for(int i = 0; i<nele; ++i){
13 std::cout<<" "<<arr[i];
14 if(++linecount == perline){
15 linecount = 0;
16 std::cout<<'\n';
17 }
18 }
19 std::cout<<'\n';
20 }
21}
22#endif
storage of the time histories of all the cells
void printCont(const Container &arr, int perline, int nele)
Definition printCont.h:10