Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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>
8 namespace FPTracker{
9 template<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
Container
storage of the time histories of all the cells
lumiFormat.i
int i
Definition: lumiFormat.py:85
FPTracker::printCont
void printCont(const Container &arr, int perline, int nele)
Definition: printCont.h:10
FPTracker
Definition: FPTracker/FPTracker/Beamline.h:12