SND@LHC Software
Loading...
Searching...
No Matches
ecalStructure.cxx File Reference
#include "ecalStructure.h"
#include "ecal.h"
#include "ecalCellMC.h"
#include "ecalCell.h"
#include <iostream>
#include <algorithm>
#include <cmath>
Include dependency graph for ecalStructure.cxx:

Go to the source code of this file.

Functions

void _add_not_null (ecalModule *mod, list< ecalModule * > &lst)
 
void _add_not_null (list< ecalCell * > from, list< ecalCell * > &where)
 
void _add_not_null (ecalCell *cell, list< ecalCell * > &lst)
 

Function Documentation

◆ _add_not_null() [1/3]

void _add_not_null ( ecalCell cell,
list< ecalCell * > &  lst 
)

Definition at line 204 of file ecalStructure.cxx.

205{
206 if (find(lst.begin(),lst.end(),cell)==lst.end())
207 lst.push_back(cell);
208}

◆ _add_not_null() [2/3]

void _add_not_null ( ecalModule mod,
list< ecalModule * > &  lst 
)

Definition at line 186 of file ecalStructure.cxx.

187{
188 if (mod)
189 if (find(lst.begin(),lst.end(),mod)==lst.end())
190 lst.push_back(mod);
191}

◆ _add_not_null() [3/3]

void _add_not_null ( list< ecalCell * >  from,
list< ecalCell * > &  where 
)

Definition at line 194 of file ecalStructure.cxx.

195{
196 list<ecalCell*>::const_iterator p;
197 for(p=from.begin();p!=from.end();++p)
198 if (find(where.begin(),where.end(),(*p))==where.end())
199 //this p uniq!
200 where.push_back(*p);
201}